La schermata bianca della morte può essere il peggior incubo del proprietario di un sito web. Questo frustrante errore di WordPress vi lascia a fissare una pagina vuota, senza alcun indizio su chi siamo.
Come se non bastasse, questo comune errore di WordPress può talvolta interessare parti specifiche del sito web, come l’area di amministrazione o le singole pubblicazioni.
Ad esempio, abbiamo visto la schermata bianca della morte all’interno dell’area di amministrazione di WordPress mentre tutto il resto funzionava in corso. In altri casi, l’abbiamo visto solo quando abbiamo visualizzato una specifica pubblicazione.
Comprendere le cause di questo errore è il primo passo per trovare una soluzione. Questa guida illustra alcune soluzioni per la correzione della schermata bianca della morte e fornisce i passi da compiere per ripristinare la funzionalità del sito web.
Nota: prima di apportare qualsiasi modifica al vostro sito, assicuratevi di avere un backup del vostro sito WordPress. Se non avete accesso all’area di amministrazione, consultate la nostra guida su come creare manualmente un backup del database di WordPress.
Perché si vede la schermata bianca della morte in WordPress?
Nella maggior parte dei casi, quando si vede una schermata bianca della morte quando si cerca di visitare il proprio sito WordPress, significa che uno script sul sito ha esaurito il limite di memoria.
Lo script che non risponde viene ucciso dal server di hosting WordPress o semplicemente va in timeout. Per questo motivo non viene generato un vero e proprio messaggio di errore, ma si vede solo una schermata bianca.
Tuttavia, a volte può essere visualizzato un messaggio di errore.
Ad esempio, si potrebbe visualizzare un messaggio di errore critico invece di una pagina vuota.
Che si tratti di una schermata vuota o del messaggio “Si è verificato un errore critico sul tuo sito web”, l’errore è lo stesso.
Questo errore può verificarsi anche a causa di un tema o di un plugin mal codificato installato sul sito. A volte può accadere se c’è un problema con il server di web hosting.
Poiché l’errore dello schermo bianco può essere causato da diversi fattori, per risolverlo è necessaria una risoluzione metodica dei problemi. Ecco i passaggi da provare:
- Check Whether the Problem Happens on Your Other Sites
- Fix the White Screen Error With WordPress Recovery Mode
- Increase the Memory Limit
- Fix the White Screen Error by Disabling All Plugins
- Activate the Default Theme
- Enable Debug Mode to Catch Errors in WordPress
- Clear the WordPress Cache
- Fix the White Screen Error for Longer Articles
Video tutorial
Se preferite le istruzioni scritte, continuate a leggere.
1. Verificare se il problema si verifica anche su altri siti.
Se avete altri siti WordPress installati sullo stesso account di hosting, allora dovete iniziare a verificare se il problema si verifica anche su altri siti.
Se è così, è un forte indicatore che qualcosa non va nel vostro servizio di hosting WordPress. Potrebbe trattarsi di un problema temporaneo che riguarda il loro servizio e dovete contattare il loro supporto per ottenere maggiore assistenza.
D’altra parte, se il problema si verifica solo con un sito web o con una parte specifica di esso, allora si sa che il problema riguarda quel sito in particolare.
2. Risolvere l’errore della schermata bianca con la modalità di ripristino di WordPress
Se l’errore della schermata bianca della morte è causato da un plugin o da un tema di WordPress, quest’ultimo potrebbe essere in grado di individuarlo.
La nuova funzione di protezione dagli errori fatali introdotta in WordPress 5.2 a volte riesce a cogliere l’errore, per cui è possibile che non venga visualizzata una schermata bianca. Si vedrà invece un messaggio che segnala che il sito sta incontrando difficoltà tecniche.
WordPress invierà anche un’e-mail sul problema all’indirizzo e-mail dell’amministratore.
L’e-mail avrà come oggetto “Il vostro sito ha un problema tecnico”.
Questo messaggio e-mail indicherà il plugin o il tema che ha causato l’errore e conterrà anche un link speciale.
Questo link vi permetterà di accedere alla modalità di recupero di WordPress e di disattivare il plugin difettoso.
Tuttavia, se viene visualizzata la schermata bianca di morte senza opzione di e-mail o modalità di ripristino, è necessario risolvere manualmente l’errore.
3. Aumentare il limite di memoria
Di solito, questo errore si verifica perché uno script ha esaurito la memoria del server web ed è uscito nel mezzo.
Per risolvere questo problema, è necessario aumentare la memoria PHP disponibile per WordPress. Ciò consentirà allo script di utilizzare più memoria per portare a termine il lavoro che doveva svolgere.
È necessario modificare il file wp-config.php sul sito WordPress o utilizzare un plugin di snippet di codice come WPCode.
Potete seguire le istruzioni del nostro tutorial su come aumentare la memoria PHP in WordPress.
4. Risolvere l’errore della schermata bianca disattivando tutti i plugin
Se l’aumento del limite di memoria di PHP non è stato d’aiuto o se il limite di memoria è elevato, come 256M o 512M, è necessario iniziare la risoluzione dei problemi.
Nella nostra esperienza di risoluzione di questo problema, abbiamo sempre riscontrato che il problema è dovuto a un plugin specifico o a un tema. Procediamo con la disattivazione di tutti i plugin.
Se riuscite ad accedere alla dashboard di amministrazione di WordPress, potete semplicemente andare alla pagina Plugin ” Plugin installati. Selezionate tutti i plugin installati e poi selezionate “Disattiva” nel menu a tendina “Azioni massicce”.
Tuttavia, se non avete accesso all’area di amministrazione di WordPress, dovrete disattivare tutti i plugin tramite FTP.
Per prima cosa, collegatevi al vostro sito WordPress utilizzando un client FTP o il file manager del vostro provider di hosting. Una volta collegati, andate nella cartella wp-content
, dove troverete la cartella plugins
.
A questo punto, è necessario fare clic con il tasto destro del mouse sulla cartella dei plugin
e selezionare “Rinomina”. È possibile rinominare la cartella dei plugin in “plugins-deactivated”.
WordPress cerca una cartella denominata plugins
per caricare tutti i plugin. Se non trova la cartella, disattiva semplicemente tutti i plugin.
Se questo risolve il problema, attivare un plugin alla volta per individuare la causa del problema. Una volta individuato il plugin che causa il problema, è possibile sostituirlo con un altro o segnalare il problema agli autori del plugin.
5. Attivare il tema predefinito
Se la risoluzione dei problemi del plugin non risolve il problema, si dovrebbe provare a sostituire il tema attivo con un tema predefinito.
Per prima cosa, collegarsi al proprio sito web utilizzando un client FTP e accedere alla cartella /wp-content/themes/
. Essa contiene tutti i temi installati sul vostro sito web.
Fare clic con il pulsante destro del mouse per selezionare il tema WordPress corrente e scaricarlo sul computer come backup.
Successivamente, è necessario eliminare il tema attuale dal sito web.
È sufficiente fare clic con il tasto destro del mouse sulla cartella del tema e selezionare “Elimina”. Il vostro client FTP eliminerà il tema dal vostro sito web.
Ora, se sul vostro sito web è installato un tema predefinito di WordPress come (Twenty Twenty-Two o Twenty Twenty-Three), WordPress inizierà automaticamente a utilizzarlo come tema predefinito.
Tuttavia, se non è stato installato un tema predefinito, è necessario installarlo manualmente tramite FTP.
Se questo risolve il problema, è necessario controllare il file functions.php
del tema. Se ci sono spazi extra in fondo al file, è necessario rimuoverli e a volte questo risolve il problema.
Se si utilizza una funzione mal codificata nel file functions.php
del tema, anche questa può causare l’errore della schermata bianca della morte.
Considerate la possibilità di scaricare una copia fresca del vostro tema dalla fonte e di installarlo manualmente tramite FTP.
6. Abilitare la modalità Debug per catturare gli errori in WordPress
Se finora non è servito a nulla, il passo successivo è attivare il debug in WordPress. In questo modo, i registri degli errori permettono di vedere che tipo di errori vengono visualizzati.
È sufficiente aggiungere il seguente codice al filewp-config.php
:
define( 'WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true );
Una volta aggiunto, la schermata vuota presenterà errori, avvertenze e avvisi. Questi possono aiutare a determinare la causa principale.
Se non si riscontrano errori, si consiglia di controllare il registro di debug.
È sufficiente visitare la cartella wp-content
del vostro sito web utilizzando un client FTP. Lì troverete un nuovo file debug.log
contenente un registro di tutti gli errori, gli avvisi e le avvertenze.
7. Cancellare la cache di WordPress
A volte è possibile accedere al backend, ma il front-end del sito presenta la schermata bianca della morte.
Questo può accadere a causa di un plugin di caching. In questo caso, è sufficiente svuotare la cache di WordPress.
Per istruzioni dettagliate, potete consultare la nostra guida su come cancellare la cache in WordPress.
8. Correggere l’errore della schermata bianca per gli articoli più lunghi
Se la schermata bianca della morte si verifica solo su un post o una pagina molto lunghi, questo metodo potrebbe funzionare.
Questo trucco aumenta sostanzialmente la capacità di elaborazione del testo di PHP, aumentando il limite di ricorsione e di backtrack. È possibile incollare il seguente codice nel file wp-config.php
:
/** Trick for long posts */
ini_set('pcre.recursion_limit',20000000);
ini_set('pcre.backtrack_limit',10000000);
Comprendiamo che si tratta di un errore molto frustrante e speriamo che uno dei trucchi di cui sopra abbia risolto il problema.
Si consiglia di consultare anche la nostra guida alla risoluzione dei problemi di WordPress, che illustra i passaggi da seguire per individuare e risolvere i problemi di WordPress da soli, o il nostro elenco dei problemi più comuni dell’editor a blocchi di WordPress e di come correggerli.
Se questo articolo vi è piaciuto, iscrivetevi al nostro canale YouTube per le esercitazioni video su WordPress. Potete trovarci anche su Twitter e Facebook.
Bleem Cave
can someone please help me, when i install a wp themes i keep getting white blank screen, but i still have access to my wp admin, just the website is giving me difficulties, i also see an error log in the root folder
error, responseINVALID
who can help me ?
Melissa
How are you supposed to alter anything when you’re locked out? The white screen of death has happened to me and it not only happened with the site itself but also on the admin dashboard. It happened because I followed one of YOUR tutorials on how to embed a music playlist to the sidebar. I had no way of recovering the site whatsoever, until someone my editor knows sent me the cpanel login page, except I didn’t have any cpanel login details (and I still don’t – but I’ve been asking for them). I’m now afraid to add anything new to my website in case this happens again. Wordpress is not user friendly to those who don’t know CSS and HTML like the back of their hand.
Why is it even necessary for Wordpress to lock you out of the dashboard when there’s an issue with your website? The issue I had would have been easy to solve from the dashboard. All that needed doing was for the poor piece of coding to be removed. Is there any other way to access the dashboard in a kind of safe mode other than cpanel?
WPBeginner Support
Hi Melissa,
We understand your frustration. White screen of death is a terrible situation for most beginners.
In your case, we feel that you could have solved it but you didn’t have the login details for cPanel. Please make sure that you have those details in the future so that you can easily perform administrative tasks on your WordPress site.
Admin
Omer
Thanks alot for this Post save alot of time… so nice of you..
berita akurat
Thank you
JP James
Small contribution : When updating both my WP & Theme I got a WSOD
I struggled to find the solution, reverted to old WP version and tried all the above when I checked the PHP version, I had an outdated PHP 5.2 when the newer theme version only supported PHP 5.3 min.
Keep an eye on your hosting so it stays regularly updated.
Cheers,
JP
Denis
I have experienced the WSOD on a WP site. I found out several WP files on the server were inexplicably empty. I mean the files were there, but had no content anymore. It seems that the empty files were mainly at WP root and in wp-includes. So I just published them again from WP source files, and the blog went live again. No idea why these files had suddenly lost their contents…
Franklin
I mistakenly change the URL of my website, and I can’t access to the dashboard again please help
Clausen
I sincerely hope you found out by now, but you need to access your WordPress DataBase, find your “wp_option” table and set your “siteurl” to whatever it was when it was working.
Agnes
Thank you sooo much for this article. I had the dreadful white screen and your tips saved me .
Carrie
I had the white screen come up as soon as I tried to update Wordpress to the newest version. Now I can’t access my dashboard at all, just get the white screen. Any suggestions?
Melissa
White screen occurred with trying to add WP Recaptcha Integration to the website. I think it might be something to do with the site having a customised theme. It’s pretty frustrating that Wordpress doesn’t have a simple “safe mode” option you can log into to access the dashboard under these circumstances. I know the CPanel exists, but if you’re a company and don’t have access to CPanel login details and wouldn’t know where to even begin with it, having a WP safe mode login would be most helpful; that way we could go and try to fix the problems without a great deal of hassle. We aren’t all experts; Wordpress seems to think everyone using it ought to be an expert at computing and coding. If I could access the admin panel, I’d know to remove the offending plugin and that would probably sort it, but alas! I have to sit here twiddling my thumbs because I’m merely a staff member who was asked to update the website and even the owner doesn’t know the first thing about how to fix these things. Wordpress really needs to become more user friendly.
brittney
Have you found a solution?
I am sitting here in the same boat. I cannot access my account to fix the problem! Any piece of information you can give me to help solve this would be great. I totally agree with what you said, Wordpress should also have support you can contact!
Carrie
I am back on track. I got fed up with the lack of support from my host so chatted with some new hosting companies that were recommended. The one was amazing, fixed my site (not sure how!) then didn’t want payment just hoped I would consider them if switching hosts. I have now switched and they have been great so far.
Sorry that is not much help to fix the problem unless you are ready to switch hosts. I hope you get your resolved soon.
Mike
Thank you, thank you, thank you, thank you! I activated a new plugin then everything went white. I thought I lost my entire site, the panic was real! I ended up having to deactivate each plugin within the plugin folder and work backwards from there.
Thanks Again,
Mike
WPBeginner Support
You are welcome. We are glad you found it helpful.
Admin
Ramiro
Thank you!!!
Devyd Haier
I have 9-wrodpress sites and yesterday 2-sites went white screen. I have not made any changes, changed themes or plug-ins so I do not think that is the problem. I have white screen on ADMIN LOGIN as well as when you go to the site itself…so no access to make any of your suggested changes???? What to do please. Devyd
Lokesh Acharya
hey i am facing white screen problem with the error because i have done some change in the “functions.php” file with editor but suddenly the problem was started on my wordpress site and i am on the editor page.
I tried for FTP per it is was not open.
i then reset the code of “functions.php” file of theme “Twentysixteen” but it was not work.
i can’t even logout from my admin panel.
in all condition it is just show only the “WHITE SCREEN” with the error.
i don’t want lost it. i have spent money and time on it.
please suggest me what should i do.
Thank You
Shaun
Thanks so much – It was a bad plugin update – deactivated it and saved me a lot of hassle!
albert
hi, can anyone help me, my website is not editable. The editing part is not shown. My website
Guido Pettinari
I have tried every single tip in this guide, with no success. After hours lost, it turned out that I had an empty line in my wp-config.php at the very start, just before the <!php tag. After I removed it, the website worked perfectly again.
Alexander Schilling
The debugging modus brought me on a track: “Fatal error: Allowed memory size of 33554432 bytes exhausted” since all fixes with the theme, the plugins, with the php.ini and increasing the memory in the wp-config had not worked, I asked my hoster, to increase the memory limit. In this action my hoster finally discovered that I worked with an old php version (5.3) with wordpress 4.6.1 . A change to 5.5 solved the problem and also 7.0 runs wonderfully.
Henrik
My problem is that I can not log in on my computer even if I use different browsers, the screen goes white. But others do not have this problem on their computer.
So what should I do with that?
Henrik
I found out that if I change to another wifi network, I can suddenly log in! But what do I do to change that so I can log in from my wifi network?
debbie
with no access to the PHP files only the WP dashboard, would you go straight to replacing the theme?? It is just the blog section of the site that is blank. If I live preview the site in another theme the blog shows fine.
Britneye
This totally saved my butt today. Thanks so much! I was in full on panic mode!
austine charles
am comfused l these dosnt seemto work atall am in trouble now my dashboard is totally white now
Rory Ingen
We had this issue but it stated “error” in the top left corner of the white screen.
We had recently implemented a new security plugin and I had entered the incorrect password multiple times and so the security plugin blacklisted my IP.
After 15 minutes I can now get back in again.
Luckily I waited before I started on all the above fixes!!
Aleksandar
Another solution – check and remove empty index.htm and/or index.html and/or default.htm
If server config changed (after Apache upgrade), order of index files can change so index.php stay behind plain files.
Had this case once in last two years.
prokops
In my case, wp-admin/post.php blank screen was fixed by removing the ” ?> ” at the end of my function.php in my child theme. I don’t know how the end tag ended in there, but removing it solved my problems.
Nell Yang
I should say thank you to you all! Thank you for sharing your posts with us. I am still working on this problem but it’s so nice to see your instructions. Thank you very much!
Ming
I have the white screen of death it’s sending me crazy, have tried loads of things that people have suggested and am at a loss as to what I can do . Any help gratefully received before I throw the laptop out of the window
JC
I also tried a bunch of things too but ultimately found that “Re-uploading Core Files” and “renaming the plug-in directory” worked for me.
https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-internal-server-error-in-wordpress/
Haiko Nieuwoudt
Thanks for this insightful article. Saved my skin!
Charles Osborne
I found a hint for this on another site. It is an error caused by a newr version of php more than likely. If your Cpanel allows you change your php version roll it back to until your site works and then you can update everything and go back to the newer versions of php.
Drew Walk
Thanks !!!
error_reporting(E_ALL); ini_set(‘display_errors’, 1);
define(‘WP_DEBUG’, true);
very help me.. now i can customize my site.. Thanks !
Morshedul Arefin
This is really a very nice and helpful article for developers. Thank you so much for such kind of tremendous article.
kelley c
I’m helping with a website for a non-profit, I’m not a Word Press expert so i was distressed when I kept getting the white screen with one word ‘error’ displayed and could not access any pages on the site through the admin.
My web host couldn’t see anything amiss so he suggested I unplug my router and let it reset. Sure enough it worked. I continue to see the white ‘error’ screen but unplugging the router has fixed it every time.
What on earth could cause this? Am working under limitations as it is, this makes it even harder to want to help them out.
Alois
White screen, login to WP not working, 3 pages of fake users then found in WP, mess in files on FTP = HACKED WP.
TIP: Do REGULAR UPDATES both: Files from FTP and MySQL database from phpMyAdmin or hosting Administration! Save localy together for these situations.
(TIP: Most of hosters do regular backups about 14 days back)
HOW SOLVED:
1. downloading MySQL database (.sql file) from the hosting administration as a backup.
2. downloading OLD HACKED WP from FTP (hosting) as a backup.
2. downloading fresh installation of WP from wordpress.org
3. deleting WHOLE OLD WP installation from FTP (all files).
4. moving NEW fresh WP to FTP.
5. copy some my folders from OLD WP to NEW WP from folder wp-content: plugins, theme, uploads.
6. installation of new WP and telling it: I have got an existing database, so filling db name, password…
7. after installation WP working ok, login – deleting fake users, unused plugins, themes, check. TIP: WP Settings > General > Turn off option: Anyone can register as a new user.
8. installing plugin Wpdbup for automatic backups, setting its jobs, tests of them.
9. CHANGING FTP PASSWORD, CHANGING USER(S) LOGIN PASSWORD.
10. DOWNLOAD working WP both, ALL FILES from FTP and MySQL DATABASE from hosting or PhpMyAdmin AS A BACKUP.
11. Repeat point 10. always BEFORE a lot of changes of your web and always AFTER them
Jesus saves
Good luck
A@
Nicola
U saved my life thanks!!!!
Julie
Hi,
I have a several wordpress sites and I have a blank white screen on all of them and I cannot access the admin page on any of them to try to fix the problem. Can anyone help?
MALLORY
Help! I don’t have access to the php, I’m working with a company and I have their login info and that’s it. It’s giving me this: Fatal error: Cannot redeclare class oauthconsumer in /nas/content/staging/cphouston/wp-content/plugins/comments-plus/lib/external/twitter/OAuth.php on line 12
Eileen Prades
Woke up to a blank page this morning and tried your fixes. Unfortunately nothing worked for me. It turned out that my wp-config.php was completely empty. Luckily I could restore it from a backup. But I’m still wondering how this could happen? Any ideas?
Willem
I read allot of posts and sat for a week trying solve this.
The Issue was:
My Public ip was blocked on the “Shared Hosted Server” so I called my service provider that does my hosting and they removed it. and its working again
jo
After being hacked, I followed your instruction to changed my password in phpMyAdmin. then I got the white screen on my admin page. any ideas?
Yamini
Not working, any solution to this
Olivier
Thank you very much for your usefull article!
With this I finally can find the plugin who gives me the ‘famous’ white screen of death…
Hope that everything will be ok now
Willem
Any Solution to this problem yet?
lol,
Harper
Today my blog went white like you were describing, but I can’t even get log in or access anything on my site to try anything you’ve suggested because absolutely everything is white. Any ideas on what to do in this case? I’m pretty sure it’s because I somehow messed up the coding in the theme when I was try to remove the “powered by Wordpress” on the bottom of the page. Thanks so much!
WPBeginner Support
You can download a fresh copy of your theme and then upload it using an FTP client.
Admin
W0bble
I fixed it saving wp.config.php in ANSI instead of UTF-8…
Alex
If the plugin troubleshooting doesn’t fix the issue, then you should try replacing your current theme with a default twenty ten theme. The best way to do this is by backing up your theme folder. Then deleting the theme. WordPress will automatically fall back to the default theme.
My site was hacked! I just restored it! Thank you so much! Even though it looks ugly, it is not directed to others sites.
Very useful guide!
One question: When I go to Google and type, it still says, “This site may be hacked.” What can I to remove this?
Thank you so much again!
Thanks,
Alex
WPBeginner Support
Once you are certain that your site is clean again, then you can request a review.
Admin
Jedda
i had the white screen of death caused by a plug in, i renamed the plugins after eventually deciphering enough tech language to set up an FTP client via filezilla.(i had to watch 6 very annoying youtube videos to get there) Still only the admin log in box but nothing else. Came here, deleted the theme as directed and now even the log in box is gone. A years worth of work on my site gone, both page and my will are broken. any ‘idiots set by step’ advice welcome x
erm3nda
For little bucks i can fix your site, sure.
I had no enough time to “decypher” tech language. It’s is time consumption. Fix things is faster
If you really add worth to your website, consider that “repairing” a kind of issue you can pay for get rid of.
Analogy of cars should be like: Your car do not cost only the 10.000 initial cost, it cost to you the fuel, tires and other things, like paint, repair etc.
Best of luck
erm3nda
Yes, rename the themes then put it back did the trick… omg
I was looking around every config file, nevermind.
Error display didn’t show me anything :C
Sameer Panda
Nothing worked for me. Please check my domain here
Michel
nothing worked for me…:'(
amy miranda
as of yesterday i have suddenly for the first time in 4 years, the white screen of death.. i can’t log into my website. my developer does not know, he says he will hire a team and it will cost me $1000 to fix it. how can i fix it myself. my website is called but now i can’t even access it. help please!
WPBeginner Support
Your site seems to be working fine now
Admin
diogo
I followed the instructions in section “Replace Theme with a Default Theme”, and updated the wp_options. This worked fine for me.
Thank you.