Fatal Error
-
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.
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.