Cron job produces error_log and prevents cron from functioning

[04-Feb-2024 18:37:01 UTC] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4096 bytes) in /home/abc/public_html/xyz/billing/vendor/composer/autoload_static.php on line 9

  • I have changed the amount of memory to -1.
  • new install from August and I have updated it multiple times from inception. Yesterday I updated to the current version v5.8.19-C153. (I have copied all files and overwrote with the exception of .env.)
  • I contacted the web host and they recommended the -1 approach. They also confirmed the cron job has the correct path variables. They also said the logs are produced to /error_log since nothing was in /storage/logs/laravel.log
    php is on 8.1
  • searched the forums for many hours

Just trying to get the cron working but this error is getting in the way. If I change cron to 5 minutes the error_log reflects the error every 5 minutes.
System Logs are blank in InvoiceNinja so the above error is all I have.
Thanks

Hi,

@david do you have any suggestions?