Website showing HTTP ERROR 500

Hi everyone,
Since yesterday when I opened my php.admin (and actually did nothing) since then I can’t get into my website, it shows me HTTP ERROR 500 page. I tried to fix it with some tutorials but it didn’t work
This is my website, and the status is running–>(https://elmustapha.000webhostapp.com/)

First step to troubleshooting a 500 error would be to check your .htaccess

I opened your .htaccess and it looks good to me, if you weren’t sure if it was a good file or not you could search for the “Default .htaccess for XYZ” in your case being WordPress :slight_smile:

https://wordpress.org/support/article/htaccess/

Next step of troubleshooting would be to enable errors to show on the page having the current 500 error being index.php


ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

Once enabled just save and reload your webpage that was previously having the 500

Now we see a few messages and can continue troubleshooting per the printout

**Fatal error** : Uncaught Error: Call to undefined function get_bloginfo() in /storage/ssd2/787/7592787/public_html/wp-includes/class-wp-locale.php:225 Stack trace: #0 /storage/ssd2/787/7592787/public_html/wp-includes/class-wp-locale.php(104): WP_Locale->init() #1 /storage/ssd2/787/7592787/public_html/wp-includes/load.php(1056): WP_Locale->__construct() #2 /storage/ssd2/787/7592787/public_html/wp-includes/wp-db.php(1650): wp_load_translations_early() #3 /storage/ssd2/787/7592787/public_html/wp-includes/wp-db.php(639): wpdb->db_connect() #4 /storage/ssd2/787/7592787/public_html/wp-includes/load.php(435): wpdb->__construct('id7592787_wp_af...', 'a594631ebefe0de...', 'id7592787_wp_af...', 'localhost') #5 /storage/ssd2/787/7592787/public_html/wp-settings.php(109): require_wp_db() #6 /storage/ssd2/787/7592787/public_html/wp-config.php(77): require_once('/storage/ssd2/7...') #7 /storage/ssd2/787/7592787/public_html/wp-load.php(37): require_once('/storage/ssd2/7...') #8 /storage/ssd2/787/7592787/public_html/wp-blog-header.php(13): r in  **/storage/ssd2/787/7592787/public_html/wp-includes/class-wp-locale.php**  on line  **225**

I’ll head over to WordPress to view their master

Since class-wp-locale.php appears in your error printout as having issues I’ll rename your one to class-wp-locale.php.original and upload the master copy from WordPress themselves.

Once uploaded, reload the site to see if the error has gone away completely or part of it has resolved.

Now it shows

We simply head over to Manage Database on 000webhost, Manage the database and if we successfully gain access to phpMyAdmin then we can assume the details in wp-config.php are wrong.

Ensure the username, database name and password match that of what you set via 000webhost panel, if unsure best to pick a new password and place this into the wp-config.php

In your case phpMyAdmin has loaded up with no issue, so we take the wp-config.php password and use this to set the password via 000webhost panel.

Now refresh the page to see if this cures the error connecting to database.

Hip hip!

All systems go! :slight_smile:

1 Like