Answers.Body: <p>I always <code>php craft up</code> after composer install, it does migrations, project config apply etc.</p>
  <p>Did you upgrade commerce to the newest version? Did you then also run the commerce upgrade command?</p>
  <p>From docs:</p>
  <blockquote>
  <p>The commerce/upgrade command must be run interactively. It will prompt you to designate or create fields and then migrate content to them.
  You’ll need to run it again in production where you can only designate target fields and migrate content—unless you temporarily disable allowAdminChanges to create fields on the fly in that environment, in which case you’d need to pull your production database down locally afterward and run project-config/write.</p>
  </blockquote>
  <p><a href="https://craftcms.com/docs/commerce/4.x/upgrading.html" rel="nofollow noreferrer">https://craftcms.com/docs/commerce/4.x/upgrading.html</a></p>
  <p>This also need to be run in production to update the database there, after composer install, and php craft up.</p>
  <p>Make sure to have a backup of the site in case something goes wrong!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-09-15T11:57:40.057Z
Answers.LastActivityDate: 2023-09-15T11:57:40.057Z
Answers.UserDisplayName: Syversen
Body: <p>I have a site that was Craft 3.4 and Commerce 3.x (unsure of exact version).</p>
  <p>Locally, I've been spent a big chunk of today updating to the latest versions of everything and making sure all still works OK.</p>
  <p>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 <code>composer install</code>, run <code>php craft migrate/all</code>, then the site would be upgraded to the latest versions of everything.</p>
  <p>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?</p>
  <p>After running <code>composer install</code> I get the error:</p>
  <pre><code>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
  </code></pre>
  <p>Composer finishes installing all files, the error happens when visiting the site after composer finishes. Deleting the composer.lock and vendor folder before running <code>composer install</code> again makes no difference. Running any <code>php craft ...</code> command also gives the same error in the terminal.</p>
  <p>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.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-14T22:31:46.080Z
Comments.Text: You should probably be running `php craft up` instead of `php craft migrate/all`.
Comments.UserDisplayName: Leevi Graham
Tags: <craft3><plugin-craftcommerce><craft4><upgrades>
Title: Big upgrade completed locally, how to upgrade live?
ThreadText: # Big upgrade completed locally, how to upgrade live?
  
  (Asked by: username_0 on 2023-09-14)
  
  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?
  
  After running `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.
  
  **Tags:** craft3, plugin-craftcommerce, craft4, upgrades
  
  > **Comments:**
  > **username_1**: You should probably be running `php craft up` instead of `php craft migrate/all`.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2023-09-15. Score: 1
  
  I always `php craft up` after composer install, it does migrations, project config apply etc.
  
  Did you upgrade commerce to the newest version? Did you then also run the commerce upgrade command?
  
  From docs:
  
  > The commerce/upgrade command must be run interactively. It will prompt you to designate or create fields and then migrate content to them.
  > You’ll need to run it again in production where you can only designate target fields and migrate content—unless you temporarily disable allowAdminChanges to create fields on the fly in that environment, in which case you’d need to pull your production database down locally afterward and run project-config/write.
  
  <https://craftcms.com/docs/commerce/4.x/upgrading.html>
  
  This also need to be run in production to update the database there, after composer install, and php craft up.
  
  Make sure to have a backup of the site in case something goes wrong!
  
  
  ---
  
  