Journal of a Web Professional in Brussels

A fix for wordpress and "Fatal error: Allowed memory size"

It happened me twice and maybe it happened to you (hence this post): i would install a plugin (like Relevanssi or Search Unleashed), which would break WordPress or not function like i want it, desactivate it, at which point WordPress goes berseck.
everytime i would edit or add a post or page, i would get this error message.

PHP:
  1. Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 587403 bytes) in /wp-includes/wp-db.php

The best solution i 've had so far is to increase php memory limit to a high value. Not clean, i know, but it works.
So as not to destroy the fix whenever you upgrade WordPress, put it in your wp-config.php file.

PHP:
  1. ini_set("memory_limit","365M");

The Conversation

One Response to A fix for wordpress and "Fatal error: Allowed memory size"

  1. Pingback: A fix for wordpress and "Fatal error: Allowed memory size" | WebDino.net

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Belgians do IT better _