# Crons are encountering an error

**URL:** <https://forum.mautic.org/t/crons-are-encountering-an-error/17179>\
**Category:** Product Support\
**Created:** [November 27, 2020, 7:14am UTC](https://forum.mautic.org/t/crons-are-encountering-an-error/17179 "2020-11-27T07:14:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robm/32/260_2.png) [@robm](https://forum.mautic.org/u/robm)\
**Post date:** [November 27, 2020, 7:14am UTC](https://forum.mautic.org/t/crons-are-encountering-an-error/17179/1 "2020-11-27T07:14:13Z")

</div>

**Your software**  
My Mautic version is: 3.1.2  
My PHP version is: 7.2.34  
My Database type and version is: MySql

**Your problem**  
My problem is: I set up a new mautic and added the crons as usual, but I am getting an error. The same error for all crons.

In GenerationsMigrationsCommand.php line 47  
Attempted to load class “Abstract Command” from namespace “Doctrine\DBAL\Migrations\Tools\Console\Command”.

Did you forget a “use” statement for e.g. “Pheanstalk\Command\AbstractCommand”, “Intervention\Image\Commands\AbstractCommand”, “Doctrine\ORM\Tools\Console\Command\SchemaTool\AbstractCommand” or “Doctrine\Migrations\Tools\Console\Command\AbstractCommand”?

These errors are showing in the log:  
No errors in log

Steps I have tried to fix the problem:  
None as I have no idea what all this means

---

<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:** [November 27, 2020, 3:28pm UTC](https://forum.mautic.org/t/crons-are-encountering-an-error/17179/2 "2020-11-27T15:28:51Z")

</div>

Do the crons run properly?  
If not could you plz run your cron command in SSH and put the output here? And also copy the cron command here, when you used (You can change some characters to X if its sensitive.)

---

<div class="post-metadata">

**Author:** ![robm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robm/32/260_2.png) [@robm](https://forum.mautic.org/u/robm)\
**Post date:** [November 27, 2020, 3:42pm UTC](https://forum.mautic.org/t/crons-are-encountering-an-error/17179/3 "2020-11-27T15:42:59Z")

</div>

Thnks Joeyk,

I think the issue was caused when I ran the std upgrade script (for version 2) on version 3 in an attempt to solve some other issues. That screwed up the app.

I ended up re installing the base code and pointing it to the original database and all is now 100%.
