neaweb6 Posted June 15, 2017 Share Posted June 15, 2017 Hello, I have been trying to figure out why my daily cron suddenly stopped working. It seems as though everything else is executing as it should, just not the daily cron. I ran the cron in terminal and got this output: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4480 bytes) in /path/to/whmcs/vendor/composer/composer/src/Composer/Command/ShowCommand.php on line 114 I'm using PHP 5.6 with 356MB memory limit. Any ideas? 0 Quote Link to comment Share on other sites More sharing options...
earthgirlllc Posted June 18, 2017 Share Posted June 18, 2017 I increased mine to over 500 and the memory error stopped but cron still will not execute daily tasks. 0 Quote Link to comment Share on other sites More sharing options...
kmm2908 Posted July 11, 2017 Share Posted July 11, 2017 @earthgirlllc did you ever get this fixed? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted July 15, 2017 WHMCS Support Manager Share Posted July 15, 2017 Hi, @neaweb6 - The memory issue suggestions that there are two PHP configurations on your server; one applied to the cron job and one applied to files served by the websserver. Please access the server command line as the cron user (on a cPanel server this is usually the account's cPanel username) and execute this command: php -i This will allow you to see the memory limit being applied to the cron job and also the php.ini file you'll need to edit tot increase the limit up to 128MB. For other posters in this thread with more general errors, please run through these troubleshooting guides: * http://help.whmcs.com/m/automation/l/678272-troubleshooting-the-cron-not-completing * http://help.whmcs.com/m/automation/l/683269-advanced-cron-troubleshooting 0 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.