Symptoms
- A page shows 500 Internal Server Error, or a blank white page.
- WordPress may show "There has been a critical error on this website."
- Some pages work and others fail, or the admin area fails after a change.
Cause
Our web proxy only passes requests to your app. It does not create 500 errors. A 500 is the app telling the visitor that its own code failed while building the page. Common causes:
- a plugin, theme or module with a bug, or one that does not suit the app's version;
- a code change or update that went wrong;
- the app cannot reach its database (see WordPress cannot connect to its database);
- a request that needed more memory than the app's PHP memory setting allows;
- files the app needs are missing or cannot be written.
How to fix
- Note the exact time and the address that fails.
- Open the app in the console and go to the Logs tab. These are the latest lines read from your server when you open the page.
- In Show lines containing, type
fatal,errororexceptionand look for lines from around that time. They usually name the file, plugin or module at fault. - Undo the last change: disable the plugin or theme you added, or go back to the earlier version of your code.
- If the error says the app cannot connect to its database, follow WordPress cannot connect to its database.
- Press Restart on the app page if the logs show the app stuck after a failed update.
- Reload the page. If it works, check the other important pages too.
When to raise a ticket
Use Raise a ticket on the Support page if the logs show an error you cannot place, or the 500 started without any change on your side. Include:
- the app name, the server name and the failing address;
- the time it started (with your time zone);
- the log lines that mention the error (remove anything private first);
- what you changed recently.
Never include passwords, private keys or API keys. Our team supports the server and the apps we install on it. Problems inside your own custom code may need your developer.
Was this helpful?
Still need help?
24/7 support from our team. Sign in to the console to raise a ticket about this.