- March 10, 2015 at 4:07 pm #4144
Hey just wanted to report a compatibility issue. One of my clients is using Salient and looks like they have a function with the same name as one of yours. Here is the error:
Fatal error: Cannot redeclare current_page_url() (previously declared in D:\local\XAMPP\htdocs\novus\wp-content\plugins\ajax-search-pro\functions.php:61) in D:\locals\XAMPP\htdocs\novus\wp-content\themes\salient\functions.php on line 1022
I see you’re checking to see if the function exists before declaring it and it looks like Salient is hooked after yours. Do you think the best solution would be to just get rid of the Salient function via my child theme?March 10, 2015 at 4:28 pm #4145
That would be a good solution I guess. The new search update is almost ready for release, which uses prefixed function names (including this one) to prevent these types of issues forever, so a temporary solution is also fine. (like commenting out the code, or removing it)
You can also edit the main theme to add the “function_exists” statement there as well, because after the search update, this function name will no longer be declared in the search code.Best,
If you like my products, don't forget to rate them on codecanyon :)
You must be logged in to reply to this topic.