Update with old Commerce packages¶
This update procedure applies if you have a v4.3 installation, you use Commerce packages and would like to continue to use them.
All commerce packages as of v4.4 are deprecated and will be removed in v5. Until that time, they will be maintained by Ibexa with fixes, including security fixes, but they won't be further developed. Old packages are replaced by the all-new Ibexa Commerce packages.
Temporary need of Composer conflict
To go through this update, map the conflicting packages in your composer.json
file as following:
1 2 3 4 |
|
Update from v4.3.x to v4.3.latest¶
Before you update to v4.4, you need to go through the following steps to update to the latest maintenance release of v4.3 (v4.3.5).
Update the application to v4.3.latest¶
Run:
1 |
|
1 |
|
1 |
|
Update from v4.3.latest to v4.4¶
When you have the latest version of v4.3, you can update to v4.4.
Update the application to v4.4¶
First, run:
1 2 |
|
1 2 |
|
1 2 |
|
The recipes:install
command installs new YAML configuration files.
Review the old YAML files and move your custom configuration to the relevant new files.
Flysystem v2¶
Local adapters' directory
key changed to location
.
It's defined in config/packages/oneup_flysystem.yaml
:
1 2 3 4 5 |
|
If you haven't applied custom changes to that file,
you can reset third-party oneup/flysystem-bundle
recipe by executing:
1 |
|
Add ibexa/commerce-*
packages dependencies¶
Add the following dependencies in the require
section in composer.json
:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
Next, remove the entries with new packages alongside with routing and configuration in config/routes/ibexa_cart.yaml
, config/routes/ibexa_checkout.yaml
and config/routes/ibexa_storefront.yaml
:
1 2 3 |
|
Finally, remove the new storefront_group
SiteAccess from config/packages/ibexa.yaml
:
1 2 3 4 5 |
|
Update the database¶
Next, update the database if you're using Ibexa Commerce. Ibexa Content and Ibexa Experience don't require the database update.
Caution
Always back up your data before running any database update scripts.
After updating the database, clear the cache.
Don't use --force
argument for mysql
/ psql
commands when performing update queries.
If there is any problem during the update, it's best if the query fails immediately, so you can fix the underlying problem before you execute the update again.
If you leave this for later you risk ending up with an incompatible database, though the problems might not surface immediately.
Apply the following database update scripts:
1 |
|
1 |
|
Ibexa Open Source¶
If you have no access to Ibexa DXP's ibexa/installer
package, database upgrade isn't necessary.
Ensure password safety¶
Following Security advisory: IBEXA-SA-2022-009, unless you can verify based on your log files that the vulnerability has not been exploited, you should revoke passwords for all affected users.
Finish code update¶
Finish the code update by running:
1 |
|
Run data migration¶
Customer Portal self-registration¶
If you're using Ibexa Experience or Ibexa Commerce, run data migration required by the Customer Portal applications feature:
1 2 |
|