Fix common WordPress errors
Diagnose the WordPress critical error, white screen, database connection error, 403 blocks and admin lockouts on FoxFolio Cloud hosting.
Quick answer
Most WordPress errors come from a plugin, the theme, a low PHP memory limit or wrong database details in wp-config.php. Check the error log in the control panel, deactivate the most recently changed plugin or theme from the WordPress tools, and compare the database settings with MySQL Databases. Take a backup before editing files.
Before you start
- Access to the hosting control panel for the site
- A recent backup, or time to create one before changing files
Applies to: WordPress Cloud, Managed WordPress, Cloud Hosting.
Match the message to the likely cause
| What you see | Most likely cause |
|---|---|
| “There has been a critical error on this website” or a blank white page | A plugin, the theme, missing core files or the PHP memory limit |
| “Error establishing a database connection” | Wrong database name, user, password or host in wp-config.php, or damaged tables |
| 403 Forbidden when saving or submitting | The web application firewall blocked a request that looked unsafe |
| Cannot sign in to the WordPress dashboard | Wrong password, a security plugin, or an old site address |
Steps
Back up before changing anything
Create a files-and-database backup. See Create an on-demand backup.
Read the error log
In the control panel, open the logs section and view the error log. A “fatal error” line usually names the plugin or theme folder at fault.
Deactivate the likely culprit
On WordPress plans, use the plugin or theme list in the WordPress tools to deactivate it. On any plan, you can rename the plugin’s folder in
wp-content/pluginswith File Manager to switch it off.Show the real error if needed
In File Manager, edit
wp-config.phpand setWP_DEBUGtotrue, reload the page to read the message, then set it back tofalsestraight away so visitors do not see it.Raise the PHP memory limit if the log says memory was exhausted
Increase
memory_limitin the PHP settings. See Change your PHP version and PHP settings.Fix a database connection error
Compare
DB_NAME,DB_USER,DB_PASSWORDandDB_HOSTinwp-config.phpwith what MySQL Databases shows. The server name shown there is the database host. If the details match, repair the tables withwp db repairover SSH or the repair option in phpMyAdmin.Regain dashboard access
Reset the administrator password from the WordPress tools’ Users screen. If a security plugin blocks you, rename its folder to deactivate it temporarily.
What you should see
The site loads normally again, the error log stops showing new fatal errors, and you can sign in to the WordPress dashboard. Update or replace the plugin or theme that caused the problem before reactivating it.
Troubleshooting and common mistakes
- Nothing in the error log explains the fault.
- Run through Fix a website that is not loading, which also checks the domain, SSL and malware status.
- A 403 appears only when saving a particular page or form.
- The firewall rule that blocked it can only be adjusted by support. Open a ticket with the page address and the time it happened.
- The site broke after an update and none of the above helps.
- Restore the backup taken before the update. See Restore files or a database from a backup.
When to contact FoxFolio support
Open a ticket if the error log points to the server rather than WordPress, if the database cannot be reached even with correct details, or if a firewall block needs reviewing. Include the site address, the exact error and when it started. WordPress Cloud support covers the hosting platform; debugging custom code, themes or plugins is outside standard support, though support will tell you what the logs show.
Sources
Adapted from the platform vendor’s WordPress error, database connection, logs and firewall documentation.
- Fix a WordPress critical error (opens in a new tab) — 20i documentation
- Fix "Error establishing a database connection" (opens in a new tab) — 20i documentation
- Access and error logs (opens in a new tab) — 20i documentation
- Reset a WordPress user password (opens in a new tab) — 20i documentation
- ModSecurity changes (opens in a new tab) — 20i documentation
- PHP memory_limit (opens in a new tab) — 20i documentation
