• Resolved PhilipKirbyJames

    (@philipkirbyjames)


    Hi, I’ve tried to install the “Simple Press” plugin alongside “The Events Calendar” but on activating it I get the following error …

    Fatal error: Cannot redeclare sp_get_option() (previously declared in /home/umcollab/public_html/walk/wp-content/plugins/the-events-calendar/lib/template-tags-deprecated.php:236) in /home/umcollab/public_html/walk/wp-content/plugins/simple-press/sp-api/sp-api-primitives.php on line 91

    It appears that sp_get_option() is already decalared in “the-events-calendar/lib/template-tags-deprecated.php”

    As this function is deprecated – is it safe to remove it or rename it?

    Many Thanks , Kirby

    http://wordpress.org/extend/plugins/the-events-calendar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes you can remove safely remove it from the plugin if you like – we’re not using it anywhere in the codebase, but it’s there for backwards compatibility in case someone is using it in their own theme/plugin.

    Cheers
    Joey

    Thread Starter PhilipKirbyJames

    (@philipkirbyjames)

    Hi Joey,
    Many thanks for your advice – commenting it out works just fine.
    Take Care, Kirby

    /* SP Template Tags. Deprecated in favor of return tribe_ */
    // function sp_get_option($optionName, $default = ”) {
    // _deprecated_function( __FUNCTION__,’2.0′,’tribe_get_option()’);
    // return tribe_get_option($optionName, $default);
    // }

    Yes, definitely that would work since the function is not used anywhere. We’re going to look at maybe deleting it for good in our 2.1 release. No final decision yet though.

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: The Events Calendar] Fatal error: Cannot redeclare sp_get_option()’ is closed to new replies.