Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
390 views
in Q2A Core by

Hi all,

One of my questions on my Q2A site is not loading. The rest are fine.

In the error_log, it shows the following error message(s):

[Sat Apr 12 18:01:05 2014] [error] [client 124.168.120.72] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 86 bytes) in /var/www/qa-include/qa-page-question.php on line 79
 
[Sat Apr 12 18:12:55 2014] [error] [client 124.168.120.72] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 1024 bytes) in /var/www/qa-include/qa-page-question.php on line 80
 
Line 79 is:
 
$parent=($commentfollow['parentid']==$questionid) ? $question : @$answers[$commentfollow['parentid']];
 
Line 80 is:
 
                        $commentsfollows[$key]=$commentfollow+qa_page_q_post_rules($commentfollow, $parent, $commentsfollows, null);
 
Any idea what's happening here? Seems like PHP is hitting it's memory limit on the server but I'm not 100% sure why. That particular question has a few more answers (7) than the rest on the site, so maybe it's something to do with that. Hmmm.
 
Q2A version: 1.5.4

1 Answer

–1 vote
by
 
Best answer
Managed to solve this myself by cleaning up a whole bunch of spam comments on that post id. Seems to be working fine now.
...