Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › White screen after activation (all other plugins work fine)
- This topic has 6 replies, 2 voices, and was last updated 11 years, 6 months ago by
Ernest Marcinko.
-
AuthorPosts
-
November 10, 2014 at 6:25 pm #2923
Kenny McNett
ParticipantI 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 #2924Kenny McNett
ParticipantFYI, 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 #2925Ernest Marcinko
KeymasterHi!
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.
November 10, 2014 at 6:48 pm #2926Kenny McNett
ParticipantFatal 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 1294Looks like maybe a plugin conflict with RSS Multi Importer? Fixable?
November 10, 2014 at 6:53 pm #2927Ernest Marcinko
KeymasterMy 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:
[php]
function isEmpty() {
// The function code is here
}
[/php]All you need to do is wrap that code with a function check, so it won’t try to declare the same function again:
[php]
if (!function_exists("isEmpty")) {
function isEmpty() {
// The function code is here
}
}
[/php]Then it should work without issues.
November 10, 2014 at 7:04 pm #2928Kenny McNett
ParticipantI 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 #2929Ernest Marcinko
KeymasterOh, 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 😉
-
AuthorPosts
- You must be logged in to reply to this topic.