Title: 500 error
Last modified: January 4, 2020

---

# 500 error

 *  Resolved [audacity45](https://wordpress.org/support/users/audacity45/)
 * (@audacity45)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/500-error-160/)
 * Hello suddenly last night started getting 500 internal server error and this 
   error showing in debug log. please help
 *     ```
       [04-Jan-2020 06:04:07 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function wp_kses_normalize_entities() in /var/www/html/wp-includes/formatting.php:4316
       Stack trace:
       #0 /var/www/html/wp-includes/class-wp-fatal-error-handler.php(190): esc_url('https://wordpre...')
       #1 /var/www/html/wp-includes/class-wp-fatal-error-handler.php(147): WP_Fatal_Error_Handler->display_default_error_template(Array, false)
       #2 /var/www/html/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 /var/www/html/wp-includes/formatting.php on line 4316
       [04-Jan-2020 06:04:07 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /var/www/html/wp-includes/wp-db.php:1665
       Stack trace:
       #0 /var/www/html/wp-includes/wp-db.php(632): wpdb->db_connect()
       #1 /var/www/html/wp-includes/load.php(425): wpdb->__construct('XXXXXXr', 'XXXXXX', 'XXXXXX', 'localhost')
       #2 /var/www/html/wp-settings.php(116): require_wp_db()
       #3 /var/www/html/wp-config.php(103): require_once('/var/www/html/w...')
       #4 /var/www/html/wp-load.php(37): require_once('/var/www/html/w...')
       #5 /var/www/html/wp-admin/admin-ajax.php(22): require_once('/var/www/html/w...')
       #6 {main}
         thrown in /var/www/html/wp-includes/wp-db.php on line 1665
       ```
   
    -  This topic was modified 6 years, 4 months ago by [audacity45](https://wordpress.org/support/users/audacity45/).
    -  This topic was modified 6 years, 4 months ago by [audacity45](https://wordpress.org/support/users/audacity45/).
    -  This topic was modified 6 years, 4 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/500-error-160/#post-12292772)
 * Try [manually resetting your plugins](https://wordpress.org/support/article/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus)(
   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, access your server via [SFTP or FTP](https://wordpress.org/support/article/ftp-clients/),
   or a file manager in your hosting account’s control panel (consult your hosting
   provider’s documentation for specifics on these), 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 (theme
   functions can interfere like plugins).
 * If that doesn’t make any difference, try [downloading WordPress](https://wordpress.org/download/)
   again, access your server via [SFTP or FTP](https://wordpress.org/support/article/ftp-clients/),
   or a file manager in your hosting account’s control panel (consult your hosting
   provider’s documentation for specifics on these), and delete then replace your
   copies of everything on the server **except** the wp-config.php file and the /
   wp-content/ directory with fresh copies from the download. This will effectively
   replace all of your core files without damaging your content and settings.
 * Some uploaders tend to be unreliable when overwriting files, so don’t forget 
   to delete the original files before replacing them.
 *  Thread Starter [audacity45](https://wordpress.org/support/users/audacity45/)
 * (@audacity45)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/500-error-160/#post-12292855)
 * Hello, I fixed the problem. I had some PHP updates pending. As soon as I updated
   PHP the problem disappeared. So the problem was mostly with PHP it seems for 
   me at least.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘500 error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [audacity45](https://wordpress.org/support/users/audacity45/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/500-error-160/#post-12292855)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
