• Resolved audacity45

    (@audacity45)


    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
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator James Huff

    (@macmanx)

    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, access your server via SFTP or FTP, 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 again, access your server via SFTP or FTP, 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

    (@audacity45)

    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.