XF 2.3 Admin Communications > Notices unable to be accessed

TheLaw

Well-known member
An odd problem persists. I cannot access the admin control panel area Communications > Notices which yields a 500 error and spits out the following in the log. Increasing the allowed memory size makes no difference to what is shown in the log (which can be 3GB and still the same.) Using cloudflare for nameservers and has never been a problem. Cleared the cache there. Rebuilt all caches on XF, no luck. Out of possible solutions at the moment.

Code:
 [proxy_fcgi:error] [pid 1486433:tid 1486440] [client x.x.x.x:64943] AH01071: Got error 'PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 12288 bytes) in /home/mysite/public_html/src/XF/Db/Mysqli/Statement.php on line 134; PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /home/mysite/public_html/src/XF/Error.php on line 1', referer: https://www.mysite.com/admin.php?users/alert
 
Unless you have a really huge server allowing each PHP script to consume up to 3GB of RAM might be a little generous! The 134217728 bytes is the default 128MB (MiB) for PHP. Any change to:
PHP:
memory_limit = 128M
in your php.ini file should be reflected in the log message if the change has taken, so if your logs are still saying "Allowed memory size of 134217728 bytes exhausted" that suggests PHP is not picking up the change. I know it sounds silly, but just double check for typos in the php.ini setting and that you've restarted whatever is running your PHP (php-fpm, etc). What is the "Server environment report" on the XF admin control panel showing as for PHP memory_limit? Does that reflect the set 3GB limit per script?

Since your memory allocation isn't a lot over the 128MiB you should find a modest increase say:
PHP:
memory_limit = 160M
In php.ini would I have thought fix things with a reasonable overhead.
 
Last edited:
Thank you for your response. He're's the oddest part. It was set for a higher limit a long time ago.

Server Environment Report says 128M, which is why I even went to a support tech at my host who changed the variables independently too and also wondere whether XF was somehow limiting the amount of allowed RAM. I rebuilt all the caches at cloudflare (which I'm using for DNS) and in XF, just to try to rule out everything. But I'm wondering if it has to do with the new control panel that was installed because that would be very odd.... Hmmm.... I'll look into this and report back here as it would be a very useful bit of info to share with the community.
 
Back
Top Bottom