We are facing this error:
PHP Fatal error: Uncaught Error: Call to undefined function get_locale() in /var/www/html/wp-includes/l10n.php:137
Stack trace:
#0 /var/www/html/wp-includes/l10n.php(828): determine_locale()
#1 /var/www/html/wp-includes/class-wp-fatal-error-handler.php(46): load_default_textdomain()
#2 [internal function]: WP_Fatal_Error_Handler->handle()
#3 {main}
thrown in /var/www/html/wp-includes/l10n.php on line 137
The error occurs since the major update to 5.5, or 5.5.1 respectively. A hotfix we found is replacing the l10n.php file on the webserver with the freshly downloaded one from wordpress, but after some time (roughly a day) the error will come up again. This happened several times in a row now. Things tested:
Can this error be caused by a plugin conflict or a theme error, and then maintain while the plugins are disabled and theme changed?
We are facing this error:
PHP Fatal error: Uncaught Error: Call to undefined function get_locale() in /var/www/html/wp-includes/l10n.php:137
Stack trace:
#0 /var/www/html/wp-includes/l10n.php(828): determine_locale()
#1 /var/www/html/wp-includes/class-wp-fatal-error-handler.php(46): load_default_textdomain()
#2 [internal function]: WP_Fatal_Error_Handler->handle()
#3 {main}
thrown in /var/www/html/wp-includes/l10n.php on line 137
The error occurs since the major update to 5.5, or 5.5.1 respectively. A hotfix we found is replacing the l10n.php file on the webserver with the freshly downloaded one from wordpress, but after some time (roughly a day) the error will come up again. This happened several times in a row now. Things tested:
Can this error be caused by a plugin conflict or a theme error, and then maintain while the plugins are disabled and theme changed?
Please do one thing, download WordPress the same version and copy the wp-includes
folder and replace the old one with this new wp-includes
.
Everything will work fine.
touch
or similar to see if that fixes it. Or you could try a slightly different version of PHP if there's one available. But I'm just guessing sorry. – Rup Commented Sep 7, 2020 at 8:38