• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Fatal error: Allowed memory size

#1
Hi

I've started getting this error only when logged-in as Administrator:

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 8208 bytes) in /var/www/html/virtual/site-name/www/forum-folder/library/XenForo/Permission.php on line 80

any clue?
 
#4
During any particular action?

How many usergroups and nodes do you have?
We found the issue, maybe it is useful for others. This was a ported vB 3.8 big forum, which had 46.000 spam posts. On each page load, the system "loaded" each of this ones into the Mod Queue, causing the memory to exhaust.
The only solution we found was to perform a MySql do hard delete all those posts at once.
 

Jake Bunce

XenForo moderator
Staff member
#5
We found the issue, maybe it is useful for others. This was a ported vB 3.8 big forum, which had 46.000 spam posts. On each page load, the system "loaded" each of this ones into the Mod Queue, causing the memory to exhaust.
The only solution we found was to perform a MySql do hard delete all those posts at once.
http://xenforo.com/community/threads/finally-went-live-now-memory-issues.32173/#post-367773

I don't recommend hard deleting with queries. Soft deletes are safer.