• I just saw the following error message in my debug.log file:

    PHP Warning: Use of undefined constant USER_SWITCHING_OLDUSER_COOKIE – assumed ‘USER_SWITCHING_OLDUSER_COOKIE’ (this will throw an Error in a future version of PHP) in wp-content/plugins/user-switching/user-switching.php on line 1067

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

    (@johnbillion)

    WordPress Core Developer

    Are you calling any of User Switching’s functions on your site? For example user_switching_get_olduser_cookie() or current_user_switched()? Or are you loading the User Switching plugin in a non-standard way?

    This error will only show up if those functions get called before the plugins_loaded hook has fired.

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined Constant USER_SWITCHING_OLDUSER_COOKIE’ is closed to new replies.