Viewing 7 replies - 1 through 7 (of 7 total)
  • Me too.

    I’m running 3.5.1 with multisite and Buddy Press. I’ll test with a previous version and feedback.

    [edit] Should have said it breaks admin pages only.

    I added this:

    require_once(ABSPATH . "wp-admin/includes/screen.php");

    to the top of wp-content/plugins/media-category-library/classes/media-category-library.php as per https://www.ads-software.com/support/topic/fatal-error-when-going-to-wp-admin?replies=5

    This brings the website admin back.

    This solved the same issue for me. @c3iq, thanks for posting the fix.

    Plugin Author timmcdaniels

    (@timmcdaniels)

    The new version (1.9) addresses this issue. It was a problem with WP 3.5.1 and before, I believe.

    Just installed version 1.9, and it (re-)caused the fatal error, which I had previously fixed in the earlier version by inserting the “require_once” command as noted above.

    Fortunately the fix of adding “require_once” still fixes the re-caused problem in version 1.9.

    The function ‘get_current_screen()’ doesn’t exist from the very start when the plugin is initialized. That’s why it’s good practice to check whether or not the function exists before using it.

    function_exists()

    Plugin Author timmcdaniels

    (@timmcdaniels)

    Hi Stefan,

    I had done that for one function call, but I missed the other function call later in the code. I do this for both function calls:

    if ( ! function_exists( ‘get_current_screen’ ) ) return;

    Would you mind trying again to make sure the new version fixes this for you. Also, what version of WP are you running?

    Thanks,

    Tim

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal Error!’ is closed to new replies.