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)

This topic contains 6 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 8 years, 10 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2923
    Kenny McNett
    Kenny 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 McNett
    Kenny McNett
    Participant

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

    #2925
    Ernest Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #2926
    Kenny McNett
    Kenny 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 Marcinko
    Ernest 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:

    
    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 :)


    #2928
    Kenny McNett
    Kenny 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 Marcinko
    Ernest 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 😉

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.