PHP Allowed Memory Size Exchausted Fatal Error PHP memória tamanho permitido Exchausted erro fatal
A functional PHP script returns the following error either on the web page or in Apache error log file when it exchausted and used up the default memory requirement of 8 MB memory allocation: Um funcional PHP script retorna o seguinte erro tanto na página Web ou no arquivo log Apache erro quando se exchausted e utilizadas até o padrão de exigência de memória 8 MB de memória atribuição:
PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate … bytes) in … PHP Erro fatal: Permitido dimensão da memória do 8388608 bytes esgotado (tentou atribuir… bytes) em…
The error normally occurs when PHP tries to process a big database records or when importing or exporting. O erro ocorre normalmente quando o PHP tenta processar um grande banco de dados ou registros ao importar ou exportar. To solve the error, there are two resolutions. Para resolver o erro, existem duas resoluções. One is to change and increase the memory limit of the particular PHP script by adding or including an additional line at the top of the script: Uma delas é a mudança e aumentar o limite de memória especialmente a PHP script, acrescentando ou incluindo uma linha adicional no topo do script:
ini_set(”memory_limit”,”16M”); ini_set ( "memory_limit", "16M");
You can assign the memory limit to any amount you like by changing the 16M to other number, such as 12M or 24M. Você pode atribuir a memória limite para qualquer quantia que quiser, alterando o número 16M para outros, como a 24 m ou 12M. 16M will set the memory limit to 16 megabytes. 16M irá definir o limite de 16 megabytes de memória. If this doesn’t work and the PHP error still appearing, increase the memory limit until the PHP scripts running perfectly or the limit of your system hardware. Se isto não funcionar e PHP o erro continuar aparecendo, aumentar o limite até que a memória funcionando perfeitamente PHP scripts ou o limite de seu sistema de hardware.
To change the memory allocation limit permanently for all PHP scripts running on the server, modify the PHP.INI configuration file of the server (location depending on your OS and installation method). Para alterar o limite alocação de memória permanente para todos os scripts PHP rodando no servidor, modificar o arquivo de configuração do php.ini do servidor (dependendo da sua localização e método de instalação SO). Search for memory_limit after opening the file in an editor. Buscar memory_limit depois de abrir o arquivo em um editor. If the memory_limit doesn’t exist, add the following line. Se o memory_limit não existir, adicione a seguinte linha. If it’s there, modify the value of the memory_limit: Se ela estiver lá, modificar o valor da memory_limit:
memory_limit = 12M memory_limit = 12M
The 12M sets the limit to 12 megabytes (12582912 bytes). A 12M estabelece o limite de 12 megabytes (12582912 bytes). Change to the value you desirable. Mudar para o valor que você desejável.
An alternative way is to modify your PHP scripts that generate the error for more efficiency and better data handling. Uma forma alternativa é a de modificar o seu PHP scripts que geram o erro para mais eficiência e melhores dados manuseio.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Esta é uma página traduzida máquina que é fornecida "como está" sem garantia. Machine translation may be difficult to understand. A tradução automática pode ser difícil de compreender. Please refer to Por favor, consulte a original English article Inglês original article whenever possible. sempre que possível.
Share and contribute or get technical support and help at Compartilhe e contribuir ou obter suporte técnico e ajudar a My Digital Life Forums Minha vida digital Fóruns .
Related Articles Artigos relacionados
- PHP Parse Error: syntax error, unexpected $end PHP Parse Error: syntax error, inesperada $ final
- gmmktime Error in WordPress and MagpieRSS gmmktime Erro em WordPress e MagpieRSS
- How to Customize, Modify or Change WordPress Database Connection Error Page How to customize, modificar ou alterar WordPress database Erro de conexão página
- PHP Scripts open_basedir Restriction in Effect Error PHP scripts open_basedir restrição em vigor erro
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 erro ao exportar Database
- Comments and Comment Blocks in PHP Observações e comentários Blocos em PHP
- Enable MySQL InnoDB Storage Engine Support in XAMPP Installation Ativar MySQL motor de armazenamento InnoDB apoio na instalação XAMPP
- PHP 5 Unable to Open HTTP Request Stream with fopen or fsockopen Functions PHP 5 não foi possível abrir a solicitação HTTP Stream fopen ou fsockopen Funções
- Spb Finance Synchronization Error in Microsoft ActiveSync Spb Finance sincronização erro no Microsoft ActiveSync
- Joomla Direct Access to This Location Is Not Allowed Error Joomla acesso directo a este local não é permitido erro













December 19th, 2007 09:58 19 de dezembro de 2007 09:58
I have same problem with yours. Tenho mesmo problema com o seu. Can this problem solved by editing any wordpress file? Pode este problema resolvido por qualquer edição wordpress arquivo? or…. ou….
without configuring php.ini? sem configuração php.ini?
thanks before graças antes
January 27th, 2008 17:35 27 de janeiro de 2008 17:35
I follow your instruction by modifying php.ini and it works. Eu acompanhar sua instrução, alterando php.ini e ele funciona. Thanks for sharing this information. Obrigado por compartilhar estas informações.
January 31st, 2008 11:20 31 de janeiro de 2008 11:20
Exactly what I was looking for to solve my problems! Exatamente o que eu estava procurando para resolver meus problemas! Thanks for the simple and clear instruction! Obrigado pela simples e clara instrução!
February 16th, 2008 19:50 16 de fevereiro de 2008 19:50
thanks obrigado
March 6th, 2008 10:32 6 de março de 2008 10:32
After trying many solutions in order to get Wordpress to co-operate with Microsoft live writer. Depois de experimentar várias soluções, a fim de obter Wordpress a cooperar com a Microsoft escritor vivo. I finally came here and after editing “/wp-admin/includes/image.php”, the problem was solved. Eu finalmente veio aqui e após a edição "/ wp-admin/includes/image.php", o problema foi resolvido.
I just needed to add… Eu apenas preciso de acrescentar…
ini_set(”memory_limit”,”12M”); ini_set ( "memory_limit", "12M");
… right under the <?php tag … Direito ao abrigo do <? Php tag
May 1st, 2008 13:34 1 de maio de 2008 13:34
where is PHP.INI location??? php.ini local onde está?
May 22nd, 2008 11:15 22 de maio de 2008 11:15
I have ever got the same problem, but this ini_set(”memory_limit”,”12M”); line could not solved my problems. Eu nunca obteve o mesmo problema, mas esta ini_set ( "memory_limit", "12M"); linha não poderia resolver o meu problema. I just removed all waste plugin. Eu apenas removidos todos os resíduos plugin. And walah, It worked. E walah, Funcionou.