Search
Close this search box.

Erro de Memória Esgotada no WordPress – Como aumentar a memória do PHP

Nesse post quero te mostrar como resolver o erro de memória esgotada no WordPress da forma mais simples possível.

Criamos um guia mais completo e atualizado aqui.

Às vezes um erro de memória esgotada aparece no WordPress ao ativar um novo plugin ou fazendo alguma outra tarefa.

Normalmente, o erro se parece com isso:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home4/xxx/public_html/wp-includes/plugin.php on line xxx

Temos um e-mail de um inscrito no site que estava enfrentando o mesmo problema, então decidimos fazer um tutorial rápido sobre ele, porque este é um problema comum.

A razão pela qual este erro aparece é porque você ultrapassa seu limite de memória padrão.

Existem inúmeras soluções para isso, mas neste post vamos compartilhar a mais simples de todas.

Primeiro, abra o seu wp-config.php, que está localizado no diretório raiz do WordPress.

Em seguida, adicione a seguinte linha dentro da tag php principal:

define('WP_MEMORY_LIMIT', '128M');

Desse modo, nós apenas alocamos o limite de memória para 128M.

Se você ainda receber o erro após esta correção, temos esse guia atualizado para aumentar o limite de memória.

Se você tem outras maneiras de aumentar o limite de memória  deixe-nos saber nos comentários abaixo.

Psiu! Quer dominar completamente o WordPress?

Assinatura Premium é tudo que você precisa!

Obtenha acesso à Conteúdos Exclusivos, Séries e Cursos Completos, além de muito conteúdo para aprender sobre os Recursos Mais Tops do WorPress… Mesmo que seja um iniciante, do zero e sem saber programar!

Venha fazer parte dessa comunidade!

Não perca mais nenhuma atualização aqui!

Posts Relacionados

19 respostas

  1. Hi, i think that i saw you visited my website so i came to ?return the favor?.I am attempting to find things to improve my site!I suppose its ok to use some of your ideas!!

  2. A few things i have always told persons is that while looking for a good on-line electronics shop, there are a few issues that you have to consider. First and foremost, you should really make sure to look for a reputable plus reliable shop that has enjoyed great evaluations and ratings from other buyers and business sector professionals. This will make certain you are getting through with a well-known store that delivers good program and assistance to their patrons. Many thanks sharing your notions on this weblog.

  3. whoah this weblog is great i really like studying your posts. Keep up the great work! You already know, many individuals are looking around for this info, you can help them greatly.

  4. Simply wish to say your article is as astounding. The clearness for your post is just spectacular and i could suppose you’re knowledgeable in this subject. Fine along with your permission let me to take hold of your RSS feed to stay up to date with forthcoming post. Thanks 1,000,000 and please continue the enjoyable work.

  5. Hi there! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us valuable information to work on. You have done a wonderful job!

  6. It’s a pity you don’t have a donate button! I’d definitely donate to this excellent blog! I guess for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to brand new updates and will talk about this blog with my Facebook group. Chat soon!

  7. Can I simply say what a relief to search out somebody who actually is aware of what theyre talking about on the internet. You positively know how to deliver an issue to mild and make it important. More people need to read this and perceive this side of the story. I cant believe youre not more standard since you definitely have the gift.

  8. Thanks for your post. One other thing is the fact that individual states in the United states of america have their own laws in which affect people, which makes it quite hard for the the legislature to come up with a different set of guidelines concerning foreclosures on property owners. The problem is that each state offers own laws which may have interaction in a negative manner in regards to foreclosure insurance policies.

  9. There are some interesting closing dates in this article but I don?t know if I see all of them center to heart. There may be some validity however I’ll take hold opinion until I look into it further. Good article , thanks and we would like more! Added to FeedBurner as nicely

  10. I would love to add that if you do not already have got an insurance policy or you do not take part in any group insurance, you could possibly well benefit from seeking aid from a health insurance professional. Self-employed or people who have medical conditions generally seek the help of one health insurance specialist. Thanks for your writing.

  11. Hmm it appears like your website ate my first comment (it was extremely long) so I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your blog. I too am an aspiring blog writer but I’m still new to everything. Do you have any points for inexperienced blog writers? I’d genuinely appreciate it.

  12. What an insightful and thoroughly-researched article! The author’s thoroughness and aptitude to present complex ideas in a understandable manner is truly commendable. I’m thoroughly enthralled by the breadth of knowledge showcased in this piece. Thank you, author, for sharing your wisdom with us. This article has been a real game-changer!

  13. Thanks for your article. I also believe laptop computers have grown to be more and more popular these days, and now in many cases are the only type of computer used in a household. This is because at the same time that they’re becoming more and more affordable, their processing power keeps growing to the point where there’re as strong as desktop computers out of just a few years ago.

  14. I have discovered some new things from your internet site about computer systems. Another thing I’ve always considered is that laptop computers have become an item that each house must have for most reasons. They provide convenient ways in which to organize households, pay bills, shop, study, pay attention to music as well as watch tv series. An innovative approach to complete most of these tasks is to use a laptop computer. These personal computers are mobile ones, small, robust and lightweight.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

Não perca mais nenhuma atualização aqui!

Tabela de Conteúdo
PUBLICIDADE
Últimos Posts