Diensten Tarieven Blog Over ons Contact
|
Programmeercode op monitor

De 12 meest voorkomende WordPress foutmeldingen (en hoe je ze oplost) The 12 most common WordPress errors (and how to fix them)

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

wp-config.php: Debug activeren
// 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

Terminal: Bestandsrechten herstellen
# 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:

OorzaakHoe controlerenOplossing
Verkeerde credentialsCheck wp-config.php (DB_NAME, DB_USER, DB_PASSWORD, DB_HOST)Corrigeer de gegevens
Database server downProbeer phpMyAdmin of mysql -u user -pContact hosting of herstart MySQL
Corrupte databasephpMyAdmin toont fouten bij tabellenRepair via WP of phpMyAdmin
wp-config.php: Database reparatie activeren
// 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.

wp-config.php: Geheugen verhogen
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:

.htaccess: Upload limiet verhogen
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300

6 overige veelvoorkomende fouten

FoutOorzaakOplossing
403 ForbiddenBestandsrechten of security pluginCheck .htaccess en rechten (755/644)
404 op alle pagina’sPermalink-structuur corruptInstellingen > Permalinks > Opslaan
Briefly UnavailableMislukte update (.maintenance bestand)Verwijder .maintenance uit root
Connection Timed OutServer overbelast of PHP te traagVerhoog max_execution_time, check hosting
Syntax ErrorPHP-fout in thema/plugin codeHerstel via FTP, corrigeer de code
Sidebar onder contentKapotte 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

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:

wp-config.php: Enabling debug
// 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.

Terminal: Fixing file permissions
# 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:

CauseHow to checkSolution
Wrong credentialsCheck wp-config.php (DB_NAME, DB_USER, DB_PASSWORD, DB_HOST)Correct the details
Database server downTry phpMyAdmin or mysql -u user -pContact hosting or restart MySQL
Corrupt databasephpMyAdmin shows errors on tablesRepair via WP or phpMyAdmin
wp-config.php: Enabling database repair
// 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.

wp-config.php: Increasing memory
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:

.htaccess: Increasing upload limit
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300

6 other common errors

ErrorCauseSolution
403 ForbiddenFile permissions or security pluginCheck .htaccess and permissions (755/644)
404 on all pagesCorrupt permalink structureSettings > Permalinks > Save
Briefly UnavailableFailed update (.maintenance file)Delete .maintenance from root
Connection Timed OutServer overloaded or PHP too slowIncrease max_execution_time, check hosting
Syntax ErrorPHP error in theme/plugin codeFix via FTP, correct the code
Sidebar below contentBroken 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.