Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Fatal Error - Conflict with the Event Calendar plugin
Avatar
strengthsensei
Rookie
sp_UserOfflineSmall Offline
Aug 14, 2015 - 12:41 pm

Hello, 

I have just placed the simple-press folder in my plugins directory and get this error when I try and activate it.

 

Plugin could not be activated because it triggered a fatal error.

Fatal error: Cannot redeclare sp_get_option() (previously declared in /nas/wp/www/cluster-41077/powerexe/wp-content/plugins/the-events-calendar/src/functions/template-tags/deprecated.php:484) in /nas/wp/www/cluster-41077/powerexe/wp-content/plugins/simple-press/sp-api/sp-api-primitives.php on line 95

Unfortunately the events calendar is a plugin I need to be active. I am wondering if there is a solution so both plugins can live together happily.

Thank you for you help in advance!

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Aug 14, 2015 - 1:09 pm

Hey Charles,

This is because the Events Calendar plugin uses 'sp' as a prefix for it's get_option function. WordPress guidelines have you prefix any PHP functions with something unique, in our case we use 'sp' for Simple:Press. We have no idea why Events Calendar uses 'sp' as it's prefix for this function but it does cause a clash as each function must have a unique name, and it's something we thought they'd actually changed a long time ago.

Do you have the latest version of their plugin? If so, it might be worth asking them directly for a solution.

Avatar
strengthsensei
Rookie
sp_UserOfflineSmall Offline
Aug 15, 2015 - 12:49 am

Thank you Ike for the fast response! Yes everything is up to date in my plugins.

I will check in with them.

Thank you again!

Avatar
strengthsensei
Rookie
sp_UserOfflineSmall Offline
Aug 15, 2015 - 1:00 am

Thank you! You are right, they did solve this. 

 

I had to add this line to my wordpress wp-config.php file

define('TRIBE_DISABLE_DEPRECATED_TAGS', true);

Thank you again! Sorry I should have searched their forum for this as I am sure someone else would have had this issue.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 15, 2015 - 1:40 am

Outstanding news!  Thanks for the update!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625