There has been a critical error on this website.
-
I open File Manager, open wp-content/wp-config.php and entered the wrong code and my website and admin is not accessable i am getting this error There has been a critical error on this website.
The blog I need help with is: (visible only to logged in users)
-
Hi @sssfak822
That error means your wp-config.php file has a syntax mistake. Even a missing ;, ) or extra space can cause the site to crash.
To fix it:
- Go back into File Manager (or FTP) and open wp-config.php.
- Compare it against a default wp-config-sample.php file from WordPress look for missing quotes, commas, or brackets. From here you can get WP config file.
- If you can’t spot the issue, upload a fresh copy of wp-config.php from the WordPress package and re-enter your database credentials.
- Save and refresh the site and admin should load again.
In future, always make a backup of wp-config.php before editing.
-
Hi there! I’m going to close this topic since we recently contacted you on live chat. If you need further help with anything else, please feel free to reach out to us at help@wordpress.com
- The topic ‘There has been a critical error on this website.’ is closed to new replies.