Xoops - Fatal error: Allowed memory size of 8388608 bytes exhausted

aslani

Newbie
Re: Error - Fatal error: Allowed memory size of 8388608 bytes exhausted

Hello
I have a problem about web site first page(xoops)
When user login to the site show this error


Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 44 bytes) in /home/eshtehard/public_html/kernel/object.php on line 175


But when I uninstall some modules then no problem
I don’t know server has problem or my website
Pleas help me
Thanks


:thanks:
 
Last edited by a moderator:


Strider

Administrator
Staff member
It's the problem with PHP's default memory limit, 8388608 bytes or 8 MB. Since some of your modules using large amount of data to process, this limit is reached and getting that error. If you are on a shared host ask your host to change it to 12 MB. Or try the following quick fix.

To the top of your object.php file, just after <? PHP add this line:

ini_set("memory_limit","16M");

Save the file and check.

If you are on a VPS or dedi server find your PHP.ini file and change the memory_limit variable's value from 8M to 16 M.

memory_limit = 12M

Hope this helps..
 

Top