Common WordPress problems and how to fix them
PrintIn short: a wp-admin lockout is almost always a plugin, and renaming its folder switches it off. Inner pages returning 404 are fixed by saving the permalinks again. Plugins that refuse to install can be uploaded as a zip file, and a stuck demo import usually needs higher PHP limits.
Gather the facts first
- Copy the exact error message or take a screenshot.
- Think about the last change: an update, a new plugin, a settings tweak.
- Make a backup if you do not have a recent one. Daily JetBackup copies are also kept on the hosting and can be restored (see restoring with JetBackup 5).
You are locked out of wp-admin
The usual causes are an outdated plugin, a plugin that clashes with something you just updated, or a security plugin blocking your login.
Identify the plugin. WordPress e-mails the site administrator about a "technical issue", naming the plugin and including a recovery mode link that lets you disable it. No e-mail? In cPanel, open Metrics, then Errors; a path such as wp-content/plugins/plugin-name/ gives it away. More on this in How to read error_log and turn off the plugin that causes an error.
Switch it off.
- In cPanel, open File Manager and browse to the
wp-content/pluginsfolder. - Give the plugin folder a new name, for example
plugin-nametoplugin-name.off. WordPress then treats it as inactive. - Sign in to
wp-admin, update or replace the plugin, then restore the folder name and activate it again.
Not sure which plugin it is? Rename the whole plugins folder to plugins.off, sign in, rename it back and reactivate plugins one at a time. Their settings stay in the database, so nothing is lost.
The home page works but other pages return 404
The rewrite rules in .htaccess are missing or damaged.
- In WordPress, go to Settings, then Permalinks, and click Save Changes without changing anything.
- Still broken? Open
.htaccessin the site folder and put back the standard WordPress rules from Setup .htaccess file for popular CMS. - If the file keeps getting damaged, a plugin is rewriting it. Test SSL, security, SEO, caching and redirect plugins one by one.
Plugins will not install or update
A plugins_api() error or a message about not reaching WordPress.org is often temporary.
- Try again after a few minutes.
- Make sure the account still has free disk space (disk usage in cPanel).
- Download the plugin as a
.zipfile from wordpress.org/plugins. - Upload it under Plugins, then Add New, then Upload Plugin.
WP Toolkit in cPanel can also update plugins, and it does not depend on the WordPress dashboard.
The theme's demo import never finishes
- Confirm the theme licence is active and every plugin the demo needs is installed.
- Look up the recommended PHP values in the theme's documentation. The usual ones are
memory_limit,max_execution_time,upload_max_filesize,post_max_sizeandmax_input_vars. - Set them in cPanel as described in How to change php.ini settings in cPanel.
- Check that WordPress sees them under Tools, then Site Health, Info tab, Server section.
- Run the import again. If the theme allows it, import only the parts you need.
A large import can also hit your plan's CPU or memory limits. The Resource Usage page in cPanel shows whether limits were reached while it ran.
Asking support for help
Open a ticket with the site address, the exact message or a screenshot, your last change and, for demo imports, the theme name and the PHP values it asks for. Never put passwords in the ticket text.