Home › Forums › Welcome! › Pre-Sales Questions › Events Calendar-conflict with Simple:Press
- This topic has 5 replies, 2 voices, and was last updated 10 years ago by
Support Droid.
-
AuthorPosts
-
April 29, 2016 at 11:33 am #1108941
Kelly Brady
GuestI 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.
April 29, 2016 at 11:39 am #1108942Kelly Brady
GuestI 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.20Example 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
April 29, 2016 at 12:52 pm #1108968George
ParticipantHey 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
April 29, 2016 at 1:35 pm #1108986Kelly Brady
GuestGeorge – 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,
KellyApril 29, 2016 at 1:50 pm #1108996George
ParticipantHey 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,
GeorgeMay 14, 2016 at 9:35 am #1114600Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Events Calendar-conflict with Simple:Press’ is closed to new replies.
