This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

White screen after activation (all other plugins work fine)

Home Forums Product Support Forums Ajax Search Pro for WordPress Support White screen after activation (all other plugins work fine)

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2923
    Kenny McNettKenny McNett
    Participant

    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!

    #2924
    Kenny McNettKenny McNett
    Participant

    FYI, I’m an experienced dev comfortable with code, etc. Talk technical and let’s resolve this asap, please 🙂

    #2925
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    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.

    #2926
    Kenny McNettKenny McNett
    Participant
    
    Fatal 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?

    #2927
    Ernest MarcinkoErnest Marcinko
    Keymaster

    My 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.

    #2928
    Kenny McNettKenny McNett
    Participant

    I 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!

    #2929
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Oh, 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 😉

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.