De 12 meest voorkomende WordPress foutmeldingen (en hoe je ze oplost) The 12 most common WordPress errors (and how to fix them)
WordPress foutmeldingen oplossen is een veelbesproken onderwerp. In dit artikel
WordPress foutmeldingen zijn frustrerend, maar bijna altijd op te lossen. Het belangrijkste is: geen paniek. De foutmelding zelf vertelt je vaak precies wat er mis is. als je weet hoe je die moet lezen.
Stap nul: debug-modus activeren
Voordat je specifieke fouten gaat oplossen, schakel WordPress debug-modus in. Dit toont exacte foutmeldingen in plaats van een wit scherm:
Lees ook: WordPress website traag? Zo spoor je de oorzaak op
// Zet debug aan (ALLEEN op dev/staging, nooit op productie)
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true); // Schrijf naar wp-content/debug.log
define('WP_DEBUG_DISPLAY', false); // Toon niet aan bezoekers
Let op
Laat debug nooit aan staan op een live site met WP_DEBUG_DISPLAY op true. Foutmeldingen kunnen gevoelige informatie onthullen zoals bestandspaden en databasegegevens.
Hulp nodig? Bekijk onze website hulp den haag pagina.
1. White Screen of Death (WSOD)
Een volledig wit scherm zonder foutmelding. Bijna altijd veroorzaakt door een PHP fatal error in een plugin of thema.
Schakel debug in
Zie hierboven. Check daarna wp-content/debug.log voor de exacte fout.
Deactiveer plugins via FTP
Hernoem wp-content/plugins/ naar plugins-disabled/. Site werkt weer? Dan is een plugin de boosdoener. Hernoem terug en deactiveer plugins één voor één.
Schakel over naar standaard thema
Hernoem je actieve thema-map. WordPress valt terug op Twenty Twenty-Four (of het nieuwste standaard thema).
2. 500 Internal Server Error
Een generieke serverfout. De server weet dat er iets mis is, maar niet wat. Veelvoorkomende oorzaken:
Corrupt .htaccess bestand: Hernoem .htaccess en bezoek WP Admin > Instellingen > Permalinks > Opslaan (maakt een nieuwe aan)
PHP memory limiet: Zie de memory-fix hieronder
Defecte plugin: Zelfde aanpak als WSOD
Verkeerde bestandsrechten: Mappen: 755, bestanden: 644
# Mappen op 755
find /pad/naar/wordpress/ -type d -exec chmod 755 {} ;
# Bestanden op 644
find /pad/naar/wordpress/ -type f -exec chmod 644 {} ;
# wp-config.php extra beveiligen
chmod 600 wp-config.php
3. Error Establishing a Database Connection
WordPress kan geen verbinding maken met de MySQL database. Dit kan drie dingen betekenen:
| Oorzaak | Hoe controleren | Oplossing |
|---|---|---|
| Verkeerde credentials | Check wp-config.php (DB_NAME, DB_USER, DB_PASSWORD, DB_HOST) | Corrigeer de gegevens |
| Database server down | Probeer phpMyAdmin of mysql -u user -p | Contact hosting of herstart MySQL |
| Corrupte database | phpMyAdmin toont fouten bij tabellen | Repair via WP of phpMyAdmin |
// Voeg toe, bezoek /wp-admin/maint/repair.php, verwijder daarna weer
define('WP_ALLOW_REPAIR', true);
4. Fatal Error: Memory Exhausted
PHP heeft meer geheugen nodig dan toegestaan. Standaard staat WordPress op 64MB of 128MB.
define('WP_MEMORY_LIMIT', '256M');
define('WP_MAX_MEMORY_LIMIT', '512M'); // Voor admin-gebied
Let op
Als je voortdurend meer geheugen nodig hebt, is er waarschijnlijk een plugin die lekt. Verhoog het limiet als tijdelijke oplossing, maar spoor de oorzaak op met Query Monitor.
5. Max Upload Size Exceeded
Je kunt geen groot bestand uploaden. Dit wordt beperkt door PHP, niet door WordPress:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
6 overige veelvoorkomende fouten
| Fout | Oorzaak | Oplossing |
|---|---|---|
| 403 Forbidden | Bestandsrechten of security plugin | Check .htaccess en rechten (755/644) |
| 404 op alle pagina’s | Permalink-structuur corrupt | Instellingen > Permalinks > Opslaan |
| Briefly Unavailable | Mislukte update (.maintenance bestand) | Verwijder .maintenance uit root |
| Connection Timed Out | Server overbelast of PHP te traag | Verhoog max_execution_time, check hosting |
| Syntax Error | PHP-fout in thema/plugin code | Herstel via FTP, corrigeer de code |
| Sidebar onder content | Kapotte HTML (niet-gesloten div) | Valideer HTML, check thema-templates |
Fouten voorkomen
- Maak altijd een backup vóór updates
- Test grote wijzigingen eerst op een staging-omgeving
- Houd WordPress, thema’s en plugins up-to-date
- Gebruik een child theme voor aanpassingen (niet het hoofdthema bewerken)
- Installeer alleen plugins uit betrouwbare bronnen (wordpress.org of bekende ontwikkelaars)
- Monitor je site met debug.log en uptime-checks
Belangrijkste takeaway
De meeste WordPress-fouten zijn terug te herleiden tot drie dingen: plugins, bestandsrechten, of geheugenlimieten. Activeer debug-modus, lees de exacte foutmelding, en werk systematisch naar de oplossing toe.
Gerelateerde artikelen
In this article
WordPress errors are frustrating, but almost always fixable. The most important thing is: don't panic. The error message itself often tells you exactly what's wrong, if you know how to read it.
Step zero: enable debug mode
Before troubleshooting specific errors, enable WordPress debug mode. This shows exact error messages instead of a white screen:
// Turn on debug (ONLY on dev/staging, never in production)
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true); // Write to wp-content/debug.log
define('WP_DEBUG_DISPLAY', false); // Don't show to visitors
Warning
Never leave debug enabled on a live site with WP_DEBUG_DISPLAY set to true. Error messages can reveal sensitive information like file paths and database details.
1. White Screen of Death (WSOD)
A completely white screen with no error message. Almost always caused by a PHP fatal error in a plugin or theme.
Enable debug
See above. Then check wp-content/debug.log for the exact error.
Deactivate plugins via FTP
Rename wp-content/plugins/ to plugins-disabled/. Site works again? Then a plugin is the culprit. Rename back and deactivate plugins one by one.
Switch to a default theme
Rename your active theme folder. WordPress falls back to Twenty Twenty-Four (or the latest default theme).
2. 500 Internal Server Error
A generic server error. The server knows something is wrong, but not what. Common causes:
Corrupt .htaccess file: Rename .htaccess and visit WP Admin > Settings > Permalinks > Save (creates a new one). PHP memory limit: See the memory fix below. Faulty plugin: Same approach as WSOD. Wrong file permissions: Directories: 755, files: 644.
# Directories to 755
find /path/to/wordpress/ -type d -exec chmod 755 {} ;
# Files to 644
find /path/to/wordpress/ -type f -exec chmod 644 {} ;
# Extra security for wp-config.php
chmod 600 wp-config.php
3. Error Establishing a Database Connection
WordPress can't connect to the MySQL database. This can mean three things:
| Cause | How to check | Solution |
|---|---|---|
| Wrong credentials | Check wp-config.php (DB_NAME, DB_USER, DB_PASSWORD, DB_HOST) | Correct the details |
| Database server down | Try phpMyAdmin or mysql -u user -p | Contact hosting or restart MySQL |
| Corrupt database | phpMyAdmin shows errors on tables | Repair via WP or phpMyAdmin |
// Add this, visit /wp-admin/maint/repair.php, then remove again
define('WP_ALLOW_REPAIR', true);
4. Fatal Error: Memory Exhausted
PHP needs more memory than allowed. By default WordPress is set to 64MB or 128MB.
define('WP_MEMORY_LIMIT', '256M');
define('WP_MAX_MEMORY_LIMIT', '512M'); // For admin area
Note
If you constantly need more memory, there's probably a plugin that's leaking. Increase the limit as a temporary fix, but track down the cause with Query Monitor.
5. Max Upload Size Exceeded
You can't upload a large file. This is limited by PHP, not by WordPress:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
6 other common errors
| Error | Cause | Solution |
|---|---|---|
| 403 Forbidden | File permissions or security plugin | Check .htaccess and permissions (755/644) |
| 404 on all pages | Corrupt permalink structure | Settings > Permalinks > Save |
| Briefly Unavailable | Failed update (.maintenance file) | Delete .maintenance from root |
| Connection Timed Out | Server overloaded or PHP too slow | Increase max_execution_time, check hosting |
| Syntax Error | PHP error in theme/plugin code | Fix via FTP, correct the code |
| Sidebar below content | Broken HTML (unclosed div) | Validate HTML, check theme templates |
Preventing errors
- Always make a backup before updates
- Test major changes on a staging environment first
- Keep WordPress, themes and plugins up to date
- Use a child theme for customizations (don't edit the parent theme)
- Only install plugins from trusted sources (wordpress.org or reputable developers)
- Monitor your site with debug.log and uptime checks
Key takeaway
Most WordPress errors can be traced back to three things: plugins, file permissions, or memory limits. Enable debug mode, read the exact error message, and work systematically toward the solution.