I get a critical error on my website when I try to login. Here is what WordPress outputs:
Warning: Undefined array key “cy” in /var/www/website/wp-content/cachef.php on line 1 Warning: Undefined array key “cy” in /var/www/website/wp-content/cachef.php on line 1 Warning: Undefined array key “cy” in /var/www/website/wp-content/cachef.php on line 1 Warning: Undefined array key “cy” in /var/www/website/wp-content/cachef.php on line 1 Warning: Undefined array key “cy” in /var/www/website/wp-content/cachef.php on line 1 Warning: Undefined array key “cy” in /var/www/website/wp-content/cachef.php on line 1 Warning: Undefined array key “cy” in /var/www/website/wp-content/cachef.php on line 1 Warning: Undefined array key “cy” in /var/www/website/wp-content/cachef.php on line 1 Fatal error: Uncaught Error: Undefined constant “cnt” in /var/www/website/wp-includes/user.php:199 Stack trace: #0 /var/www/website/wp-includes/user.php(200): getx() #1 /var/www/website/wp-includes/class-wp-hook.php(324): wp_authenticate_username_password() #2 /var/www/website/wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 /var/www/website/wp-includes/pluggable.php(618): apply_filters() #4 /var/www/website/wp-includes/user.php(106): wp_authenticate() #5 /var/www/website/wp-login.php(1309): wp_signon() #6 {main} thrown in /var/www/website/wp-includes/user.php on line 199
I googled it and other people have had the same issue. I have tried all the normal advice when something randomly breaks: Turn off all plugins / themes (I moved /wp-content/plugins to wp-content/old-plugins etc)
I hadn’t done anything except change my password since the last time the website was working. Even then I logged in after.
I did manually go into user.php and modify the getx() function to just return “true” this actually fixed this issue however when I tried to add another user it gave a similar error with another function doing basically the same thing. Obviously manually changing the function was just a test anyway not a long term solution.
//function getx($url){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,…
function getx() {return true;}
Any thoughts?
​
[ad_2]