I have a site that was Craft 3.4 and Commerce 3.x (unsure of exact version).
Locally, I've been spent a big chunk of today updating to the latest versions of everything and making sure all still works OK.
In preparation of upgrading the live site, I thought I'd get the site running locally on another machine. The thought being that I could pull the project repo, download a backup of the live database, run
composer install, run
php craft migrate/all, then the site would be upgraded to the latest versions of everything.
This appears not to be the case. I presume that there's more to just installing plugin updates then following the upgrade process of Craft 3 to 4?
composer install I get the error:
An Error occurred while handling another error:
yii\base\UnknownPropertyException: Setting unknown property: craft\models\Info::configMap in /var/www/html/vendor/yiisoft/yii2/base/Component.php:209
Composer finishes installing all files, the error happens when visiting the site after composer finishes. Deleting the composer.lock and vendor folder before running
composer install again makes no difference. Running any
php craft ... command also gives the same error in the terminal.
Any there any other methods I can upgrade the live site in little time? I was hoping I could spend most of the time upgrading locally, then dump the live database locally (so that it's current), upgrade the database, then import to the live host. The site is also using Craft Commerce. Upgrading that to Commerce 4.x took over an hour to run the upgrade process as per the documentation.