WordPress Troubleshooting: Common Errors and Fixes
WordPress Troubleshooting Guide
Most WordPress errors have simple fixes. Let’s troubleshoot systematically!
Before You Start
Golden Rules
- BACKUP FIRST (if possible)
- One change at a time
- Document your steps
- Test after each fix
- Be patient!
Tools Needed
- FTP access (FileZilla)
- cPanel access
- Text editor
- Browser incognito mode
Top 10 Common Errors
1. White Screen of Death (WSOD)
Symptoms: Blank white screen, no error message
Causes: Memory limit, plugin conflict, theme issue
Fixes:
- Increase memory: wp-config.php add define(‘WP_MEMORY_LIMIT’, ‘256M’);
- Enable debug mode to see actual error
- Deactivate plugins via FTP (rename plugins folder)
- Switch to default theme via database
- Reinstall WordPress core files
2. Internal Server Error (500)
Symptoms: Generic 500 error message
Causes: Corrupt .htaccess, memory limit, plugin conflict
Fixes:
- Delete .htaccess, regenerate via Settings → Permalinks
- Increase PHP limits in .htaccess
- Deactivate plugins
- Check file permissions (755 folders, 644 files)
- Contact host if persists
3. Database Connection Error
Symptoms: Error establishing database connection
Causes: Wrong credentials, database server down, corrupted database
Fixes:
- Verify wp-config.php database credentials
- Check DB_HOST (might not be ’localhost’)
- Repair database: add define(‘WP_ALLOW_REPAIR’, true); to wp-config.php
- Visit yoursite.com/wp-admin/maint/repair.php
- Contact host if database server down
4. 404 Error on Posts
Symptoms: Homepage works but posts show 404
Cause: Permalink structure issue
Fixes:
- Settings → Permalinks → Save Changes (regenerate)
- Manually fix .htaccess with proper rewrite rules
- Contact host to verify mod_rewrite enabled
5. Login Problems
Symptoms: Cannot login, logout loop, cookie errors
Fixes:
- Clear browser cache and cookies
- Deactivate plugins (security/cache plugins often cause this)
- Reset password via database (phpMyAdmin)
- Check site URLs in wp_options table
- Disable all plugins via database if needed
6. Mixed Content Warning (HTTPS)
Symptoms: Broken padlock, not secure warning
Fixes:
- Update site URLs to HTTPS in Settings → General
- Search and replace HTTP to HTTPS in database
- Force HTTPS in wp-config.php
- Use Really Simple SSL plugin (quick fix)
- Check for hard-coded HTTP URLs
7. Images Not Displaying
Symptoms: Broken image icons, missing images
Fixes:
- Check file permissions (uploads folder 755)
- Regenerate thumbnails plugin
- Check .htaccess not blocking images
- Verify upload path in Settings → Media
8. Max Execution Time Exceeded
Symptoms: 30 seconds exceeded error during updates/imports
Fixes:
- Increase in .htaccess: php_value max_execution_time 300
- Or wp-config.php: set_time_limit(300);
- Contact host to increase limits server-wide
9. Upload File Size Limit
Symptoms: File exceeds upload_max_filesize
Fixes:
- Increase in .htaccess: php_value upload_max_filesize 64M
- Or contact host to increase
- Use plugin: Increase Upload Max Filesize
10. Scheduled Posts Not Publishing
Symptoms: Posts stay scheduled, don’t publish
Fixes:
- Disable WP-Cron, use real cron job
- Install WP Missed Schedule plugin
- Check timezone settings match your location
Debugging Tools
Enable Debug Mode
In wp-config.php:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
Check /wp-content/debug.log for errors.
Useful Plugins
- Query Monitor (see database queries)
- Debug Bar (performance metrics)
- Health Check (troubleshooting mode)
Browser Console
Press F12 → Console tab to see JavaScript errors
Prevention Tips
- Keep regular backups
- Use staging site for testing
- Update carefully
- Limit plugins (quality over quantity)
- Monitor site health
- Use good hosting
- Install security plugin
Getting Help
If stuck:
- WordPress Support Forums
- Plugin documentation
- Hosting support
- Stack Overflow
- Hire expert if critical
Conclusion
Most WordPress errors are fixable! Follow systematic troubleshooting process and don’t panic. Every expert has broken sites while learning.
When in doubt: restore from backup and try again!
Link Postingan : https://www.tirinfo.com/wordpress-troubleshooting-common-errors-and-fixes/