• Hi, I’m having this problem since 2 weeks, and after few days of deleting and uploading the wp-admin and wp-includes fresh files downloaded from WordPress always results on a 500 server error, making the website inaccessible.

    Part of the error:

    [27-Mar-2019 19:07:42 UTC] PHP Fatal error: Uncaught Error: Call to undefined function determine_locale() in /home/victorin/public_html/wp-includes/class-wp-locale-switcher.php:48
    Stack trace:
    #0 /home/victorin/public_html/wp-settings.php(473): WP_Locale_Switcher->__construct()
    #1 /home/victorin/public_html/wp-config.php(91): require_once(‘/home/victorin/…’)
    #2 /home/victorin/public_html/wp-load.php(37): require_once(‘/home/victorin/…’)
    #3 /home/victorin/public_html/xmlrpc.php(30): include(‘/home/victorin/…’)
    #4 {main}
    thrown in /home/victorin/public_html/wp-includes/class-wp-locale-switcher.php on line 48
    [27-Mar-2019 19:12:39 UTC] PHP Fatal error: Uncaught Error: Call to undefined function determine_locale() in /home/victorin/public_html/wp-includes/class-wp-locale-switcher.php:48
    Stack trace:
    #0 /home/victorin/public_html/wp-settings.php(473): WP_Locale_Switcher->__construct()
    #1 /home/victorin/public_html/wp-config.php(91): require_once(‘/home/victorin/…’)
    #2 /home/victorin/public_html/wp-load.php(37): require_once(‘/home/victorin/…’)
    #3 /home/victorin/public_html/wp-blog-header.php(13): require_once(‘/home/victorin/…’)
    #4 /home/victorin/public_html/index.php(17): require(‘/home/victorin/…’)
    #5 {main}
    thrown in /home/victorin/public_html/wp-includes/class-wp-locale-switcher.php on line 48
    [27-Mar-2019 19:22:02 UTC] PHP Fatal error: Uncaught Error: Call to undefined function determine_locale() in /home/victorin/public_html/wp-includes/class-wp-locale-switcher.php:48

    Please, I need some help regarding this problem, because I tried to fix it with some info I found in this forum, but always after uploading the fresh files, after some days I always get the 500 error.

    Link to log: DROPBOX

    What can I do?

    • This topic was modified 5 years, 8 months ago by ipetahh.
Viewing 1 replies (of 1 total)
  • Moderator t-p

    (@t-p)

    I tried to fix it with some info I found in this forum, but always after uploading the fresh files, after some days I always get the 500 error.

    Internal server errors (error 500) are often caused by plugin or theme function conflicts, so if you have access to your admin panel, try deactivating all plugins. If you don’t have access to your admin panel, try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the default theme for your version of WordPress to rule-out a theme-specific issue. If you don’t have access to your admin panel, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue.

    If that does not resolve the issue, it’s possible that a .htaccess rule could be the source of the problem. To check for this, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and rename the .htaccess file. If you can’t find a .htaccess file, make sure that you have set your SFTP or FTP client to view invisible files.

    If you weren’t able to resolve the issue by either resetting your plugins and theme or renaming your .htaccess file, we may be able to help, but we’ll need a more detailed error message.

    Internal server errors are usually described in more detail in the server error log. If you have access to your server error log, generate the error again, note the date and time, then immediately check your server error log for any errors that occurred during that time period. If you don’t have access to your server error log, ask your hosting provider to look for you.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Fatal error: Uncaught Error: Call to undefined function determine_locale()’ is closed to new replies.