# Cron is not working due to LazyCollection

**URL:** <https://forum.mautic.org/t/cron-is-not-working-due-to-lazycollection/18683>\
**Category:** Product Support\
**Created:** [March 23, 2021, 6:36pm UTC](https://forum.mautic.org/t/cron-is-not-working-due-to-lazycollection/18683 "2021-03-23T18:36:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pramirez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pramirez/32/1504_2.png) [@pramirez](https://forum.mautic.org/u/pramirez)\
**Post date:** [March 23, 2021, 6:36pm UTC](https://forum.mautic.org/t/cron-is-not-working-due-to-lazycollection/18683/1 "2021-03-23T18:36:51Z")

</div>

**Your software**  
My Mautic version is: v3.3.1  
My PHP version is: PHP Version 7.3.27  
My Database type and version is: MariaDB 10.1

**Your problem**  
My problem is: I try to execute the cron, but it’s not working.

These errors are showing in the log:  
PHP Warning: Class ‘Tightenco\Collect\Support\LazyCollection’ not found in /home/mauticautenticonuevayork/www/vendor/tightenco/collect/src/Collect/Support/alias.php on line 19  
PHP Parse error: syntax error, unexpected ‘=’ in /home/mauticautenticonuevayork/www/vendor/tightenco/collect/src/Collect/Support/LazyCollection.php on line 611

Steps I have tried to fix the problem: I read some topics related but they said that it’s necessary an updated version of the PHP and I have tried with 7.3 and 7.4. It’s a new installation on a dedicated external server.  
Is there any other possible place to look?  
Thanks a lot!

---

<div class="post-metadata">

**Author:** ![pramirez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pramirez/32/1504_2.png) [@pramirez](https://forum.mautic.org/u/pramirez)\
**Post date:** [March 23, 2021, 7:17pm UTC](https://forum.mautic.org/t/cron-is-not-working-due-to-lazycollection/18683/2 "2021-03-23T19:17:46Z")

</div>

I have changed the database to MySQL 5.7 and PHP to 7.4.16  
Apache error:  
PHP Warning: Class ‘Tightenco\Collect\Support\LazyCollection’ not found in /home/mauticautenticonuevayork/www/vendor/tightenco/collect/src/Collect/Support/alias.php on line 19  
PHP Parse error: syntax error, unexpected ‘=’ in /home/mauticautenticonuevayork/www/vendor/tightenco/collect/src/Collect/Support/LazyCollection.php on line 611

---

<div class="post-metadata">

**Author:** ![pramirez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pramirez/32/1504_2.png) [@pramirez](https://forum.mautic.org/u/pramirez)\
**Post date:** [March 24, 2021, 7:10pm UTC](https://forum.mautic.org/t/cron-is-not-working-due-to-lazycollection/18683/3 "2021-03-24T19:10:08Z")

</div>

Hi @silavapi and @joeyk  
This is the updated thread with the problem. I wasn’t able to solve it yet.

Thanks,  
Pedro.

---

<div class="post-metadata">

**Author:** ![pramirez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pramirez/32/1504_2.png) [@pramirez](https://forum.mautic.org/u/pramirez)\
**Post date:** [March 25, 2021, 10:52pm UTC](https://forum.mautic.org/t/cron-is-not-working-due-to-lazycollection/18683/4 "2021-03-25T22:52:21Z")

</div>

I tried to install a fresh Mautic following all the steps with https and the result has been the same:

PHP Warning: Class ‘Tightenco\Collect\Support\LazyCollection’ not found in /home/mauticebvconsulting/www/vendor/tightenco/collect/src/Collect/Support/alias.php on line 19  
PHP Parse error: syntax error, unexpected ‘=’ in /home/mauticebvconsulting/www/vendor/tightenco/collect/src/Collect/Support/LazyCollection.php on line 611

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [March 26, 2021, 7:16am UTC](https://forum.mautic.org/t/cron-is-not-working-due-to-lazycollection/18683/5 "2021-03-26T07:16:48Z")

</div>

Have you seen this thread?

> [@Errors with Cron jobs after updating to Mautic 3](https://forum.mautic.org/t/errors-with-cron-jobs-after-updating-to-mautic-3/15016/11):
>
> Hi @dennisameling, I finally got round to testing the upgrade. I increased the PHP timeout to 480 and it made no difference.

Are you 100% sure you have 7.3+ running?

---

<div class="post-metadata">

**Author:** ![pramirez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pramirez/32/1504_2.png) [@pramirez](https://forum.mautic.org/u/pramirez)\
**Post date:** [March 26, 2021, 3:24pm UTC](https://forum.mautic.org/t/cron-is-not-working-due-to-lazycollection/18683/6 "2021-03-26T15:24:34Z")

</div>

Hi @joeyk

I read the post and I tried to find references of the PHP version in my htaccess. I also run the command -v.

![Captura de pantalla 2021-03-26 a las 16.13.13](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/45c72cff6844a15791dfaed5b2754cb1fe280ab6.png)

In my hosting is also running with PHP 7.4.16:

![Captura de pantalla 2021-03-26 a las 16.22.48](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/2b940cd188d9ae1ca4173fbc06b1710dabeb1bdb.png)

Where can I find this htaccess PHP option?
