White screen on site editor page
-
We’re seeing an issue with the most recent version of the plugin (2.3.1) where WordPress crashes with a stack trace on the Site Editor. Sample:
<b>Fatal error</b>: Uncaught Error: Undefined constant "SECURE_AUTH_COOKIE" in /var/www/html/wp-includes/pluggable.php:929 Stack trace: #0 /var/www/html/wp-includes/pluggable.php(694): wp_parse_auth_cookie(false, '') #1 /var/www/html/wp-includes/class-wp-hook.php(324): wp_validate_auth_cookie(false) #2 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array) #3 /var/www/html/wp-includes/user.php(3628): apply_filters('determine_curre...', false) #4 /var/www/html/wp-includes/pluggable.php(70): _wp_get_current_user() #5 /var/www/html/wp-includes/l10n.php(98): wp_get_current_user() #6 /var/www/html/wp-includes/l10n.php(152): get_user_locale() #7 /var/www/html/wp-includes/l10n.php(947): determine_locale() #8 /var/www/html/wp-admin/includes/plugin.php(150): load_plugin_textdomain('wp-cassify', false, 'wp-cassify') #9 /var/www/html/wp-admin/includes/plugin.php(111): _get_plugin_data_markup_translate('wp-cassify/wp-c...', Array, true, true) #10 /var/www/html/wp-content/plugins/wp-cassify/wp-cassify.php(20): get_plugin_data('/var/www/html/w...') #11 /var/www/html/wp-settings.php(418): include_once('/var/www/html/w...') #12 /var/www/html/wp-config.php(130): require_once('/var/www/html/w...') #13 /var/www/html/wp-load.php(50): require_once('/var/www/html/w...') #14 /var/www/html/wp-admin/admin.php(34): require_once('/var/www/html/w...') #15 /var/www/html/wp-admin/site-editor.php(12): require_once('/var/www/html/w...') #16 {main} thrown in <b>/var/www/html/wp-includes/pluggable.php</b> on line <b>929</b><br />
The root cause is that get_plugin_data depends on load_plugin_textdomain, which needs information about the user, but it’s getting called before the cookies are set. get_plugin_data needs to be hooked in later in the load process.
- The topic ‘White screen on site editor page’ is closed to new replies.