cancel
Showing results for 
Search instead for 
Did you mean: 

Cron Job Errors Fatal Error

Cron Job Errors Fatal Error

I believe I now have the paths functioning in my cron job, but I am getting an out of memory error:

 

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3072 bytes) in /home/mysite/public_html/shop/vendor/composer/ClassLoader.php on line 412

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 12288 bytes) in /home/mysite/public_html/shop/vendor/magento/module-deploy/Console/Command/SetModeCommand.php on line 106

 

 

2 REPLIES 2

Re: Cron Job Errors Fatal Error

Hello johannsaf,

 

Increase your memory size in php.ini file up to 128M. If your are using LAMP with php7, apache2 you can found here 

path: /etc/php/7.0/apache2/php.ini

otherwise execute the following command

locate php.ini

 

and change the following line:

memory_limit = 128M

Re: Cron Job Errors Fatal Error

Thank you Manish.  I have increased the memory (up to 2G) and even had customer support try it as well.  It does not seem to have any effect - I still get the fatal error.  I am thinking that it is a problem because I use a shared host.