• Resolved rickonline_nl

    (@rickonline_nl)


    After the update to 1.11.0, I started getting this fatal error on the login screen. It seems that filter_login_message() is expecting a string, but receives null instead.

    Has anyone else encountered this issue or found a workaround?

    A fatal error of type E_ERROR occurred on line 796 of the file /wp-content/plugins/user-switching/user-switching.php

    Uncaught TypeError: user_switching::filter_login_message(): Argument #1 ($message) must be of type string, null given, called in /wp-includes/class-wp-hook.php on line 324 and defined in /wp-content/plugins/user-switching/user-switching.php:796
    Stack trace:
    0 /wp-includes/class-wp-hook.php(324): user_switching->filter_login_message()
    1 /wp-includes/plugin.php(205): WP_Hook->apply_filters()
    2 /wp-login.php(231): apply_filters()
    3 /wp-login.php(1490): login_header() 4 {main}

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    This sounds like another plugin (or theme) on your site is using the login_message filter and incorrectly returning null, which then gets passed on to User Switching.

    Can you try deactivating your other plugins one by one to see if you can identify the culprit? Start with any others that you updated at the same time as you updated User Switching. I don’t think this is specific to the 1.11.0 update because this code hasn’t changed since 1.9.0.

    Thread Starter rickonline_nl

    (@rickonline_nl)

    Thanks. I’ve narrowed it down to LoginPress. I’ve resaved the options of this plugin, and now it seems to work again,

    Thank you for your time!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal error after update to 1.11.0’ is closed to new replies.