Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › White screen after activation (all other plugins work fine)
This topic contains 6 replies, has 2 voices, and was last updated by Ernest Marcinko 8 years, 10 months ago.
- AuthorPosts
- November 10, 2014 at 6:25 pm #2923
I get a white screen when I activate the plugin. All of my (many) other plugins work just fine together. I’m trying to launch the site tomorrow! You can also email me at [email protected]
Thanks!
November 10, 2014 at 6:26 pm #2924FYI, I’m an experienced dev comfortable with code, etc. Talk technical and let’s resolve this asap, please 🙂
November 10, 2014 at 6:45 pm #2925Hi!
The white screen indicates that the error reporting is turned off. Try to turn it on in the wp-config.php file, then you should see the problem printed there. My guess is that it’s a function re-declaration in the theme functions.php file without checking the function existence. But that’s just a guess. Let me know what the error says after enabling the error reporting.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 10, 2014 at 6:48 pm #2926Fatal error: Cannot redeclare isEmpty() (previously declared in /home6/fittedwe/public_html/preview/dmcpower2014/wp-content/plugins/ajax-search-prox/functions.php:195) in /home6/fittedwe/public_html/preview/dmcpower2014/wp-content/plugins/wp-rss-multi-importer/inc/options.php on line 1294
Looks like maybe a plugin conflict with RSS Multi Importer? Fixable?
November 10, 2014 at 6:53 pm #2927My guess was right, altough it’s not the theme, it’s an irresponsible plugin code.
Sure it’s fixable. Altough it’s not exactly the ajax search pro causing the problem. All you need to do is open up the wp-content/plugins/wp-rss-multi-importer/inc/options.php file, go to line 1294 where you should see the isEmpty() function declaration, I guess something like:
function isEmpty() { // The function code is here }
All you need to do is wrap that code with a function check, so it won’t try to declare the same function again:
if (!function_exists("isEmpty")) { function isEmpty() { // The function code is here } }
Then it should work without issues.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 10, 2014 at 7:04 pm #2928I did a find/replace in that file and renamed their function. Now Ajax Search PRO activates without a problem.
It looks like that plugin dev is aware of the issue:
https://wordpress.org/support/topic/fatal-error-on-install-16?replies=2
Thanks for your super speedy reply and solution!
November 10, 2014 at 7:08 pm #2929Oh, thank you for linking me there, I will get in contact with the dev!
I was just leaving the office when I got your mail, I thought we can fix it quickly together 😉
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.