My Mautic version is: 2.16.0
My PHP version is: Irrelevant
My problem is: I cannot update to Mautic 2.16.2 nor to 2.16.1.
The error is always the same:
Type error: Argument 1 passed to Mautic\CoreBundle\Helper\LanguageHelper::__construct() must be an instance of Mautic\CoreBundle\Helper\PathsHelper, instance of Mautic\C
oreBundle\Factory\MauticFactory given, called in /var/www/[redacted]/public_html/app/cache/prod/appProdProjectContainer.php on line 11412
Steps I have tried to fix the problem:
The first time the error appeared was migrating from 2.16.0 > 2.16.2.
Then I restored a snapshot taken before starting trying to upgrade and tried again to upgrade to version 2.16.1
php public_html/app/console mautic:update:apply --update-package=2.16.1-update.zip
The same error happened.
How can I migrate to a new version of Mautic? Any ideas?