Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Coupe WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Comment corriger l’écran blanc de WordPress (étape par étape)

Note éditoriale : Nous percevons une commission sur les liens des partenaires sur WPBeginner. Les commissions n'affectent pas les opinions ou les évaluations de nos rédacteurs. En savoir plus sur Processus éditorial.

L’écran blanc de WordPress est l’une des erreurs les plus courantes de WordPress. C’est aussi une erreur frustrante car il n’y a aucun message et vous êtes bloqué hors de WordPress.

Un autre problème avec l’erreur de l’écran blanc de la mort est que parfois, elle affecte uniquement une certaine partie de votre site. Par exemple, vous pouvez voir l’écran blanc de la mort uniquement dans la zone d’administration de WordPress, alors que tout le reste fonctionne correctement. Dans d’autres cas, vous pouvez le voir uniquement sur une publication spécifique.

Dans cet article, nous allons vous afficher comment corriger l’écran blanc de WordPress en examinant différentes solutions.

How to Fix the WordPress White Screen of Death (Step by Step)

Note : Avant d’apporter des modifications à votre site, assurez-vous d’avoir une sauvegarde de votre site WordPress. Si vous n’avez pas accès à la zone d’administration, consultez notre guide sur la création manuelle d’une sauvegarde de la base de données de WordPress.

Pourquoi l’écran blanc de la mort apparaît-il sur WordPress ?

La plupart du temps, lorsque vous voyez un écran blanc de la mort en essayant de visiter votre site WordPress, cela signifie qu’un script sur votre site a épuisé la limite de mémoire.

Le script qui ne répond pas est soit tué par le serveur de votre hébergeur WordPress, soit simplement interrompu. Aucun message d’erreur n’est donc généré et vous voyez simplement un écran blanc.

WordPress showing white screen instead of website

Cependant, il peut arriver qu’un message d’erreur s’affiche.

Par exemple, vous pouvez voir un message d’erreur critique au lieu d’une page blanche.

Critical error in WordPress

Que vous voyiez un écran vide ou le message « Une erreur critique s’est produite sur votre site », il s’agit de la même erreur.

Cette erreur peut également se produire en raison d’un thème ou d’une extension mal codé(e) installé(e) sur votre site. Parfois, elle peut se produire en cas de problème avec votre serveur hébergeur.

Comme l’erreur de l’écran blanc peut être causée par un certain nombre de choses, il est nécessaire de procéder à un dépannage méthodique pour la corriger. Voici les étapes par lesquelles vous devriez essayer de résoudre le problème :

Tutoriel vidéo

Subscribe to WPBeginner

Si vous préférez des instructions écrites, continuez à lire.

1. Vérifiez si le problème se pose sur vos autres sites

Si d’autres sites WordPress sont installés sur le même compte d’hébergeur, commencez par vérifier si le problème se pose également sur d’autres sites.

Si c’est le cas, cela indique clairement que quelque chose ne va pas avec votre hébergeur WordPress. Il pourrait s’agir d’un problème temporaire affectant leur service, et vous devez contacter leur support pour plus d’aide.

En revanche, si le problème se produit uniquement sur un site ou une partie spécifique de ce site, vous savez que le problème se situe au niveau de ce site en particulier.

2. Corrigé l’erreur de l’écran blanc avec le mode de récupération de WordPress

Si l’erreur de l’écran blanc de la mort est causée par une extension ou un thème WordPress, alors WordPress peut être en mesure de la détecter.

La nouvelle fonctionnalité de protection contre les erreurs fatales introduite dans WordPress 5.2 peut parfois détecter l’erreur, de sorte que vous ne verrez peut-être même pas d’écran blanc. Au lieu de cela, vous verrez un message indiquant que le site rencontre des difficultés techniques.

This Site Is Experiencing Technical Difficulties Error Message

WordPress enverra également un e-mail concernant le problème à votre adresse e-mail d’administrateur.

L’e-mail aura pour objet « Votre site connaît un problème technique ».

Technical Difficulties Email With Link to Recovery Mode

Ce message e-mail indiquera l’extension ou le thème à l’origine de l’erreur et contiendra également un lien spécial.

Ce lien vous permettra de vous connecter au mode de récupération de WordPress et de désactiver l’extension défectueuse.

WordPress recovery mode dashboard

Cependant, si vous voyez l’écran blanc de la mort sans option d’e-mail ou de mode de récupération, vous devez corriger l’erreur manuellement.

3. Augmenter la limite de mémoire

En général, cette erreur se produit parce qu’un script a épuisé la mémoire de votre serveur web et s’est arrêté en cours de route.

Pour corriger ce problème, vous devez augmenter la mémoire PHP disponible pour WordPress. Cela permettra au script d’utiliser plus de mémoire pour terminer le travail qu’il était censé faire.

Vous devrez modifier le fichier wp-config.php sur votre site WordPress ou utiliser une extension d’extraits de code comme WPCode.

Vous pouvez suivre les instructions de notre tutoriel sur la façon d’augmenter la mémoire de PHP dans WordPress.

4. Corrigé l’erreur de l’écran blanc en désactivant toutes les extensions

Si l’augmentation de la limite de mémoire de PHP n’a pas aidé, ou si vous avez une limite de mémoire élevée, comme 256M ou 512M, alors vous devez commencer le dépannage.

Dans notre expérience de dépannage de ce problème, nous avons toujours trouvé que le problème provenait soit d’une extension spécifique, soit d’un thème. Désactivons donc toutes les extensions.

Si vous pouvez toujours accéder au Tableau de bord WordPress, vous pouvez simplement vous rendre sur la page  » Plugins  » Installed Plugins. Sélectionnez toutes les extensions installées, puis sélectionnez  » Désactiver  » dans le menu déroulant  » Actions groupées « .

Deactivate all WordPress plugins

Cependant, si vous n’avez pas accès à la zone d’administration de WordPress, vous devrez désactiver toutes les extensions via FTP.

Tout d’abord, connectez-vous à votre site WordPress à l’aide d’un client FTP ou du gestionnaire de fichiers de votre fournisseur d’hébergement. Une fois connecté, rendez-vous dans le dossier wp-content, où vous verrez le dossier des extensions.

Vous devez maintenant cliquer avec le bouton droit de la souris sur le dossier des extensions et sélectionner « Renommer ». Vous pouvez renommer le dossier des extensions en « plugins-désactivés ».

Using FTP to Rename the Plugins Folder

WordPress recherche un dossier nommé plugins pour charger toutes les extensions. Lorsqu’il ne trouve pas ce dossier, il désactive simplement toutes les extensions.

Si cela corrige le problème, activez une extension à la fois pour trouver la cause du problème. Une fois que vous avez trouvé l’extension à l’origine du problème, vous pouvez la remplacer par une autre ou signaler le problème aux auteurs/autrices de l’extension.

5. Activer le thème par défaut

Si le dépannage de l’extension ne corrige pas le problème, essayez de remplacer votre thème actif par un thème par défaut.

Tout d’abord, connectez-vous à votre site à l’aide d’un client FTP et accédez au dossier /wp-content/themes/. Il contient tous les thèmes installés sur votre site.

Cliquez avec le bouton droit de la souris pour sélectionner votre thème WordPress actuel et le télécharger sur votre ordinateur en tant que sauvegarde.

Using FTP to Download the Current Theme as a Backup

Ensuite, vous devez supprimer votre thème actuel de votre site.

Il vous suffit de cliquer avec le bouton droit de la souris sur le dossier de votre thème et de sélectionner « Supprimer ». Votre client FTP va maintenant supprimer le thème de votre site.

Using FTP to Delete the Current Theme

Maintenant, si vous avez un thème par défaut WordPress comme (Twenty Twenty-Two ou Twenty Twenty-Three) installé sur votre site, alors WordPress commencera automatiquement à l’utiliser comme thème par défaut.

Cependant, si vous n’avez pas de thème par défaut installé, vous devez l’installer manuellement à l’aide du FTP.

Si cela corrige le problème, vous devriez alors regarder le fichier functions.php de votre thème. S’il y a des espaces supplémentaires au bas du fichier, vous devez les retirer, ce qui corrige parfois le problème.

Si vous utilisez une fonction mal codée dans le fichier functions.php de votre thème, cela peut également provoquer l’erreur de l’écran blanc de la mort.

Envisagez de télécharger une nouvelle copie de votre thème à partir de sa source, puis de l’installer manuellement à l’aide d’un FTP.

6. Activer le mode débogage pour détecter les erreurs dans WordPress

Si rien ne vous a aidé jusqu’à présent, l’étape suivante consiste à activer le débogage dans WordPress. Cela permettra de conserver des journaux des erreurs qui vous permettront de voir quel type d’erreurs est connecté.

Il suffit d’ajouter le code suivant à votre fichierwp-config.php:

define( 'WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true );

Une fois que vous l’aurez fait, l’écran vierge comportera des erreurs, des avertissements et des notifications. Ceux-ci peuvent vous aider à déterminer la cause première.

Si vous ne voyez aucune erreur, vous pouvez toujours consulter le journal de débogage.

Il vous suffit de vous rendre dans le dossier wp-content de votre site à l’aide d’un client FTP. Vous y trouverez un nouveau fichier debogage.log contenant un journal de toutes les erreurs, notifications et avertissements.

Debug log

7. Vider le cache de WordPress

Il peut arriver que vous ayez accès à l’interface d’administration, mais que le public ait l’écran blanc de la mort.

Cela peut se produire à cause d’une extension de mise en cache. Dans ce cas, il vous suffit de vider le cache de WordPress.

Vous pouvez consulter notre guide sur la façon de vider le cache dans WordPress pour obtenir des instructions détaillées.

8. Corrigé l’erreur de l’écran blanc pour les articles plus longs

Si vous avez un écran blanc de la mort uniquement sur une très longue publication ou page, alors cette méthode peut fonctionner.

Cette astuce permet d’augmenter les permissions de traitement de texte de PHP en augmentant la limite de récursivité et de retour en arrière. Vous pouvez coller le code suivant dans votre fichier wp-config.php:

/** Trick for long posts */
ini_set('pcre.recursion_limit',20000000);
ini_set('pcre.backtrack_limit',10000000);

Nous comprenons qu’il s’agit d’une erreur très frustrante, et nous espérons que l’une des astuces ci-dessus a corrigé le problème pour vous.

Vous pouvez également consulter notre guide de dépannage WordPress, qui explique les étapes à suivre pour détecter et corriger les problèmes WordPress par vous-même, ou notre sélection des meilleurs fournisseurs d’hébergement infogéré WordPress.

Si vous avez aimé cet article, veuillez alors vous abonner à notre chaîne YouTube pour obtenir des tutoriels vidéo sur WordPress. Vous pouvez également nous trouver sur Twitter et Facebook.

Divulgation : Notre contenu est soutenu par les lecteurs. Cela signifie que si vous cliquez sur certains de nos liens, nous pouvons gagner une commission. Consultez comment WPBeginner est financé, pourquoi cela compte et comment vous pouvez nous soutenir. Voici notre processus éditorial.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

L'ultime WordPress Toolkit

Accédez GRATUITEMENT à notre boîte à outils - une collection de produits et de ressources liés à WordPress que tous les professionnels devraient avoir !

Reader Interactions

296 commentairesLaisser une réponse

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Omar Sirwan says

    I solved it…
    I tried those:
    define(‘WP_MEMORY_LIMIT’, ’64M’);
    Change Plugins name
    Check white spaces
    Increase memory
    Change Theme
    Upload new wp-admin
    And everything related to plugins

    Finally I downloaded my wp-config using FTP. Opened it with notepad++ and save it again with the encoding utf-8… It was utf-8 BOM.

  3. Madeleine Landley says

    This is one of the most extensive guides I found so far – with easy tutorials on how to solve it. I like it!

    I’m actually only missing one thing causing WSOD and that is extra spaces in the code, usually in functions.php, header.php, single.php etc. I’ve found this error causing most of the white screens I’ve resolved. The extra spaces are usually at the end of the file, after a closing ?>, used instead of tabs and on line breaks (empty rows).

    Thanks for a great guide.

  4. Michael Silva says

    After some changes (failures !!) in the code of a plugin did the famous White wp screen with the following message « Parse error: syntax error, unexpected ‘the’ (T_STRING) in / home / velafati / public_html / wp-content /plugins/woocommerce/includes/class-wc-countries.php on line 436  »
    How to know where the problem had been entered in the file « class-wc-countries.php » through cpanel and replace all the code for the original code (had recorded the original code in Notepad). The problem is that even after upgrading to the problem folder remains, what should I do?

  5. viki sangre says

    I have the same issue. I have made no changes to my website but when I saw my website in the morning it show white blank screen. I haven’t updated any plugin.

    Backend is working well.

    Any help please!!

    • viki sangre says

      I updated my wordpress with latest version and every things gonna fine. I think automatically updation of wordpress also cause a problem.

  6. Hansel says

    Hi Guys,

    I got some white space page issue in our wordpress page and did below troubleshooting but still no luck. It’s also weird that I don’t get any error.log that’s why it’s kinda hard to know the exact issue. Any help would be very much appreciated. Thanks Guys.

    Troubleshooting made:
    Disabled all plugins
    tried to use the default theme
    restarted apache2

  7. Sabina says

    Please help!!! I think I’m gonna die! I get the white screen and I cannot get to my admin page. Everything is white :(:(:( Please, please tell me step by step what I should do not to mess things even more!
    Thank you!

  8. Naomi says

    I experienced the white screen of death tonight and I couldn’t access my login, website, or any of the pages. I fixed it by going to hosting site and pulling up the file manager. I was able to edit the code I had misplaced through the files on the hosting site and then my site came back up!

  9. Lee Binder says

    In our case it was problems with cron, either WP cron or the server’s cron service. « Fixed »/ worked-around with the WP Delay Cron Plugin

  10. Thomas says

    Hi all, I have the same error but cant even access the login page for my site! Any ideas on what i could do? Thanks!

    • calvin says

      I had the same issue, it was a plugin. went to the cpanel, then file manager, public html folder and on right side, right click on « error log » to view error. Plugin causing error was renamed and whala… I could get to the dashboard.

      Hope this helps you and others!

  11. Bomi says

    This should be the firt option if you only have access to FTP, it will tell you exactly which file is messed up. Thanks.

    error_reporting(E_ALL); ini_set(‘display_errors’, 1);
    define( ‘WP_DEBUG’, true);

  12. Kay says

    I get an error message that says Site can nor be accessed. Disconnect site. When I click on admin the screen goes white. Please help!

  13. Andy says

    I had this problem with my installation (white screen only on WP-admin. I eventually solved it by using the debug tools in the browser (hit F12 in most browsers). Using the console view in the debug I could see that there was some sort of error in a frame that was being used.

    I haven’t got to the bottom of this yet but I was able to access the login page and access wp-admin by switching my re-directed URL for the raw IP address. I expect I have mucked up the re-direct in some way but I’m just relieved to have fixed it to be honest!

    Hope this helps someone else!

  14. Jacob J says

    The error reporting thing solved my problem. Knew I had a misplaced code in there somewhere, and those few lines in the config file showed me where. Thanks a lot. /Jacob

  15. dinesh Kumar says

    thanks a lot i found error wp_debug already defined and resolved this error and also installed new theme now my site is opening but i can’t access my admin page when i type admin url it’s showing it’s not redirecting properly

  16. Kaley Basham says

    Ok, so I replaced the theme by replacing the current_theme, template and stylesheet in PHPmyAdmin to twentyeleven and it fixed the white screen of death issue. Now I checked my functions.php document and I had no extra spaces in the end.

    So now what?!?!??? Thanks for any help!!

  17. Adria says

    THANK YOU SO MUCH! It was one of the Whatsapp Plug-ins which was causing an issue. I can now sleep peacefully tonight – my site is up and running again.

  18. Timothy says

    Thanks for this. I ran the error code and found a malicious file. link-template.suspected.

    I removed the file and replaced it with a new one that I had downloaded and that fixed.

    All this after going through every other thing to no avail.

    Replacing the bad file got things back.

  19. Hugo says

    The blank screen can also be caused by using the wrong version of php. PHP 5.2 has cause me trouble in the past, changing to 5.4 fixed it. Be sure to check this if all else fails.

    • Kelly says

      Another vote for PHP version. I tried almost everything and was about to replace the theme when I gave this a go. Upgraded to 5.5 and like magic, it was fixed! Thanks Hugo.

  20. Bobby says

    Coded my own theme and had blank screen when trying to update posts and pages, deleting spaces at the bottom of my functions file solved the issue! :)

  21. Jonas Holm says

    I went through all the above steps without succes. I downgraded PHP 5.6 to 5.3 on my providers PHP-admin-page. That solved my problem.

  22. Grace says

    I’ve read through all of this but sadly my problem is that I can’t even log on anymore – I got the white screen of death but it says that when you try to go onto my page and when I even try to go to the WordPress dashboard (via Godaddy). I now have absolutely no way to log on to my wordpress – not sure what to do!

  23. Tawanda says

    I just fixed this problem, it was a caching issue. If you go to your wp-config.php file then remove the code just above the define(‘DB_NAME’, ‘your_db_name’);

    This should work, as it worked for me

    • Jan Fallon says

      I had the WP CACHE code in my wp-config.php file – just above the define(‘DB_NAME’, ‘your_db_name’); as stated by TAWANDA and removed it – and so far my home page, which was completely white, is holding!

      I could log in via admin, and saw all my content, but at the URL the home page was white.

      FIXED with crossed fingers!

      Many thanks wpbeginner crowd!

      Jan

  24. Sam says

    Had this same problem when updating my wordpress plug-ins. I accidently clicked on a link while a couple of plug-ins were updating. The site was okay but could not get into the admin section. Log-in was blank. After reading this article tried changing the plug-ins file name. Admin was still blank and site now wouldn’t load. Change the plug-in folder back to its correct name.
    I didn’t delete the theme since this would be a headache to ressurect, I have text widget areas with code and all of this would delete. Instead skipped to the error fix, under « other suggestions » and placed the script in the wp-config.php file. An error popped up for a « google analytics plug-in ». I ftp’d in and changed the name of the folder for that plug-in which fixed the problem.
    I could now log-in to the admin area. I then checked the name of the plug-in and found the plug-in through the wordpress « new plug-in » feature. Loaded it in then deleted it. Did this to clear it out of the database. Haven’t reinstalled it yet. Enough headaches for one day ;)
    Hope this helps someone…

  25. Paola says

    I have a problem inside my WordPress admin panel. I can get in but then I get the
    white screen of death when I try to edit comments and the like and I cannot
    seem to get to use my dashboard. I have tried deactivating plugins and also
    re-installing a fresh copy of WordPress but this didn’t seem to help. I also tried replacing my
    current theme with a default twenty ten theme but that seemed difficult and I
    am not sure I was able to do so. The article also suggested
    using the WordPress debug function to see what type of errors are being
    outputted. I did manage to add the suggested code in my wp-config.php file and
    I got some messages but I am not very good with code so I don’t really
    understand what is being said. Any suggestions?

  26. Pat says

    I tried everything listed on this post to no avail. I finally found the
    fix for my situation! My problem was related to an older versions of
    WP: 3.3.1.

    I looked at the error_log file in the wp-admin
    directory and saw the following error: « PHP Fatal error: Access to
    undeclared static property: WP_Screen::$this in
    /home2/bellex/public_html/wp-admin/includes/screen.php on line 706 »

    I had things setup using the WordPress debug function described above.

    Anyhow this error led me to a website that directed me on how to alter the screen.php file. See this site for details:
    http://wordpress.stackexchange.com/questions/127427/how-to-fix-empty-dashboard-issue-in-wordpress

  27. Veronca says

    Thanks a lot for the help. I add some code to my Cron Job. I deactivated all my network plugins and asked hostgator to increase my memory. The last thing I need is the white screen of death during production. My site has been down all day, but now its back up. THANKS AGAIN!!

  28. Bboo says

    Can I just delete the the entire theme file. And re-install it? Will that fix the white screen? I was working on the .php, but now looking at the files, i have NO IDEA which one i was in!!

  29. Bboo says

    How is everyone having to option to see pages?? When I login I ONLY see BLANK PAGE. No options, no links, no files. NOTHING!! Someone please help!!

  30. Morgan says

    I fixed my white screen of death by deleting the code I had written just before it crashed. I did that through the Bluehost file manager. I found my website file (the wordpress install file), then went into wp content, found the theme I was using, then opened the functions file (to fix the theme’s function .php file).

  31. Morgan says

    Hi, thank you for telling me what this is. I tried putting in the code from your how-to-avoid-no-thumbnail-issue-while-sharing-post-on-facebook post, and I’m sure I’ve corrupted a file doing something wrong. I can’t get anywhere, it’s all white. How do I disable plugins or go to a default theme this way? I’m going to lose so much work, aren’t I?!???

  32. Mark says

    Rather than deleting a potentially broken theme, you can just rename it. WordPress will still fall back to a default and it saves the bother of backing up & deleting.

  33. imLOST says

    I had extra spaces at the bottom of my functions.php file.

    After the closing ?> tag. Cleared them up and all was good! :D

  34. Hasan Shahzad says

    I have got it fixed by renaming plugins folder to plugin, WordPress deactivated my all plugins and I was able to access WP-Admin, I tried to activate all plugins manually, however one plugin returned fatal error while activating itself « (include_path=’.:/usr/lib/php:/usr/local/lib/php’) » Then I got it, that plugin was creating mess. Now my blog works fine.

  35. Beetzy Chase says

    Thank you for the article. I did fix my site. Your article just got my fix it thoughts going in the correct direction, nice reads like this make programming a little less lonely :-)

  36. gaurav says

    Hi Admin,

    please help

    Just Now I got an error. my wordpress site is not working even wp-admin also not working, i was doing some changes on footer and have done small change. after saving my wordpress editor. my site not opening and also wp-admin not opening,

    I am getting this error Parse error:

    syntax error, unexpected end of file in /home/content/p3pnexwpnas01_data02/60/2213460/html/wp-content/themes/fashionistas/functions.php on line 295

    i am using wordpress managed hosting from godaddy.

    When i am trying to open wordpress admin and my website. both are not opening, returning that error only .

    Please help.

    Thanks in advance

  37. Anindyo Yudhistiro says

    I have add

    error_reporting(E_ALL); ini_set(‘display_errors’, 1);
    define( ‘WP_DEBUG’, true);

    on my wp-config file, but still didn’t get the error..

Laisser une réponse

Merci d'avoir choisi de laisser un commentaire. Veuillez garder à l'esprit que tous les commentaires sont modérés selon notre politique de commentaires, et votre adresse e-mail ne sera PAS publiée. Veuillez NE PAS utiliser de mots-clés dans le champ du nom. Ayons une conversation personnelle et significative.