Posts Tagged ‘truques’

Fatal error: Allowed memory size of xxxxx bytes exhausted (tried to allocate xxxx bytes) in …/wp-admin/includes/plugin.php on line 4

Thursday, July 31st, 2008

Warning: file_put_contents(/home/mariorui/public_html/qep/querodinheiro/wp-content/plugins/alinks/temp/cache/keyphrases/index.php) [function.file-put-contents]: failed to open stream: Permission denied in /home/mariorui/public_html/qep/querodinheiro/wp-content/plugins/alinks/includes/Alinks/Cacher/File.php on line 313

Warning: file_put_contents(/home/mariorui/public_html/qep/querodinheiro/wp-content/plugins/alinks/temp/cache/posts/index.php) [function.file-put-contents]: failed to open stream: Permission denied in /home/mariorui/public_html/qep/querodinheiro/wp-content/plugins/alinks/includes/Alinks/Cacher/File.php on line 313

Quando estava a criar um novo blog, o Scooters Eléctricas à Venda na Net, ao activar uns plugins, a área de gestão de plugins deixou de funcionar e aparecia-me a mensagem

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 244482 bytes) in /…/wp-admin/includes/plugin.php on line 4”.

Depois de pesquisar um bocado na net, consegui encontrar a solução. Basta editar o ficheiro wp-config.php e inserir o seguinte código, logo a seguir a <?:

ini_set(’memory_limit’,'16M’);

Assim que se grava o ficheiro, a gestão de plugins fica imediatamente acessível J