UnderHost
Knowledgebase Docs

WordPress troubleshooting guide-systematic diagnosis

Systematically troubleshoot WordPress issues: enable debug mode, isolate plugins and themes, check logs, and resolve common problems.

On this page

Most WordPress problems stem from plugin conflicts, memory limits, PHP errors, or misconfigured settings. A systematic approach finds the cause faster than guessing.

Enable WordPress debug mode

Add to wp-config.php before "That's all, stop editing":

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);  // Hide from visitors

Errors log to wp-content/debug.log. Read it via File Manager or SSH:

tail -50 /home/user/public_html/wp-content/debug.log

Plugin and theme isolation

Safe mode — disable all plugins without admin access:

  1. File Manager → navigate to wp-content/
  2. Rename plugins folder to plugins-disabled
  3. Reload your site — if error clears, a plugin caused it
  4. Rename back to plugins, then rename individual plugin folders to isolate

Switch to default theme: Rename your active theme folder — WordPress falls back to Twenty-x default.

Common issues and quick fixes

SymptomFirst thing to check
White screenEnable WP_DEBUG, check debug.log
"Error establishing database connection"Verify wp-config.php credentials
Cannot log inClear cookies, try incognito mode
Redirect loopCheck Settings → General — both URLs must match
500 error after updateDisable last-updated plugin, increase memory limit
Images not uploadingCheck wp-content/uploads/ permissions (755)

Troubleshooting checklist

  • ☐ Enable WP_DEBUG and check debug.log
  • ☐ Increase memory: define('WP_MEMORY_LIMIT', '256M');
  • ☐ Disable all plugins (rename folder)
  • ☐ Switch to default theme
  • ☐ Check PHP version compatibility (minimum 7.4, recommended 8.1+)
  • ☐ Clear all caches (plugin cache + CDN)
  • ☐ Restore from backup if recent change caused the issue

Related: WordPress quick fixes | Memory errors | Restore from backup

Was this article helpful?

Need managed WordPress hosting?

Run WordPress on UnderHost managed hosting with performance tuning, SSL, backups, security guidance, and expert support.

Related articles

Back to WordPress