Crons are encountering an error

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

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.)

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%.