PhilipKirbyJames
Member
Posted 1 year ago #
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/
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
PhilipKirbyJames
Member
Posted 1 year ago #
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