XF 1.1 Finally Went Live... Now Memory Issues

JRW-910

Member
I just moved an existing vB forum over to xF and I have having some issues:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /home/site/public_html/library/Zend/Db/Statement/Mysqli.php on line 295

Any ideas?

-JRW
 
@JRW-910

Well that was a pain in the ***. After some very tedious debugging I isolated the source of the memory usage. You have 80,000 items in moderation. When an admin or mod logs in it counts all of those records.

For you I suggest one of these two things:

http://xenforo.com/community/resources/approve-all-moderated-posts-queries.373/
http://xenforo.com/community/resources/soft-delete-all-moderated-posts-queries.371/

That will clear out the queue and fix the memory problem.

I just approved them for now... thanks... this worked perfectly...

-JRW
 
@JRW-910

Well that was a pain in the ***. After some very tedious debugging I isolated the source of the memory usage. You have 80,000 items in moderation. When an admin or mod logs in it counts all of those records.

For you I suggest one of these two things:

http://xenforo.com/community/resources/approve-all-moderated-posts-queries.373/
http://xenforo.com/community/resources/soft-delete-all-moderated-posts-queries.371/

That will clear out the queue and fix the memory problem.
I'd call this a memory issue or a vulnerability.... It wouldn't take much for myself or someone to write bot that joined X site and just report every post.

Ever have one of those long thread such as "last one to post wins" or "What are you doing today?" or "Random Chat" ...... Target one of those and you'd kill a site easily.

edit: Disregard. Provided someone is smart enough to have a time limit between post... This shouldn't be a concern.
 
@JRW-910

Well that was a pain in the ***. After some very tedious debugging I isolated the source of the memory usage. You have 80,000 items in moderation. When an admin or mod logs in it counts all of those records.

For you I suggest one of these two things:

http://xenforo.com/community/resources/approve-all-moderated-posts-queries.373/
http://xenforo.com/community/resources/soft-delete-all-moderated-posts-queries.371/

That will clear out the queue and fix the memory problem.

Yes, but still, this should not "kill" the memory. An improvement can be made hopefully
 
I've seen this a number of times now with imports - the "soft deleted" items pushed into the moderation queue, but in such large volumes that XF crashes when trying to load them all at once.

Is the moderation queue being split into pages in 1.2?
 
@JRW-910

Well that was a pain in the ***. After some very tedious debugging I isolated the source of the memory usage. You have 80,000 items in moderation. When an admin or mod logs in it counts all of those records.

For you I suggest one of these two things:

http://xenforo.com/community/resources/approve-all-moderated-posts-queries.373/
http://xenforo.com/community/resources/soft-delete-all-moderated-posts-queries.371/

That will clear out the queue and fix the memory problem.

Hello Jake!

What will be the query to hard-delete all moderated posts ?

Thank you!
 
The data spans multiple tables as well as the file system (attachments). I don't recommend trying to hard-delete with queries. Soft-delete is easier.

1.2 may have better options for this.

Yes, but still i don't want as an admin browsing forums with lots of soft-deleted.. can you help me get the hard-delete queries? :)
 
@JRW-910

Well that was a pain in the ***. After some very tedious debugging I isolated the source of the memory usage. You have 80,000 items in moderation. When an admin or mod logs in it counts all of those records.

For you I suggest one of these two things:

http://xenforo.com/community/resources/approve-all-moderated-posts-queries.373/
http://xenforo.com/community/resources/soft-delete-all-moderated-posts-queries.371/

That will clear out the queue and fix the memory problem.

I had the same problem - 23k items in the moderation queue. The same solution worked to me, many thanks
 
Top Bottom