moz1966 Posted September 15, 2014 Report Share Posted September 15, 2014 I run the maintenence script every hour, but every day the midnight run fails with the following message: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in [my homedir path]/lib/pear/XML/RPC.php on line 2005 I assume the email report run has something to do with it, though the emails are sucessfully sent. I have raised the value of memory_limit in php.ini to 256M, but still this exact message occurs. Can anyone help? Quote Link to comment Share on other sites More sharing options...
Snoork Hosting Posted September 16, 2014 Report Share Posted September 16, 2014 The maintenance script is trying to utilize 135 MB of memory, but it's failing due to the PHP memory limit being too low. You need to increase the PHP memory limit at the server level and restart Apache for the changes to apply. Some hosting providers don't allow you to add your own custom php.ini and make changes to it, so you may need to contact your hosting provider and have them increase the limit for you if you are hosting your revive on shared hosting. Quote Link to comment Share on other sites More sharing options...
moz1966 Posted September 16, 2014 Author Report Share Posted September 16, 2014 As I said, I raised memory_limit to 256MB and running phpinfo confirms this has taken, yet I am still getting the same error showing the 135MB number. Is there somethign else limiting the memory here, or should I be changing another parameter? Quote Link to comment Share on other sites More sharing options...
Snoork Hosting Posted September 17, 2014 Report Share Posted September 17, 2014 There is no other parameter, as you are limiting the PHP memory limit. You may be setting up something incorrectly, if you are still getting the error message after changing it to 256 MB. Make sure you do not have any php.ini files inside your data files where your Revive files are. Quote Link to comment Share on other sites More sharing options...
moz1966 Posted September 18, 2014 Author Report Share Posted September 18, 2014 I managed to up the memory limit by changing the hardcoded lilmit in memory.php... but I am still getting the error (albeit with the higher memory limit in the error and a different line number). It now says: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes) in [my homedir path]/lib/pear/XML/RPC.php on line 2005 Should the maintenence task really be using 256M of memory, especially as it is a beta test site with about 5 test ads on it and little in the way of impressions/clicks? Quote Link to comment Share on other sites More sharing options...
fwu Posted March 14, 2015 Report Share Posted March 14, 2015 Im also having this problem. Isnt the limit of php memory 256 mb? So revive its trying to allocate more? Also there is no sense about reserving so much menory to a simple task. I also has just about 10 ads. The problem started since I started using video in line ads. May this be the problem? thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.