Fatal error: Uncaught Error: Call to undefined function load_textdomain()

Question

since 4 days I am suddenly faced to errors with ERROR 500.

I tried on FTP to desactivate the PLUGIN and then the theme. Yet nothing change.

here are the errors :

Parse error: syntax error, unexpected end of file in /home/cozynestlb/cozynest.tech/test/wp-includes/l10n.php on line 1646

Fatal error: Uncaught Error: Call to undefined function load_textdomain() in /test/wp-includes/load.php:1220 Stack trace: #0 /test/wp-includes/class-wp-fatal-error-handler.php(167): wp_load_translations_early() #1 /test/wp-includes/class-wp-fatal-error-handler.php(147): WP_Fatal_Error_Handler->display_default_error_template(Array, false) #2 /test/wp-includes/class-wp-fatal-error-handler.php(52): WP_Fatal_Error_Handler->display_error_template(Array, false) #3 [internal function]: WP_Fatal_Error_Handler->handle() #4 {main} thrown in /test/wp-includes/load.php on line 1220

and here are the line 1217 to 1224 in the LOAD.php :

foreach ( $locales as $locale ) {
    foreach ( $locations as $location ) {
        if ( file_exists( $location . '/' . $locale . '.mo' ) ) {
            load_textdomain( 'default', $location . '/' . $locale . '.mo' );
            if ( defined( 'WP_SETUP_CONFIG' ) && file_exists( $location . '/admin-' . $locale . '.mo' ) ) {
                load_textdomain( 'default', $location . '/admin-' . $locale . '.mo' );
            }
            break 2;

I do not know what to do. Thanks a lot for your assistance !

0
JC2022 2 months 0 Answers 38 views 0

Leave an answer