• Resolved joelworsham

    (@joelworsham)


    I’ve encountered this error:

    Catchable fatal error: Argument 1 passed to user_switching::filter_user_has_cap() must be of the type array, null given in /srv/www/realbigplugins/htdocs/wp-content/plugins/user-switching/user-switching.php on line 633

    This error was technically caused by me. I’m working on a plugin that modifies the $current_user object early on in the load. I actually made a mistake and caused the $current_user->all_caps property to be null. This will barely every happen I’m sure and isn’t super important, but perhaps a failsafe could be implemented to prevent a fatal error in this edge case. Your choice.

    https://wordpress.org/plugins/user-switching/

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

The topic ‘Fatal Error’ is closed to new replies.