Before touching anything, make a backup. Then find your error in this list.
"Error establishing a database connection"
WordPress cannot reach its database.
- Open
wp-config.phpin cPanel's File Manager. - Check
DB_NAME,DB_USERandDB_PASSWORDmatch what cPanel → MySQL Databases shows, andDB_HOSTislocalhost. - If you changed the database user's password, update it in
wp-config.phptoo.
Blank screen or "There has been a critical error on this website"
Almost always a plugin or the theme after an update.
- In File Manager, open
wp-contentand rename thepluginsfolder toplugins-off. - If the site comes back, restore the original name and deactivate plugins one by one to find the culprit.
- If it does not, do the same with your theme folder in
wp-content/themes. - WordPress also e-mails you a recovery mode link: use it to log in and deactivate the plugin.
Error 500 (Internal Server Error)
- Rename
.htaccessinpublic_htmlto.htaccess-old. Then go to Settings → Permalinks and click Save to create a new one. - If it persists, check the
error_logfile inpublic_html: it says which file fails.
"Too many redirects"
- In the database table
wp_options, checksiteurlandhomehave the same address and protocol (https://). - If you use Cloudflare, set its SSL mode to Full (not Flexible).
"Allowed memory size exhausted" or you cannot upload large files
- In cPanel open MultiPHP INI Editor and choose your domain.
- Raise
memory_limitto 256M, andupload_max_filesizeandpost_max_sizeto 64M. - Save and try again.
You cannot log in to /wp-admin
- Use Lost your password? on the login screen.
- If the e-mail does not arrive, open phpMyAdmin, open the
wp_userstable and change your user'suser_passchoosing the MD5 function with a new password (then change it from your profile).
Cannot find your error or the fix did not work? Open a ticket with your site address and a screenshot of the error.