Quero falar com você aqui sobre como resolver o erro Limite de Memória do WordPress ou PHP que, por sua vez, gera outros problemas no site.
Veja o vídeo:
[embedyt]https://www.youtube.com/watch?v=FzQTu2tP6Rk[/embedyt]
Óbvio que nem tudo são flores, então, existem vantagens e desvantagens na utilização de uma plataforma open-source e CMSs como o WordPress.
Sim, é muito flexível e escalável, mas pode exigir também que você tenha que realizar alguma ação mais técnica.
Por exemplo, quando necessita solucionar problemas e resolver alguns dos erros que normalmente surgem quando você está usando WordPress.
Em alguns casos nenhum erro é mostrado na tela, em outros vemos erros críticos no site, mas quando é memória, podemos ver uma mensagem dizendo que atingimos o ‘limite de memória PHP’.
Talvez, isso possa parecer complicado, principalmente se você não sabe o que causou o problema ou como corrigi-lo.
Mas, esse é um dos problemas mais simples de resolver e até usuários novatos no WordPress podem chegar facilmente na solução.
Vamos ver o que é um erro de limite de memória no WordPress, e porquê dele surgir no seu site e depois vamos ver algumas opções para corrigi-lo.
Memória do WordPress ou PHP?
Se você conhece bem o WordPress sabe que é uma plataforma muito estável, mas não obviamente não é imune a erros.
É possível encontrar vários problemas, como a antiga “Tela Branca da Morte“, “Há um Erro Crítico no seu Site”, ou um site “preso” no “modo de manutenção”.
A boa notícia, é que a maioria dos erros WordPress não é muito difícil de solucionar, como você sempre vê aqui no WP24Horas.
Mesmo assim, pode ser complicado para quem está começando, porque alguns erros não oferecem muitas informações sobre o que está acontecendo de fato.
Desse modo, chegamos em um dos problemas mais comuns – o erro de limite de memória WordPress.
Também pode ser conhecido como “erro de limite de memória PHP” e tem normalmente esse aspeto:
fatal error: allowed memory size of 67108864 bytes exhausted
A maioria dos provedores de hospedagem com planos compartilhados oferecem níveis baixos de memória, especialmente para sites que usam muitos plugins.
Portanto, se for o caso, você terá que fazer um upgrade de plano ou mesmo ter que abrir mão de recursos ou mudar de hospedagem.
Mas, em se tratando de memória, podemos ter várias situações, contudo, é mais provável que ele surja quando você faz ações específicas no seu site, como:
- Instalar e ativando um novo tema ou plugin.
- Upload de imagens e outros arquivos mais pesados.
Se encontrou esse erro no seu site WordPress, não se preocupe, veremos agora um pouco mais sobre isso.
Por que erro de limite de memória?
Como o próprio erro diz “limite de memória”, o contexto está descrito…
Sem querer ser muito técnico aqui, seu site exige certa memória para armazenar todos os seus dados e rodar seus scripts.
Então, isso inclui seu banco de dado, arquivos, conteúdo, todo código extra adicionado por plugins e temas, e muito mais.
Seu servidor de hospedagem é que define a quantidade de memória disponível através do plano que você contrata.
Portanto, na contratação, seu site recebe alguns recursos específicos, incluindo processamento, banda, memória e espaço de armazenamento para seu site.
Obviamente, contratar um plano de hospedagem melhor vai oferecer mais espaço e mais memória para seu site.
Contudo, muitos proprietários de sites começam com planos básicos de hospedagem compartilhada, o que não é necessariamente um problema.
Porém, isso significa que sua memória alocada será reduzida – em alguns casos, extremamente baixas.
Assim, quando seu site cresce ou você começa a usar plugins e scripts mais complexos, pode atingir seu limite de memória facilmente.
Desse modo, seu WordPress verá um erro de limite de memória PHP e não poderá concluir a ação que estava tentando executar.
Como Verificar Seu Atual Limite de Memória PHP
Isso é bem fácil de ver, inclusive pelo próprio painel administrativo do WordPress…
Se estiver executando o WordPress 5.2 ou superior, pode ir até Ferramentas > Diagnóstico do Site para verificar qual é o limite atual de memória do PHP no seu site.
Então, navegue para baixo até à seção de informações do Servidor e aqui você pode ver que o limite de memória do PHP:
Assim, se o valor for baixo, por exemplo 32M, basicamente apenas existe uma correção para o problema: aumentar quantidade de memória alocada para seu site.
Contudo, existem algumas formas diferentes de resolver essa questão.
Como Solucionar o Erro de Limite de Memória
Geralmente, o problema de limite de memória do WordPress tem uma solução simples, portanto, você não terá de fazer várias tentativas-e-erro para solucionar essa questão.
Podemos seguir 4 caminhos para solucionar o problema quando atinge-se o limite de memória PHP no seu site.
Agora, vamos ver como aumentar a memória do PHP…
Aumentar a memória pelo MultiPHP INI Editor
Se você tiver acesso ao cPanel, você pode usar o MultiPHP INI Editor para todas as suas configurações.
Selecione o domínio (se necessário) para ver as configurações abaixo:
Perceba que, nesse caso, temos ainda a opção de ativar a compressão zlib, recomendada em alguns casos de solução de problemas.
Agora, se você não tiver acesso ao cPanel, os métodos a seguir também poderão ser usados para aumentar sua memória.
Nota: Se você não se sentir confortável em tentar esses métodos por conta própria, ou eles não resolverem seu problema, entre em contato com sua hospedagem para que eles aumentem seu limite de memória.
Editar arquivo wp-config.php
Agora, vamos ver como aumentar a memória PHP alocada para o seu site WordPress.
O arquivo de configurações (wp-config.php) está localizado na pasta principal da instalação do seu WordPress, geralmente a “public_html” ou “www“.
Você pode usar também um cliente FTP – como o Filezilla – para acessar seus arquivos, baixá-los, editá-los localmente e fazer o upload substituindo o original.
Adicione o código abaixo da imagem, logo antes da linha que diz “…Happy Blogging”:
define('WP_MEMORY_LIMIT', '128M');
Nota: a memória do WordPress pode ser diferente do servidor – você precisa definir isso independentemente das configurações de memória do servidor.
Na verdade, normalmente eu coloco como 256M ou até 512M se o site tem muitos plugins instalados – comece com 128M e, se isso não resolver o problema, você aumenta.
Normalmente, mais do que 128M é definitivamente desnecessário, a menos que seja especificamente solicitado na documentação de plugins que esteja usando.
Editar arquivo PHP.ini
O arquivo PHP.ini é o arquivo de configurações do PHP do seu servidor e geralmente fica na raiz da hospedagem ou mesmo na pasta de instalação do WP.
Quando você usar o MultiPHP INI, já cria esse arquivo, mas em alguns casos, você pode também criar um arquivo PHP.ini e colocar essas linhas de configuração.
Então, se existir e você tiver acesso ao seu arquivo PHP.ini, altere a linha em PHP.ini – Se sua linha mostrar 64M tente 256M:
memory_limit = 256M
Editar arquivo .htaccess
O .htaccess é um arquivo importante com regras de acesso e URL que pode ser encontrado na raiz da instalação do WordPress.
Se não tiver um arquivo .htaccess lá, você pode ir até Configurações > Links Permanentes e clicar no botão “Salvar” para gerar esse arquivo. (Use nome do post como opção mais amigável, preferencialmente)
Então, se você não tiver acesso ao PHP.ini, tente adicionar isso a um arquivo .htaccess:
php_value memory_limit 256M
Esses são procedimentos mais técnicos mas você pode obter ajuda com seu provedor de hospedagem, falar comigo ou solicitar ajuda especializada.
Normalmente tudo isso pode ser feito usando o gerenciador de arquivos do cPanel ou, se preferir, usando um cliente FTP – como o Filezilla.
Fazer Upgrade do Plano de Hospedagem
Claro que cada tipo de hospedagem terá uma quantidade específica de recursos, mas em alguns casos, esses recursos podem se tornar insuficientes para seu website.
Assim, se você tentou aumentar o limite de memória do seu site mas não obteve sucesso, o primeiro passo é analisar a quantidade de memória oferecida pelo seu plano de hospedagem atual.
Você pode encontrar essa informação no site do provedor ou mesmo no painel de hospedagem – ou então fale diretamente com seu host para obter essa informação.
No entanto, se atingiu o limite máximo de memória, mas ainda está obtendo o erro de limite de memória no WordPress, a única opção é trocar de plano ou hospedagem.
Se você têm um plano de hospedagem compartilhada, pode ser o momento de atualizar para um Servidor Virtual Privado (VPS) ou para uma Cloud, que oferecem mais espaço e recursos.
Dependendo do host, você pode ter um plano flexível, onde facilmente aumenta os recursos alocados para o seu site, conforme necessário.
A boa notícia é que a maioria oferece migrações gratuitas, ou seja, você pode mover seu site para uma nova hospedagem e resolver rapidamente o erro de limite de memória WordPress.
Se você precisa de uma hospedagem bem otimizada para o WordPress, recomendo a Kinsta – Mas, na maioria dos projetos que não precisam de muitos recursos, recomendo a Hostgator ou a Hostinger.
Espero que esse guia tenha ajudado você! Ajudou? Deixe um comentário abaixo… 👍
78 respostas
يتجلى تفاني المصنع في الجودة في الأداء المتفوق لأنابيب HDPE ، والمعروفة بقوتها ومتانتها الاستثنائية.
عندما يتعلق الأمر بأنابيب uPVC ، فإن مصنع إيليت بايب Elite Pipe يضع معايير عالية من خلال منتجاته المصممة بدقة والتي توفر حلول سباكة وري موثوقة وخالية من التسرب.
The factory’s uPVC fittings are designed with meticulous attention to detail, ensuring secure and tight connections that minimize the risk of leaks or failures. Elitepipe Plastic Factory
child porn
child porn
Information that is shared is very valuable. I wanted to thank the author for sharing this work with me because I really enjoyed reading it. I am really appreciative that you sent me this blog post. Again, thank you. It’s awesome.
How charming! You’ve created an absolutely amazing post here. I sincerely appreciate you sharing these details.
very informative articles or reviews at this time.
I just could not depart your web site prior to suggesting that I really loved the usual info an individual supply in your visitors Is gonna be back regularly to check up on new posts
Just wish to say your article is as surprising The clearness in your post is just cool and i could assume youre an expert on this subject Fine with your permission allow me to grab your RSS feed to keep updated with forthcoming post Thanks a million and please keep up the enjoyable work
I do believe all the ideas you’ve presented for your post. They are really convincing and will certainly work. Nonetheless, the posts are too short for novices. May just you please lengthen them a little from subsequent time? Thanks for the post.
helloI really like your writing so a lot share we keep up a correspondence extra approximately your post on AOL I need an expert in this house to unravel my problem May be that is you Taking a look ahead to see you
I was recommended this website by my cousin I am not sure whether this post is written by him as nobody else know such detailed about my trouble You are amazing Thanks
Normally I do not read article on blogs, however I would like to say that this write-up very forced me to try and do so! Your writing style has been amazed me. Thanks, quite great post.
What i do not understood is in truth how you are not actually a lot more smartly-liked than you may be now. You are very intelligent. You realize therefore significantly in the case of this topic, produced me individually imagine it from numerous numerous angles. Its like men and women don’t seem to be fascinated until it is one thing to do with Woman gaga! Your own stuffs nice. All the time care for it up!
Nice blog here! Also your site loads up very fast! What host are you using? Can I get your affiliate link to your host? I wish my site loaded up as quickly as yours lol
Hello my loved one! I want to say that this post is amazing, great written and include almost all significant infos. I would like to look extra posts like this.
I liked it as much as you did. Even though the picture and writing are good, you’re looking forward to what comes next. If you defend this walk, it will be pretty much the same every time.
I liked it as much as you did. Even though the picture and writing are good, you’re looking forward to what comes next. If you defend this walk, it will be pretty much the same every time.
Its like you read my mind You appear to know a lot about this like you wrote the book in it or something I think that you could do with some pics to drive the message home a little bit but instead of that this is fantastic blog An excellent read I will certainly be back
Hello my loved one I want to say that this post is amazing great written and include almost all significant infos I would like to look extra posts like this
I loved as much as you will receive carried out right here. The sketch is attractive, your authored material stylish. nonetheless, you command get got an impatience over that you wish be delivering the following. unwell unquestionably come more formerly again since exactly the same nearly a lot often inside case you shield this hike.
hiI like your writing so much share we be in contact more approximately your article on AOL I need a specialist in this area to resolve my problem Maybe that is you Looking ahead to see you
Experience the joy of hassle-free online shopping at your fingertips. Our e-commerce site brings you a vast selection of products, coupled with secure transactions and speedy delivery
Welcome to the future of online shopping! Our e-commerce platform is a virtual storefront where you can explore, compare, and effortlessly purchase a wide array of products at the click of a button
hello!,I like your writing very so much! proportion we keep up a correspondence extra approximately your post on AOL? I need an expert in this space to unravel my problem. May be that is you! Taking a look forward to see you.
Grateful for this, mandatory reading.
Essential for growth, thanks for sharing.
🌟 Incredible, this is positively insightful! I’m grateful for the work you put into sharing this invaluable knowledge. I always exciting to discover meticulously written and insightful content like this. Continue the amazing work! 🔥👏💯
It was great seeing how much work you put into it. Even though the design is nice and the writing is stylish, you seem to be having trouble with it. I think you should really try sending the next article. I’ll definitely be back for more of the same if you protect this hike.
Amazing, this article definitely opened my eyes to fresh ideas! 😮 Your observations are not only mind-blowing but also extremely relevant in our times. I’m absolutely captivated with the intensity of your discussion and the way you’ve articulated your points. Keep up the excellent work! 👏 Can’t wait to read more of your posts. This has undoubtedly lifted my spirits and stimulated some engaging thoughts. 🌟🚀 #Inspired #ThoughtLeader
So excited to share my thoughts here! 🌟 This content is a breath of fresh air, blending creativity with insight in a way that’s engrossing and informative. Every detail seems thoughtfully designed, exhibiting a deep appreciation and passion for the subject. It’s rare to find such a perfect blend of information and entertainment! Major applause to everyone involved in creating this masterpiece. Your hard work and dedication are clearly evident, and it’s an absolute joy to witness. Looking forward to seeing more of this fantastic work in the future! Keep rocking us all! 🚀👏💫 #Inspired #CreativityAtItsBest
Incredibly enthusiastic to share my thoughts here! 🌟 This content is astonishingly innovative, blending creativity with insight in a way that’s engrossing and informative. Every detail seems thoughtfully designed, exhibiting a deep grasp and passion for the subject. It’s extraordinary to find such a perfect blend of information and entertainment! Major applause to everyone involved in creating this masterpiece. Your hard work and dedication shine brightly, and it’s an absolute joy to witness. Looking forward to seeing more of this fantastic work in the future! Keep amazing us all! 🚀👏💫 #Inspired #CreativityAtItsBest
sildenafil 50mg canada
🚀 Wow, blog ini seperti perjalanan kosmik meluncurkan ke galaksi dari kemungkinan tak terbatas! 🌌 Konten yang mengagumkan di sini adalah perjalanan rollercoaster yang mendebarkan bagi imajinasi, memicu kagum setiap saat. 💫 Baik itu teknologi, blog ini adalah harta karun wawasan yang inspiratif! #TerpukauPikiran Terjun ke dalam petualangan mendebarkan ini dari penemuan dan biarkan imajinasi Anda berkelana! 🚀 Jangan hanya membaca, alami kegembiraan ini! #BahanBakarPikiran Pikiran Anda akan bersyukur untuk perjalanan mendebarkan ini melalui alam keajaiban yang menakjubkan! 🌍
I loved as much as youll receive carried out right here The sketch is tasteful your authored material stylish nonetheless you command get bought an nervousness over that you wish be delivering the following unwell unquestionably come more formerly again since exactly the same nearly a lot often inside case you shield this hike
ben bir yeteneksiz orospu cocuguyum
My brother suggested I might like this website He was totally right This post actually made my day You cannt imagine just how much time I had spent for this information Thanks
http://www.bisound.com/forum/showthread.php?p=609495#post609495
https://chelyabinsk.eurooptic.ru/about/forum/user/16032/
http://brilliance.ru/forum/viewtopic.php?f=6&t=3438
hello!,I like your writing very so much! proportion we keep up a correspondence extra approximately your post on AOL? I need an expert in this space to unravel my problem. May be that is you! Taking a look forward to see you.
https://boi.instgame.pro/forum/index.php?topic=24322.0
https://njt.ru/forum/user/148551/
http://forum.persona-clinic.kz/viewtopic.php?f=24&t=115605
https://www.freelegal.ch/index.php?title=Utilisateur:ChadwickRaley
greate post i love it..
http://dianov.bget.ru/forum/thread53036.html#1207526
http://mastrerkon.ru/forum/viewtopic.php?f=28&t=18119
http://www.jeromebaray.com/afm/wiki/index.php/Utilisateur:AishaSkeats92
I recently stumbled upon this super website, an oasis for fans. The owner has a real knack for producing compelling content that hits the mark every time. I’m thrilled to have found this site and can’t get enough of what they deliver.
Excellent write-up
Para QuГ© Sirve La Cialis
I apologise, but it not absolutely approaches me. Who else, what can prompt?
Cialis 5 mg prezzo cialis prezzo tadalafil 5 mg prezzo
neurontin dosing for neuropathic pain
Новые слоты на деньги
Новые автоматы на деньги
child porn
escitalopram oxalate coupon
cymbalta vs citalopram
Your posts always provide me with a new perspective and encourage me to look at things differently Thank you for broadening my horizons
cozaar and aldactone
Your post gave me hope when I needed it most. Thank you for your courage.
Your words of wisdom have the power to change lives. Thank you for sharing your insight.
another name for depakote
ddavp post surgery
Wow that was unusual. I just wrote an incredibly long comment but after I clicked submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Anyway, just wanted to say excellent blog!
csgo gambiling https://siliconandhra.org/art/the-thrilling-world-of-cs-go-gambling-websites_5.html cs2 deposit skins
For most recent news you have to visit internet and on world-wide-web I found this web page as a best site for hottest updates.
https://clients1.google.com.co/url?sa=t&url=https://didvirtualnumbers.com/de/
It’s remarkable designed for me to have a site, which is helpful for my knowledge. thanks admin
https://toolbarqueries.google.com.ua/url?sa=t&url=https://hottelecom.biz/hi/
taking 100 mg cozaar with a damaged heart coused me to have a heart attak
citalopram reviews for anxiety
Fully resonate with the sentiments shared above – this post is a gem!
side effects depakote
I was recommended this website by my cousin I am not sure whether this post is written by him as nobody else know such detailed about my trouble You are amazing Thanks
ddavp intranasal instructions
Your posts always provide me with a new perspective and encourage me to look at things differently Thank you for broadening my horizons
Your posts always provide me with a new perspective and encourage me to look at things differently Thank you for broadening my horizons
Your posts always provide me with a new perspective and encourage me to look at things differently Thank you for broadening my horizons
augmentin and sun
ezetimibe en simvastatine