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

CC BY-SA 4.0
2024-05-13T20:47:12.980Z
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.
Mostafa Soufi
CC BY-SA 4.0
2024-05-08T18:36:58.443Z
2024-05-08T18:36:58.443Z
Lindsey D
<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>

<plugin-craftcommerce><craft4>
Why am I seeing a version compatibility error after updating Craft Commerce to 4.6.0?
# 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:
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.  

---

