How to fix common WordPress errors

Most WordPress errors have a known cause and a quick fix. Here is how to tackle the usual suspects with CHPanel's File Manager and Backups.

White screen or "memory exhausted"

PHP has run out of memory. In Files → File Manager, go into public_html, click + File, name it .user.ini, then Edit it and add memory_limit = 256M. Give it a few minutes. If the screen stays white, it is usually a plugin — see below.

500 internal server error

Usually a broken .htaccess. In File Manager, Rename it to .htaccess-old and reload the site. If that fixes it, log in to WordPress, open Settings → Permalinks and click Save to write a fresh one.

Error establishing a database connection

Open wp-config.php with Edit in File Manager. DB_NAME and DB_USER must match a database and user listed under Databases → Manage Databases (both carry your account username as a prefix, e.g. sunrise_wp), and DB_HOST must be localhost. If you have lost the database password, open a support ticket and we will reset it for you.

Plugin or theme conflict

In File Manager, rename wp-content/plugins to plugins-off. If the site comes back, rename it back and then rename the plugins inside it one at a time until you find the culprit; delete or replace that one.

Still broken? Roll back

Open the Backups tab, pick last night's restore point (or an earlier one from the last seven days) and restore the site's public_html folder and its database. If anything is still wrong, open a support ticket with the exact error text.

Was this answer helpful?

 Print this Article

Also Read

How to install WordPress

WordPress is the most popular way to build a website, and you can install it in a few clicks with...

How to log in to your WordPress dashboard

The WordPress dashboard (wp-admin) is where you manage your site — pages, posts, themes, plugins...

How to reset your WordPress admin password

Locked out of WordPress? Use WordPress's own email reset first. If that email cannot reach you,...

How to keep WordPress updated

Keeping WordPress, your theme and plugins up to date is the single most important thing you can...

How to install a WordPress theme

Your theme controls how your site looks. Install thousands of free themes — or upload one you...