This error message occurs when a functional PHP script exceeds the default memory allocation which is only 8MB limit.
To manually allocate your required memory size include this at the top of your script.
ini_set(“memory_limit”, “12M”);
The 12M sets the limit to 12 mb, if this doesn’t work just increase the memory limit till it fits your scripts requirements.
You can also set the memory limit permanently for all PHP scripts by adding or editing the php.ini file.
memory_limit = 12M
However, don’t make this your “usual remedy” for your coding practice. This is not a substitue but I rather say to find out how much your scripts eats memory. Your scripts either poorly/badly written that is causing the memory needs. Don’t do this on a live server, I only suggest this doing in your localhost for debugging issues.