• Hi,

    I wanted to ask you about an error that I got today all of a sudden in my site.

    I published a post today, everything was fine until this afternoon I got this HTTP 500 error, contacted host provider they said it’s not the servers, so here it is after WP_Debug:

    Fatal error: Uncaught Error: Call to undefined function get_bloginfo() in /var/www/vhosts/shahabsiavash.com/httpdocs/wp-
    includes/class-wp-locale.php:231 Stack trace: #0 /var/www/vhosts/shahabsiavash.com/httpdocs/wp-includes/class-wp-locale.php(112): 
    WP_Locale->init() #1 /var/www/vhosts/shahabsiavash.com/httpdocs/wp-includes/load.php(927): WP_Locale->__construct() #2 
    /var/www/vhosts/shahabsiavash.com/httpdocs/wp-includes/functions.php(1408): wp_load_translations_early() #3 
    /var/www/vhosts/shahabsiavash.com/httpdocs/wp-includes/load.php(540): is_blog_installed() #4 
    /var/www/vhosts/shahabsiavash.com/httpdocs/wp-settings.php(140): wp_not_installed() #5 
    /var/www/vhosts/shahabsiavash.com/httpdocs/wp-config.php(108): require_once('/var/www/vhosts...') #6 
    /var/www/vhosts/shahabsiavash.com/httpdocs/wp-load.php(37): require_once('/var/www/vhosts...') #7 
    /var/www/vhosts/shahabsiavash.com/httpdocs/wp-blog-header.php(13): require_once('/var/www/vhosts...') #8 
    /var/www/vhosts/shahabsiavash.com/httpdocs/index.php(17): require('/var/www/ in 
    /var/www/vhosts/shahabsiavash.com/httpdocs/wp-includes/class-wp-locale.php on line 231

    I use Persian (Farsi) WordPress. Could an Auto-Update be the reason and how am I to fix all of this? I can’t load a backup because of the new post I published today and even if I do I don’t know it’s effective or not. Please help!

    Thanks a lot,

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    Seems like wordpress update is not completed successfully and some files are missing. Download wordpress and replace the wordpress core files.

    Let me know if that helps!

    Moderator t-p

    (@t-p)

    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.

    Thread Starter shahabsiavash

    (@shahabsiavash)

    Thanks @emmtoor and @t-p

    I did replace the WordPress files with the lasted version 4.9.8
    And I did rename plugin folder, theme folder and .htaccess

    None! Everything is the same and all those errors are showing up still.
    I don’t know what to do! How could it be??

    And about the logs I have access to logs on Plesk, but I don’t know what can I do with it?

    • This reply was modified 6 years, 3 months ago by shahabsiavash.

    I see that your website is loading fine.

    Dion

    (@diondesigns)

    This has nothing to do with the WordPress files. Following the stack trace, this particular error is being caused by a missing “siteurl” option, which can be fixed temporarily by adding the WP_SITEURL and WP_HOME constants to your wp-config.php file. They should duplicate whatever you had set for “WordPress address” (siteurl) and “Site address” (home) on the General Settings page.

    This fix may result in a new/different error, which would mean you have a more serious problem. Let’s hope that does not happen. ??

    Thread Starter shahabsiavash

    (@shahabsiavash)

    @emmtoor Yes! After doing everything I decided to restore a backup and it worked! I just did it and still don’t know what had happened to prevent it from happening again!

    @diondesigns I don’t know about that! Although Site URL and Site Address has been set to shahabsiavash.com for a long time now. If that’s the reason we actually should find out how that got changed all of a sudden.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordPress broke down with a HTTP 500’ is closed to new replies.