Your website opens, but instead of your page it shows an error. This guide tells you what each common error means, the usual cause on our hosting, and what to do. Find the message you see in the table, then read its section.
The site does not open at all ("This site can't be reached", "DNS_PROBE_FINISHED_NXDOMAIN")? See My website does not open instead.
| What you see | Most likely cause | Section |
|---|---|---|
| 500 Internal Server Error | A PHP error or a bad line in .htaccess |
1 |
| There has been a critical error on this website, or a blank white page | A WordPress plugin or theme | 2 |
| Error establishing a database connection | Wrong database details in the site's settings | 3 |
| 502 Bad Gateway, 503 Service Unavailable, 504 Gateway Timeout | The site is busy or a page runs too long | 4 |
| 403 Forbidden | File permissions, a missing home page, or our firewall | 5 |
| 404 Not Found | The page or file is not where the address says | 6 |
| ERR_TOO_MANY_REDIRECTS | Two settings sending visitors in a circle | 7 |
| Not secure next to the address | No certificate yet, or http:// links in the page | 8 |
| 413 Request Entity Too Large when uploading | The file is bigger than the upload limit | 9 |
Before you change anything: if the site is important, take a backup first. See Backups and restoring. Every account also has automatic daily backups.
Your best tool: the error log
For errors 500, 503 and the WordPress "critical error", the site's error log almost always names the cause, with the file and the line. See Read the error log. Look at the lines with the time the error happened.
1. 500 Internal Server Error
The server could not finish the page. On our hosting the cause is nearly always one of these:
- A PHP error in the site's code. The error log shows
PHP Fatal errorwith the file. If the file is underwp-content/plugins/<name>/, see section 2. - A bad line in
.htaccess(often added by a plugin or copied from a guide for another server). In the File Manager, open your site'spublic_htmlfolder, rename.htaccessto.htaccess-oldand reload the site. If it opens, the problem is in that file. For WordPress, go to Settings > Permalinks and click Save Changes: WordPress writes a fresh, clean.htaccess. - The PHP version is too new or too old for the site's code, for example after a change of PHP version. See PHP version and PHP limits.
2. "Critical error" or a blank page (WordPress)
WordPress shows There has been a critical error on this website when a plugin or the theme stops with a PHP error. It also sends an email to the site's admin address with a special recovery mode link. Open that link, sign in, and WordPress lets you deactivate the plugin that failed.
No email? Switch the plugins off from the File Manager:
- In the File Manager, open
public_html/wp-content. - Rename the
pluginsfolder toplugins-off. All plugins stop at once. - Reload the site. If it opens, rename the folder back to
plugins, then in WordPress > Plugins turn the plugins on one by one until the error returns. The last one you turned on is the cause.
If it is the theme, rename that theme's folder under wp-content/themes/, and WordPress falls back to a default theme.
3. "Error establishing a database connection"
WordPress (or another app) cannot reach its database with the details in its settings file. In WordPress that is wp-config.php, in the site's public_html folder.
- In the control panel, open Databases and note the exact database name and user. On TackHost both start with your account name, for example
myaccount_wp. - In the File Manager, open
wp-config.phpand compareDB_NAME,DB_USERandDB_PASSWORD. UselocalhostforDB_HOST. - Not sure of the password? Set a new one for the database user in Databases, then put the same one in
wp-config.php.
See Databases and phpMyAdmin. If the error comes and goes at busy times, the site may be opening more database connections at once than your plan allows: see Plan limits.
4. 502, 503 or 504
These mean the website was too busy to answer in time, or one page ran for too long:
- Every PHP worker of your site was busy. Each plan runs a set number of PHP pages at the same time (see Plan limits). A burst of visitors, a bot crawling the site, a slow plugin or a long import can use all of them.
- One page runs longer than the time limit, for example a big import or a report.
What to do:
- Wait a minute and reload. Our monitoring checks every site all the time and restarts a stuck site by itself.
- Turn on caching, so most visitors get a ready page without PHP: see Speed up WordPress.
- If it keeps happening at busy times, your site has outgrown its plan: see Upgrade your plan, or open a ticket and we will tell you what is using the workers.
5. 403 Forbidden
- No home page in the folder. The site's folder needs an
index.phporindex.html. Checkpublic_htmlin the File Manager. After an upload, the files are sometimes one folder too deep, for examplepublic_html/mysite/index.html. - Wrong permissions. Folders should be
755and files644. A folder set to700or a file set to600gives 403 to visitors. - A protected folder. If you set a password on a folder, visitors without it get 403 or a password box. See Redirects, error pages and protected folders.
- Our firewall stopped one request. If the 403 appears only when you do one thing, for example Publish or Save in WordPress or an upload, our web firewall may have taken a normal request for an attack. Open a ticket with the page address, the exact time and what you clicked, and we will adjust the rule for your site.
6. 404 Not Found
- WordPress pages give 404 but the home page works: go to Settings > Permalinks and click Save Changes.
- A file you uploaded gives 404: check where it is in the File Manager. The site's address starts at
public_html, sopublic_html/files/menu.pdfopens ashttps://yourdomain.com/files/menu.pdf. Names are case sensitive:Menu.pdfandmenu.pdfare different files. - An old address changed: add a redirect from the old address to the new one, see Redirects.
7. ERR_TOO_MANY_REDIRECTS
The browser was sent from one address to another in a circle. Usual causes:
- Cloudflare set to "Flexible" SSL while the site also forces HTTPS. In Cloudflare, set SSL/TLS to Full.
- Two places force HTTPS or www differently, for example a plugin and a line in
.htaccess. Keep only one. - WordPress has a different address in Settings > General (WordPress Address and Site Address) from the one you open, for example
http://there andhttps://in the browser. Make both the same, withhttps://.
Clear your browser's cookies for the site after a change, then try again.
8. "Not secure" in the address bar
- No certificate yet: see Turn on free SSL.
- The certificate is fine but the page still says "Not secure": some images, scripts or styles in the page still load with
http://. In WordPress, make sure both addresses in Settings > General start withhttps://, then replace the oldhttp://yourdomain.comlinks in your content.
9. 413 Request Entity Too Large
The file you upload is bigger than the upload limit. Raise upload_max_filesize and post_max_size for that site: see PHP version and PHP limits. For a very large file (a full site backup, a video), upload it with the File Manager or FTP instead.
Still stuck?
Open a support ticket with the page address, the full error message, the time it happened and what changed just before. A screenshot of the whole browser window helps. Fixing your own code, themes and plugins is the developer's job, but we always check whether the hosting is the cause and tell you what we found. See what our support covers.