Undefined constant “AUTH_COOKIE”
-
After last update WordPress (6.3.1) and plugin (4.4.5.1) I have the error launching my console php script with stack (see below)
Fatal error: Uncaught Error: Undefined constant "AUTH_COOKIE" in .../wp-includes/pluggable.php:932
isWpLoginPage
callingsanitize_file_name
callingget_allowed_mime_types
and_wp_get_current_user
(if function current_user_can exists).
wp-settings.php (line 402) -> loading network activated plugins ( if (is_multisite() )
wp-settings.php (line 434) -> wp_cookie_constants();
Who is to blame and what to do?
ThanksStack trace: #0 /wp-includes/pluggable.php(694): wp_parse_auth_cookie(false, '') #1 /wp-includes/class-wp-hook.php(310): wp_validate_auth_cookie(false) #2 /wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array) #3 /wp-includes/user.php(3622): apply_filters('determine_curre...', false) #4 /wp-includes/pluggable.php(70): _wp_get_current_user() #5 /wp-includes/capabilities.php(877): wp_get_current_user() #6 /wp-includes/functions.php(3554): current_user_can('unfiltered_html') #7 /wp-includes/formatting.php(2085): get_allowed_mime_types() #8 /wp-content/plugins/all-in-one-seo-pack/app/Common/Traits/Helpers/WpContext.php(722): sanitize_file_name('varwwwhtdocs_ne...') #9 /wp-content/plugins/all-in-one-seo-pack/app/Common/Main/QueryArgs.php(32): AIOSEO\Plugin\Common\Utils\Helpers->isWpLoginPage() #10 /wp-content/plugins/all-in-one-seo-pack/app/Common/Main/Main.php(24): AIOSEO\Plugin\Common\Main\QueryArgs->__construct() #11 /wp-content/plugins/all-in-one-seo-pack/app/AIOSEO.php(327): AIOSEO\Plugin\Common\Main\Main->__construct() #12 /wp-content/plugins/all-in-one-seo-pack/app/AIOSEO.php(97): AIOSEO\Plugin\AIOSEO->load() #13 /wp-content/plugins/all-in-one-seo-pack/app/AIOSEO.php(76): AIOSEO\Plugin\AIOSEO->init() #14 /wp-content/plugins/all-in-one-seo-pack/app/AIOSEO.php(413): AIOSEO\Plugin\AIOSEO::instance() #15 /wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php(96): aioseo() #16 /wp-settings.php(407): include_once('/var/www/htdocs...') #17 /wp-config.php(107): require_once('/var/www/htdocs...') #18 /wp-load.php(50): require_once('/var/www/htdocs...') #19 /admin-scripts/smtp-cron-daemon.php(35): require_once('/var/www/htdocs...')
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Undefined constant “AUTH_COOKIE”’ is closed to new replies.