Events Calendar-conflict with Simple:Press

Home Forums Welcome! Pre-Sales Questions Events Calendar-conflict with Simple:Press

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1108941
    Kelly Brady
    Guest

    I installed the Events calendar plugin, with an expectation of upgrading to Pro on a test site I am working on. Your plugin was recommended by Web Savvy Marketing and is featured in the demo for one of their premium Genesis child themes, “caroline”.

    Based on testing, Simple:Press will not activate and throws fatal error if Events Calendar is active. Simple:Press relies upon the jQuery & jQuery UI included with WordPress and therefore may conflict with plugins/themes that load other versions, including from the Google CDN.

    So can you confirm whether you rely upon the jquery included with WordPress or do you load another? If so, do you have plans to change this?

    From simplepress: (http://simple-press.com/documentation/codex/installation/installation-information/system-requirements/)

    jQuery JavaScript Library

    Simple:Press requires and is only supported on the version of jQuery and the jQuery UI components supplied with your version of WordPress. Sadly many themes and plugins insist on loading their own, out-dated and often incompatible versions instead of using the WordPress API. Worse, some load jQuery from the Google CDN. In many cases, such sources are not compatible with Simple:Press.

    #1108942
    Kelly Brady
    Guest

    I guess it would be helpful to mention some technical details:

    The Events Calendar v4.1.3
    Simple:Press (core only) v5.6.5
    Wordpress 4.5.1
    Themes tested: Genesis 2.2.7, Twenty Sixteen 1.2
    PHP 5.6.20
    MySQL 10.0.20

    Example error message:

    Fatal error: Cannot redeclare sp_get_option() (previously declared in /home/leeannbx/public_html/rtvnation.net/wp-content/plugins/the-events-calendar/src/functions/template-tags/deprecated.php:500) in /home/leeannbx/public_html/rtvnation.net/wp-content/plugins/simple-press/sp-api/sp-api-primitives.php on line 81

    #1108968
    George
    Participant

    Hey Kelly,

    Sorry to hear about this! This is be arising from the fact that we have a function called sp_get_option inside The Events Calendar at line 134 or so in this file: the-events-calendar/src/functions/template-tags/deprecated.php

    The function looks like this:

    if ( ! function_exists( 'sp_get_option' ) ) {
    /**
    * @deprecated
    *
    * @param $optionName
    * @param string $default
    *
    * @return mixed
    */
    function sp_get_option( $optionName, $default = '' ) {
    _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_option()' );

    return tribe_get_option( $optionName, $default );
    }
    }

    This is a deprecated function, so you can literally just remove that code block entirely with no ill effect.

    I’m sorry about this issue, but hope this solution helps!

    β€” George

    #1108986
    Kelly Brady
    Guest

    George – thanks for the prompt and helpful reply! I removed the function and everything seems to be working fine.

    It is interesting that your functions prefix is “sp” – this is why Simplepress happens to conflict in the odd case where you both have the same function names.

    Curious that your prefix wouldn’t be “EC” or “TEC” though… πŸ™‚

    Thanks again,
    Kelly

    #1108996
    George
    Participant

    Hey Kelly,

    These sp_-prefixed functions are deprecated legacy functions from back in the early days of our plugins, when Modern Tribe was still called “Shane and Peter, Inc.”β€”hence the s and p prefix. πŸ˜€

    We’ll be removing these legacy functions at some point in the future but I’m glad this works for now!

    I’m sorry to bear this news, but you will likely need to make similar edits like this each time you update The Events Calendar; an update will overwrite those core plugin files, so the function will be back in place, so you will have to remove it again.

    I’m sorry about this!

    Sincerely,
    George

    #1114600
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Events Calendar-conflict with Simple:Press’ is closed to new replies.