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

Como corrigir a tela branca da morte do WordPress (passo a passo)

Nota editorial: Ganhamos uma comissão de links de parceiros no WPBeginner. As comissões não afetam as opiniões ou avaliações de nossos editores. Saiba mais sobre Processo editorial.

A tela branca da morte do WordPress é um dos erros mais comuns do WordPress. Também é um erro frustrante porque não há mensagem e você fica bloqueado no WordPress.

Outro problema com o erro da tela branca da morte é que, às vezes, ele afeta apenas uma determinada parte do seu site. Por exemplo, talvez você só veja a tela branca da morte dentro da área de administração do WordPress, enquanto todo o resto funciona bem. Em outros casos, pode ser que ela apareça somente em um post específico.

Neste artigo, mostraremos como corrigir a tela branca da morte do WordPress, analisando diferentes soluções.

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

Observação: antes de fazer qualquer alteração em seu site, certifique-se de ter um backup do site do WordPress. Se você não tiver acesso à área de administração, consulte nosso guia sobre como criar manualmente um backup do banco de dados do WordPress.

Por que você vê a tela branca da morte no WordPress?

Na maioria das vezes, quando você vê uma tela branca da morte ao tentar visitar seu site do WordPress, isso significa que um script em seu site esgotou o limite de memória.

O script que não responde é eliminado pelo servidor de hospedagem do WordPress ou simplesmente atinge o tempo limite. É por isso que nenhuma mensagem de erro real é gerada, e você vê apenas uma tela branca em branco.

WordPress showing white screen instead of website

No entanto, às vezes, você pode ver uma mensagem de erro.

Por exemplo, você pode ver uma mensagem de erro crítico em vez de uma página em branco.

Critical error in WordPress

Não importa se você está vendo uma tela em branco ou a mensagem “Houve um erro crítico no seu site”, o erro é o mesmo.

Esse erro também pode ocorrer devido a um tema ou plug-in mal codificado instalado em seu site. Às vezes, isso pode ocorrer se houver um problema com seu servidor de hospedagem na Web.

Como o erro de tela branca pode ser causado por vários fatores, é necessária uma solução de problemas metódica para corrigi-lo. Aqui estão as etapas que você deve tentar:

Tutorial em vídeo

Subscribe to WPBeginner

Se você preferir instruções por escrito, continue lendo.

1. Verifique se o problema ocorre em seus outros sites

Se você tiver outros sites WordPress instalados na mesma conta de hospedagem, comece verificando se o problema também está ocorrendo em outros sites.

Se for, esse é um forte indicador de que há algo errado com seu serviço de hospedagem WordPress. Esse pode ser um problema temporário que afeta o serviço e você precisa entrar em contato com o suporte para obter mais ajuda.

Por outro lado, se o problema estiver ocorrendo somente em um site ou em uma parte específica desse site, você saberá que o problema está nesse site específico.

2. Corrigir o erro de tela branca com o modo de recuperação do WordPress

Se o erro da tela branca da morte for causado por um plug-in ou tema do WordPress, o WordPress poderá detectá-lo.

O novo recurso de proteção contra erros fatais introduzido no WordPress 5.2 pode, às vezes, detectar o erro, de modo que talvez você nem veja uma tela branca. Em vez disso, você verá uma mensagem informando que o site está com dificuldades técnicas.

This Site Is Experiencing Technical Difficulties Error Message

O WordPress também enviará um e-mail sobre o problema para seu endereço de e-mail de administrador.

O e-mail terá o assunto “Seu site está passando por um problema técnico”.

Technical Difficulties Email With Link to Recovery Mode

Essa mensagem de e-mail indicará o plug-in ou o tema que está causando o erro e também conterá um link especial.

Esse link permitirá que você faça login no modo de recuperação do WordPress e desative o plug-in com defeito.

WordPress recovery mode dashboard

No entanto, se estiver vendo a tela branca da morte sem nenhuma opção de e-mail ou modo de recuperação, será necessário corrigir o erro manualmente.

3. Aumentar o limite de memória

Normalmente, esse erro ocorre porque um script esgotou a memória do servidor da Web e foi encerrado no meio do processo.

Para corrigir isso, você precisa aumentar a memória PHP disponível para o WordPress. Isso permitirá que o script use mais memória para concluir o trabalho que deveria fazer.

Você precisará editar o arquivo wp-config.php em seu site do WordPress ou usar um plug-in de snippet de código como o WPCode.

Você pode seguir as instruções em nosso tutorial sobre como aumentar a memória PHP no WordPress.

4. Corrija o erro de tela branca desativando todos os plug-ins

Se o aumento do limite de memória do PHP não ajudar, ou se você tiver um limite de memória alto, como 256M ou 512M, será necessário iniciar a solução de problemas.

Em nossa experiência de solução de problemas, sempre descobrimos que o problema está em um plug-in específico ou em um tema. Vamos em frente e desativar todos os plug-ins.

Se ainda puder acessar o painel de administração do WordPress, basta ir para a página Plugins ” Plugins instalados. Selecione todos os plug-ins instalados e, em seguida, selecione “Deactivate” (Desativar) no menu suspenso “Bulk actions” (Ações em massa).

Deactivate all WordPress plugins

No entanto, se você não tiver acesso à área de administração do WordPress, precisará desativar todos os plug-ins via FTP.

Primeiro, conecte-se ao seu site WordPress usando um cliente FTP ou o gerenciador de arquivos do seu provedor de hospedagem. Depois de conectado, vá para a pasta wp-content, onde você verá a pasta plugins.

Agora, você precisa clicar com o botão direito do mouse na pasta de plug-ins e selecionar “Renomear”. Você pode renomear a pasta de plug-ins para “plugins-deactivated”.

Using FTP to Rename the Plugins Folder

O WordPress procura uma pasta chamada plugins para carregar todos os plugins. Quando não consegue encontrar a pasta, ele simplesmente desativa todos os plug-ins.

Se isso corrigir o problema, ative um plug-in de cada vez para descobrir a causa do problema. Quando encontrar o plug-in que está causando o problema, você poderá substituí-lo por um alternativo ou relatar o problema aos autores do plug-in.

5. Ativar o tema padrão

Se a solução de problemas do plug-in não resolver o problema, tente substituir o tema ativo por um tema padrão.

Primeiro, conecte-se ao seu site usando um cliente FTP e vá para a pasta /wp-content/themes/. Ela contém todos os temas instalados em seu site.

Clique com o botão direito do mouse para selecionar o tema atual do WordPress e baixá-lo para o computador como um backup.

Using FTP to Download the Current Theme as a Backup

Em seguida, você precisa excluir o tema atual do seu site.

Basta clicar com o botão direito do mouse na pasta do tema e selecionar “Excluir”. Seu cliente FTP excluirá o tema do seu site.

Using FTP to Delete the Current Theme

Agora, se você tiver um tema padrão do WordPress como (Twenty Twenty-Two ou Twenty Twenty-Three) instalado em seu site, o WordPress começará a usá-lo automaticamente como tema padrão.

No entanto, se você não tiver um tema padrão instalado, precisará instalá-lo manualmente usando o FTP.

Se isso corrigir o problema, você deverá examinar o arquivo functions.php do tema. Se houver espaços extras na parte inferior do arquivo, você precisará removê-los e, às vezes, isso resolve o problema.

Se você estiver usando uma função mal codificada no arquivo functions.php do seu tema, isso também poderá causar o erro de tela branca da morte.

Considere a possibilidade de baixar uma nova cópia do tema a partir da fonte e instalá-la manualmente usando FTP.

6. Ativar o modo de depuração para detectar erros no WordPress

Se nada tiver ajudado até agora, a próxima etapa é ativar a depuração no WordPress. Isso manterá registros de erros que lhe permitirão ver que tipo de erros estão sendo emitidos.

Basta adicionar o seguinte código ao seu arquivowp-config.php:

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

Depois de adicionar isso, a tela em branco passará a ter erros, avisos e notificações. Eles podem ajudá-lo a determinar a causa raiz.

Se não houver nenhum erro, talvez seja melhor verificar o registro de depuração.

Basta acessar a pasta wp-content em seu site usando um cliente FTP. Lá, você encontrará um novo arquivo debug.log que contém um registro de todos os erros, avisos e advertências.

Debug log

7. Limpar o cache do WordPress

Às vezes, você pode ter acesso ao back-end, mas o front-end do site apresenta a tela branca da morte.

Isso pode acontecer por causa de um plugin de cache. Nesse caso, basta esvaziar o cache do WordPress.

Consulte nosso guia sobre como limpar o cache no WordPress para obter instruções detalhadas.

8. Corrigir o erro de tela branca para artigos mais longos

Se você tiver uma tela branca da morte somente em uma postagem ou página muito longa, esse método poderá funcionar.

Esse truque basicamente aumenta a capacidade de processamento de texto do PHP, aumentando o limite de recursão e retrocesso. Você pode colar o código a seguir em seu arquivo wp-config.php:

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

Entendemos que esse é um erro muito frustrante e esperamos que um dos truques acima tenha corrigido o problema para você.

Talvez você também queira ver nosso guia de solução de problemas do WordPress, que ensina as etapas que você deve seguir para detectar e corrigir problemas do WordPress por conta própria, ou nossa seleção de especialistas dos melhores provedores de hospedagem gerenciada do WordPress.

Se você gostou deste artigo, inscreva-se em nosso canal do YouTube para receber tutoriais em vídeo sobre o WordPress. Você também pode nos encontrar no Twitter e no Facebook.

Divulgação: Nosso conteúdo é apoiado pelo leitor. Isso significa que, se você clicar em alguns de nossos links, poderemos receber uma comissão. Veja como o WPBeginner é financiado, por que isso é importante e como você pode nos apoiar. Aqui está nosso processo editorial.

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.

O kit de ferramentas definitivo WordPress

Obtenha acesso GRATUITO ao nosso kit de ferramentas - uma coleção de produtos e recursos relacionados ao WordPress que todo profissional deve ter!

Reader Interactions

296 ComentáriosDeixe uma resposta

  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. Bleem Cave says

    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 ?

  3. Melissa says

    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 says

      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.

      Administrador

  4. JP James says

    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

  5. Denis says

    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…

    • Clausen says

      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.

  6. Carrie says

    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 says

      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 says

        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 says

          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.

  7. Mike says

    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

  8. Devyd Haier says

    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

  9. Lokesh Acharya says

    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

  10. Guido Pettinari says

    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.

  11. Alexander Schilling says

    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.

  12. Henrik says

    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 says

      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?

  13. debbie says

    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.

  14. Rory Ingen says

    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!!

  15. Aleksandar says

    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.

  16. prokops says

    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.

  17. Nell Yang says

    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!

  18. Ming says

    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

  19. Charles Osborne says

    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.

  20. Drew Walk says

    Thanks !!!
    error_reporting(E_ALL); ini_set(‘display_errors’, 1);

    define(‘WP_DEBUG’, true);

    very help me.. now i can customize my site.. Thanks !

  21. Morshedul Arefin says

    This is really a very nice and helpful article for developers. Thank you so much for such kind of tremendous article.

  22. kelley c says

    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.

  23. Alois says

    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@

  24. Julie says

    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?

  25. MALLORY says

    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

  26. Eileen Prades says

    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?

  27. Willem says

    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

  28. jo says

    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?

  29. Olivier says

    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 ;-)

  30. Harper says

    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!

  31. Alex says

    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

  32. Jedda says

    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 says

      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 :P

      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

  33. erm3nda says

    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

  34. amy miranda says

    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!

  35. diogo says

    I followed the instructions in section “Replace Theme with a Default Theme”, and updated the wp_options. This worked fine for me.

    Thank you.

Deixe uma resposta

Obrigado por deixar um comentário. Lembre-se de que todos os comentários são moderados de acordo com nossos política de comentários, e seu endereço de e-mail NÃO será publicado. NÃO use palavras-chave no campo do nome. Vamos ter uma conversa pessoal e significativa.