Page 1 of 1

Fatal Error: allowed memory size of 33554432 exhausted

Posted: Sat Feb 13, 2016 3:27 pm
by zzafio
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.

Re: Fatal Error: allowed memory size of 33554432 exhausted

Posted: Sat Feb 13, 2016 3:51 pm
by Solidjeuh
Did you clear the forum cache?

Re: Fatal Error: allowed memory size of 33554432 exhausted

Posted: Sat Feb 13, 2016 4:11 pm
by zzafio
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.

Re: Fatal Error: allowed memory size of 33554432 exhausted

Posted: Sat Feb 13, 2016 4:13 pm
by Lumpy Burgertushie
main page of admin panel. "purge cache" button

Re: Fatal Error: allowed memory size of 33554432 exhausted

Posted: Sat Feb 13, 2016 4:30 pm
by zzafio
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.

Re: Fatal Error: allowed memory size of 33554432 exhausted

Posted: Sat Feb 13, 2016 5:27 pm
by Solidjeuh
I think something went wrong with the update.
Not sure what..

Re: Fatal Error: allowed memory size of 33554432 exhausted

Posted: Sat Feb 13, 2016 6:34 pm
by cprgolds
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.

Re: Fatal Error: allowed memory size of 33554432 exhausted

Posted: Sat Feb 13, 2016 7:05 pm
by cprgolds
And BTW, I get the same error using Chrome on a PC.

Re: Fatal Error: allowed memory size of 33554432 exhausted

Posted: Sat Feb 13, 2016 8:03 pm
by zzafio
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.

Re: Fatal Error: allowed memory size of 33554432 exhausted

Posted: Sat Feb 13, 2016 8:11 pm
by Lumpy Burgertushie
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

Re: Fatal Error: allowed memory size of 33554432 exhausted

Posted: Sat Feb 13, 2016 8:24 pm
by Nikola
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.

Re: Fatal Error: allowed memory size of 33554432 exhausted

Posted: Sun Feb 14, 2016 12:26 pm
by zzafio
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.