• Yes, I know that plugin compatibility is the plugin authors’ problem

    Isn’t plugin.php actually WordPress’ responsibility?

    I upgraded my Godaddy host to PHP v5.4x and I get these strict errors:
    Strict Standards: Redefining already defined constructor for class wpsh_boot_loader in /home/content/80/5597080/html/mdsresource.net/wp-content/plugins/wp-system-health/boot-loader.php on line 9

    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method sbroi::menu() should not be called statically in /home/content/80/5597080/html/mdsresource.net/wp-includes/plugin.php on line 429

    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method sociable_Admin_Options::add_menu_pages() should not be called statically in /home/content/80/5597080/html/mdsresource.net/wp-includes/plugin.php on line 429

    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method sbroi::filestuff() should not be called statically in /home/content/80/5597080/html/mdsresource.net/wp-includes/plugin.php on line 429

    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method sociable_Admin_Options::init() should not be called statically in /home/content/80/5597080/html/mdsresource.net/wp-includes/plugin.php on line 429

    Please, advise. Thank you

Viewing 1 replies (of 1 total)
  • catacaustic

    (@catacaustic)

    What you’re seeing isn’t an issue with plugin.php. It’s a problem with some external third party code calling a method that’s contained in that file. There’s some code in the external code that’s not passing the correct values to the WordPress function, and because of that, the PHP parser is showing the errors. It’s not an error with plugin.php itself.

    Even in your examples, it gives yo ua very good idea of where to look for the problems. some examples are:

    call_user_func_array() expects parameter 1 to be a valid callback, non-static method sbroi::menu() – That’s a problem with something called sbroi.

    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method sociable_Admin_Options::add_menu_pages() – That one’s easy… That’s the Socialble plugin.

    When you look at the actual error messages you’ll see what they really are. The issue isn’t with the WordPress core code, it’s with these (and other) plugins not doing the right things, and asusming that WordPress will swallow their errors and just keep on working when they just don’t on some servers.

Viewing 1 replies (of 1 total)
  • The topic ‘WP w/PHP v5.4x ???’ is closed to new replies.