Home › Forums › Calendar Products › Events Calendar PRO › Events Calendar not playing nice, using incorrect prefix
- This topic has 4 replies, 3 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
October 26, 2014 at 6:32 am #837798screenrageParticipant
I’m trying to add SimplePress to my website but keep getting this error message:
Fatal error: Cannot redeclare sp_get_option() (previously declared in /home/mysite/public_html/wp-content/plugins/the-events-calendar/public/template-tags/deprecated.php:484) in /home/mysite/public_html/wp-content/plugins/simple-press/sp-api/sp-api-primitives.php on line 95
Apparently this is due to the Events Calendar using ‘sp_’ prefix for this particular function. In WP it is good practice (and an official guideline) to use your plugin name as a prefix in some way, hence the SP prefix for SimplePress but because Events Calendar is using the same prefix for some reason it is causing a conflict.
Can this be fixed please?
October 27, 2014 at 9:58 am #841074JoshParticipantHello screenrage,
Thanks for reaching out to us!
I apologize for the inconvenience this issue is causing. The function creating the conflict is part of a deprecated file full of deprecated functions that we have left in place for backwards compatibility. All of our current functions use proper prefixing with the current plugin name.
However, we do have an easy way to disable this file from being included. You can fix the issue by adding the following to your wp-config.php file at the root of your WordPress install.
define('TRIBE_DISABLE_DEPRECATED_TAGS', true);
Let me know if this helps.
Thanks!
– Josh
October 27, 2014 at 5:28 pm #842168screenrageParticipantI added it but the error message still appears.
October 28, 2014 at 8:29 am #843946JoshParticipantHello screenrage,
Thanks for following up with us!
Having this constant defined should disable the deprecated file from loading. To verify:
- <span style=”line-height: 13px;”>Ensure that the provide snippet was added to your site’s “wp-config.php” file. It would be best to add it right below the
define( 'WP_DEBUG', false )
line of that file.</span> - <span style=”line-height: 13px;”>Did you clear your cache or do a hard refresh after making this change?</span>
- <span style=”line-height: 13px;”>It may also help to deactivate/activate the Events Calendar plugin after making this change.</span>
<span style=”line-height: 13px;”>Let me know if this helps. </span>
Thanks!
July 7, 2015 at 6:31 am #983560Support DroidKeymasterThis 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. - <span style=”line-height: 13px;”>Ensure that the provide snippet was added to your site’s “wp-config.php” file. It would be best to add it right below the
-
AuthorPosts
- The topic ‘Events Calendar not playing nice, using incorrect prefix’ is closed to new replies.