Fatal Error: allowed memory size of 33554432 exhausted

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
Locked
zzafio
Registered User
Posts: 38
Joined: Wed May 03, 2006 12:39 pm
Location: Cordoba Spain (ex Cheltenham)

Fatal Error: allowed memory size of 33554432 exhausted

Post by zzafio » Sat Feb 13, 2016 3:27 pm

Support Request Template
What version of phpBB are you using? phpBB 3.1.7-pl1
What is your board's URL? http://sloe.biz/pip/
Who do you host your board with? clook.net
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
Do you have any extensions installed? No
What version of phpBB3 did you update from? phpBB 3.1.5
What styles do you currently have installed? prosilver
What language(s) is your board currently using? English
Which database type/version are you using? MySQL 5
What is your level of experience? New to PHP and phpBB
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? I updated to 3.1.7-pl1 using complete new package.
Please describe your problem. Currently the forum appears correctly on my macbookpro, but I get the following memory error message on iPad and iPhone:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) in /home/sloe/public_html/pip/phpbb/cache/service.php on line 96
Generated by SRT Generator

The forum at sloe.biz/pip/ seems to work fine on my macbookpro, but throws the memory error message on iPad and iPhone:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) in /home/sloe/public_html/pip/phpbb/cache/service.php on line 96

I have a second forum (same host, different cPanel) which seems perfect despite the same update procedure.
"Don't write dirty words on walls
if you can't spell ..." (Tom Lehrer
)

User avatar
Solidjeuh
Registered User
Posts: 522
Joined: Wed Oct 06, 2010 11:20 pm
Location: Aalst / Belgium
Name: Andy Dm
Contact:

Re: Fatal Error: allowed memory size of 33554432 exhausted

Post by Solidjeuh » Sat Feb 13, 2016 3:51 pm

Did you clear the forum cache?
I don't suffer from insanity. I enjoy every minute of it.

zzafio
Registered User
Posts: 38
Joined: Wed May 03, 2006 12:39 pm
Location: Cordoba Spain (ex Cheltenham)

Re: Fatal Error: allowed memory size of 33554432 exhausted

Post by zzafio » Sat Feb 13, 2016 4:11 pm

The cache on my different devices has been cleared - but I can´t see anywhere to clear cache in the forum ACP itself. Where can I do this? Thanks.
"Don't write dirty words on walls
if you can't spell ..." (Tom Lehrer
)

User avatar
Lumpy Burgertushie
Registered User
Posts: 66471
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Fatal Error: allowed memory size of 33554432 exhausted

Post by Lumpy Burgertushie » Sat Feb 13, 2016 4:13 pm

main page of admin panel. "purge cache" button
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

zzafio
Registered User
Posts: 38
Joined: Wed May 03, 2006 12:39 pm
Location: Cordoba Spain (ex Cheltenham)

Re: Fatal Error: allowed memory size of 33554432 exhausted

Post by zzafio » Sat Feb 13, 2016 4:30 pm

Thanks, couldn't see for looking!

Clearing cache has now removed the error message, but the screen is now blank white on iPad mini retina. The MBP displays the forum correctly, as before.
"Don't write dirty words on walls
if you can't spell ..." (Tom Lehrer
)

User avatar
Solidjeuh
Registered User
Posts: 522
Joined: Wed Oct 06, 2010 11:20 pm
Location: Aalst / Belgium
Name: Andy Dm
Contact:

Re: Fatal Error: allowed memory size of 33554432 exhausted

Post by Solidjeuh » Sat Feb 13, 2016 5:27 pm

I think something went wrong with the update.
Not sure what..
I don't suffer from insanity. I enjoy every minute of it.

User avatar
cprgolds
Registered User
Posts: 446
Joined: Thu Oct 11, 2007 5:49 am
Location: Portland, Oregon

Re: Fatal Error: allowed memory size of 33554432 exhausted

Post by cprgolds » Sat Feb 13, 2016 6:34 pm

Sounds like you have hit a memory limit for PHP.

There are several ways to remedy this, depending on what server access you have.

To confirm, try adding a line to your config.php file:

Code: Select all

@ini_set('memory_limit', '48M');
If you still get the error, try higher values.

User avatar
cprgolds
Registered User
Posts: 446
Joined: Thu Oct 11, 2007 5:49 am
Location: Portland, Oregon

Re: Fatal Error: allowed memory size of 33554432 exhausted

Post by cprgolds » Sat Feb 13, 2016 7:05 pm

And BTW, I get the same error using Chrome on a PC.

zzafio
Registered User
Posts: 38
Joined: Wed May 03, 2006 12:39 pm
Location: Cordoba Spain (ex Cheltenham)

Re: Fatal Error: allowed memory size of 33554432 exhausted

Post by zzafio » Sat Feb 13, 2016 8:03 pm

My host told me how to raise the memory in cPanel (edited the .user.ini file). I tried 48M, then 64M, but with no success.

A change to 128M gets everything working on all devices... but my host says this is way over the norm and should only be used as a short term or test measure. I am concerned there might be something dodgy working away in the background?!

I suppose the question now is: what is causing this abnormal need for memory? The forum is pretty small with a database size of 21 MiB, 2100 users.

www.sloe.biz/pip/ is working right now, but only with the 128M memory setting.
"Don't write dirty words on walls
if you can't spell ..." (Tom Lehrer
)

User avatar
Lumpy Burgertushie
Registered User
Posts: 66471
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Fatal Error: allowed memory size of 33554432 exhausted

Post by Lumpy Burgertushie » Sat Feb 13, 2016 8:11 pm

128MB is not really that much. however, the board shouldn't need that much normally.

I would think it is something on the host's side that is causing this. have no idea what though.


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
Nikola
Registered User
Posts: 284
Joined: Fri Jun 12, 2015 11:47 am
Name: Nikola

Re: Fatal Error: allowed memory size of 33554432 exhausted

Post by Nikola » Sat Feb 13, 2016 8:24 pm

Please note that not many hosts will give users access to actual php.ini file.

If you are on the linux server the actual file you want to edit is located under; /usr/local/lib/
You can reach said file via Putty for example.
"What would happen if the autism gene was eliminated from the genetic pool?

You would have a bunch of people standing around in a cave, chatting and socializing and not getting anything done."

- Dr. Temple Grandin, A Personal Look at Autism and Asperger's Syndrome.

zzafio
Registered User
Posts: 38
Joined: Wed May 03, 2006 12:39 pm
Location: Cordoba Spain (ex Cheltenham)

Re: Fatal Error: allowed memory size of 33554432 exhausted

Post by zzafio » Sun Feb 14, 2016 12:26 pm

My host has said I can continue with the 128M setting if I want, but adds: "though if the scripts are functioning correctly, it should not be necessary".

Any ideas for how to check if scripts are running correctly, or even if any malicious code is present?

I updated with complete new 3.1.7-pl1 core files - but, of course, included my old config, ext, files, images, and styles folders.
"Don't write dirty words on walls
if you can't spell ..." (Tom Lehrer
)

Locked

Return to “[3.1.x] Support Forum”