Fatal error: Allowed memory size exhausted

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

Fatal error: Allowed memory size exhausted

Post 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
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Fatal error: Allowed memory size exhausted

Post by josh »

It needs more memory, just increase the memory limit like you were suggested
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

Re: Fatal error: Allowed memory size exhausted

Post 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?
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Fatal error: Allowed memory size exhausted

Post by josh »

memory_limit and I'd try first 32MB, failing that I'd goto 64, etc... until it works
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Fatal error: Allowed memory size exhausted

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Fatal error: Allowed memory size exhausted

Post 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.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Fatal error: Allowed memory size exhausted

Post by pickle »

I don't think these boards use 33 MB. I think we're just using 3.0.1 though.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Fatal error: Allowed memory size exhausted

Post 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
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Fatal error: Allowed memory size exhausted

Post by pickle »

Actually we're running 16M
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply