Answers.Body: <p>With regards to Composer, you are indeed running Commerce 4.6.0.</p>
  <p>However, Craft is trying to keep up, and can't update directly to 4.6.0. The message you are seeing is telling you that Craft wants you to install Commerce 3.4.11 (via Composer), and run all of your updates to <em>that</em> version.</p>
  <p>Once you've done that, you should then be able to circle back and update all the way to 4.6.0, as a completely separate step.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-05-13T20:47:12.980Z
Answers.Text: The thing is that I could not roll back to Craft Commerce v3.4.11 since I upgraded the CraftCMS to v4 and is not compatible with the older version of Craft Commerce.
Answers.UserDisplayName: Mostafa Soufi
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-05-08T18:36:58.443Z
Answers.LastActivityDate: 2024-05-08T18:36:58.443Z
Answers.UserDisplayName: Lindsey D
Body: <p>I recently updated Craft Commerce to version 4.6.0, but now whenever I run any Craft commands or navigate to <code>site.com/admin</code>, I encounter the following error:</p>
  <blockquote>
  <p><strong>You need to be on at least Craft Commerce 3.4.11 before you can update to Craft Commerce 4.6.0.</strong></p>
  </blockquote>
  <p>However, I have confirmed that I'm running Craft Commerce 4.6.0 using the command:</p>
  <pre class="lang-bash prettyprint-override"><code>composer info --tree | grep &quot;commerce&quot;
  </code></pre>
  <p>which outputs:</p>
  <pre><code>craftcms/commerce 4.6.0 Craft Commerce
  </code></pre>
  <p>Why does this error occur even though I have the latest version installed, and how can I resolve it?</p>
  <p>PS. this works fine in localhost, but not in staging. weird indeed. I also have an warning in the output but not sure that causes the main issue</p>
  <pre><code>Warning: PHP Startup: Unable to load dynamic library 'php_xmlrpc.so' (tried: /usr/lib64/php8.2/php-ext/php_xmlrpc.so (/usr/lib64/php8.2/php-ext/php_xmlrpc.so: cannot open shared object file: No such file or directory), /usr/lib64/php8.2/php-ext/php_xmlrpc.so.so (/usr/lib64/php8.2/php-ext/php_xmlrpc.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
  </code></pre>
  
Tags: <plugin-craftcommerce><craft4>
Title: Why am I seeing a version compatibility error after updating Craft Commerce to 4.6.0?
ThreadText: # Why am I seeing a version compatibility error after updating Craft Commerce to 4.6.0?
  
  (Asked by: username_0 on 2024-05-08)
  
  I recently updated Craft Commerce to version 4.6.0, but now whenever I run any Craft commands or navigate to `site.com/admin`, I encounter the following error:
  
  > **You need to be on at least Craft Commerce 3.4.11 before you can update to Craft Commerce 4.6.0.**
  
  However, I have confirmed that I'm running Craft Commerce 4.6.0 using the command:
  
  ```bash
  composer info --tree | grep "commerce"
  
  ```
  
  which outputs:
  
  ```
  craftcms/commerce 4.6.0 Craft Commerce
  
  ```
  
  Why does this error occur even though I have the latest version installed, and how can I resolve it?
  
  PS. this works fine in localhost, but not in staging. weird indeed. I also have an warning in the output but not sure that causes the main issue
  
  ```
  Warning: PHP Startup: Unable to load dynamic library 'php_xmlrpc.so' (tried: /usr/lib64/php8.2/php-ext/php_xmlrpc.so (/usr/lib64/php8.2/php-ext/php_xmlrpc.so: cannot open shared object file: No such file or directory), /usr/lib64/php8.2/php-ext/php_xmlrpc.so.so (/usr/lib64/php8.2/php-ext/php_xmlrpc.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
  
  ```
  
  **Tags:** plugin-craftcommerce, craft4
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-05-08. Score: 1
  
  With regards to Composer, you are indeed running Commerce 4.6.0.
  
  However, Craft is trying to keep up, and can't update directly to 4.6.0. The message you are seeing is telling you that Craft wants you to install Commerce 3.4.11 (via Composer), and run all of your updates to *that* version.
  
  Once you've done that, you should then be able to circle back and update all the way to 4.6.0, as a completely separate step.
  
  > **Comments:**
  > **username_0**: The thing is that I could not roll back to Craft Commerce v3.4.11 since I upgraded the CraftCMS to v4 and is not compatible with the older version of Craft Commerce.  
  
  ---
  
  