Log in

View Full Version : Fatal error: Allowed memory size of 12582912 bytes exhausted


cloferba
08-23-2009, 12:45 PM
When in try to reply a post...i get this message in a blank page:

Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 311296 bytes) in /var/www/virtual/DOMAIN/htdocs/foro/includes/class_bbcode.php(172) : eval()'d code on line 333

so..i get back to the post and i see that my reply was published...but its not so good if i see this error (and i think all the users view it when they reply a thread)

whats the problem?
i?ve searched line 333 on class_bbcode.php and i only see:

// parse visitor/group/picture message
case 'visitormessage':
case 'groupmessage':
LINE 333 case 'picturecomment':

Lynne
08-23-2009, 03:40 PM
That error indicates that your php doesn't have enough memory allocated to complete the operation. You should increase your memory_limit setting in php.ini to xxM*** or to temporarily up your limits edit your includes/config.php file and add this line right under the <?php line:

ini_set('memory_limit', xx * 1024 * 1024);

*** xx being the next step up in size... if you are currently set to 8MB, up it to 16. If you are set at 16, up it to 32, etc.