Home › Forums › Calendar Products › Events Calendar PRO › simplepress function conflict
- This topic has 9 replies, 3 voices, and was last updated 11 years, 5 months ago by Barry.
-
AuthorPosts
-
October 15, 2012 at 7:50 am #26614stevenParticipant
I get the conflict below when installing the simplepress forum plugin Is it possible that I dont need the tags in template-tags-deprecated.php and that theres a way I can uncouple this file from the events calendar pro plugin?
Fatal error: Cannot redeclare sp_get_option() (previously declared in /home/searts/public_html/wp/wp-content/plugins/the-events-calendar/lib/template-tags-deprecated.php:215) in /home/searts/public_html/wp/wp-content/plugins/simple-press/sp-api/sp-api-primitives.php on line 98
October 17, 2012 at 7:05 am #26740BarryMemberHi Steven!
These are left in place for backwards compatibility with older, third-party code. However, you should be able to remove them without too much difficulty – just be aware that you would need to repeat this process for future updates (if they are still present in future releases).
One approach would simply be to comment out sp_ prefixed functions: http://pastebin.com/5bEFuQjh
Does that help you here? Of course, if this caused any problems you would need to uncomment them again.
October 17, 2012 at 7:14 am #26741BarryMemberJust to add – I’ve asked for feedback from the devs as to whether these functions will continue to be included (as they have anyway been deprecated) or if they remain to see if it is possible to have an upgrade-friendly way of “turning them off”.
October 24, 2012 at 9:56 am #27135BarryMemberAt this point, we’re looking at incorporating some changes in the next maintenance release that ought to help you out here.
October 24, 2012 at 11:30 am #27139stevenParticipantThanks Barry – what might be the timing do you know
October 24, 2012 at 11:42 am #27141BarryMemberAssuming it makes the next monthly maintenance release then, well, it shouldn’t be more than one month away – however I can’t give any absolute guarantees here, unfortunately.
October 25, 2012 at 10:08 am #27204RobMemberHey again Steven. Just a heads up that we are hoping to get this into the next monthly release, coming over the next week or two. No guarantees but based on our testing so far it is looking good.
November 26, 2012 at 8:05 am #28446stevenParticipantThis is circling around on my to do list again – was this fix incorporated into the current update.
Thanks
November 26, 2012 at 9:46 am #28459BarryMemberHi Steven – yes a change was made. What you would need to do (if you are using 2.0.10) is define a new constant – within wp-config.php is a good place, like this:
define('TRIBE_DISABLE_DEPRECATED_TAGS', true);
That should prevent the deprecated functions (such as The Event Calendar’s old sp_* functions) from being defined. Let me know how you get on!
November 29, 2012 at 2:23 pm #28722BarryMemberHi Steven: are you happy here / do you need any further support?
-
AuthorPosts
- The topic ‘simplepress function conflict’ is closed to new replies.