Page 1 of 1

Fatal error: Allowed memory size exhausted

Posted: Mon Mar 02, 2009 11:49 pm
by m2babaey
Hi
is it recommended if I change my setting in php.ini ( i have dedicated server, but this is only one of my clients)
what is the problem? here:
I just installed phpBB 3.0.4
when trying to access admin panel I face this error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 144312 bytes) in /home//forum/includes/acm/acm_file.php on line 427
I did nothing with my phpbb. I've just installed it. I have not accessed admin panel yet
many thanks for your help

Re: Fatal error: Allowed memory size exhausted

Posted: Tue Mar 03, 2009 12:34 am
by josh
It needs more memory, just increase the memory limit like you were suggested

Re: Fatal error: Allowed memory size exhausted

Posted: Tue Mar 03, 2009 4:57 am
by m2babaey
thanks for your reply
I should set memory size in php.ini file to 33554432 , right?
also what is the variable name for that and where should I find php.ini file?

Re: Fatal error: Allowed memory size exhausted

Posted: Tue Mar 03, 2009 5:24 am
by josh
memory_limit and I'd try first 32MB, failing that I'd goto 64, etc... until it works

Re: Fatal error: Allowed memory size exhausted

Posted: Tue Mar 03, 2009 9:53 am
by pickle
This looks like a bug/misconfiguration/something wrong. If you just installed phpBB & it doesn't have a massive database to deal with, there's no reason it should be using 33 MB of RAM.

Re: Fatal error: Allowed memory size exhausted

Posted: Tue Mar 03, 2009 2:14 pm
by josh
pickle wrote:there's no reason it should be using 33 MB of RAM.
I agree, but that doesn't mean its not... I wouldn't put it past them. I know Magento != PHPBB, but Magento needs 64MB+, the Joomla plugin virtuemart uses over 256MB.. I agree though that seems oddly high.

Re: Fatal error: Allowed memory size exhausted

Posted: Tue Mar 03, 2009 2:26 pm
by pickle
I don't think these boards use 33 MB. I think we're just using 3.0.1 though.

Re: Fatal error: Allowed memory size exhausted

Posted: Tue Mar 03, 2009 8:38 pm
by Chris Corbyn
pickle wrote:I don't think these boards use 33 MB. I think we're just using 3.0.1 though.
I know there are areas where we were hitting 16MB for "trivial" things. It seems to be anywhere that unicode is used the memory usage just rockets. In our case, trying to send a private message that contained UTF-8 would exhaust memory at 16MB, so AFAIK we raised it to 32MB.

Bad coding probably... it's not going to be down to a lot of class definitions for object-oriented design in phpBB :P

Re: Fatal error: Allowed memory size exhausted

Posted: Wed Mar 04, 2009 10:08 am
by pickle
Actually we're running 16M