Prerequisites
Describe the bug and add attachments
When attempting to upgrade PrestaShop to the latest version, the process is blocked by the following error:
(translated from French) "The PrestaShop version does not match the one stored in the database. The structure of your database may not be up to date and/or the value of PS_VERSION_DB may need to be updated in the configuration table."
Given this situation, I would like to better understand how to safely diagnose and resolve it:
- Is there a way to verify the integrity and consistency of my database?
- Is there a way to check whether a previous auto-upgrade failed partially (e.g., some database migrations not applied)?
- Should PS_VERSION_DB be manually updated, or would that risk further inconsistencies?
- Are there any tools or scripts available to validate or reapply missing database schema updates?
This issue likely appeared after a previous upgrade attempt, which may not have completed successfully.
Steps to reproduce
Open AutoUpgrade assistant
Try to update to latest version
Expected behavior
Prestashop can be upgraded to PS_9.1.3 without this error
Actual Result
The upgrade process cannot proceed due to this error.
The shop itself is still functioning normally on the current version.
PrestaShop versions where the bug happens
9.0.1 to 9.1.3
Module version where the bug happens
7.6.5
PHP version(s) where the bug happened
8.4.21
Your company or customer's name goes here (if applicable).
No response
Prerequisites
Describe the bug and add attachments
When attempting to upgrade PrestaShop to the latest version, the process is blocked by the following error:
(translated from French) "The PrestaShop version does not match the one stored in the database. The structure of your database may not be up to date and/or the value of PS_VERSION_DB may need to be updated in the configuration table."
Given this situation, I would like to better understand how to safely diagnose and resolve it:
This issue likely appeared after a previous upgrade attempt, which may not have completed successfully.
Steps to reproduce
Open AutoUpgrade assistant
Try to update to latest version
Expected behavior
Prestashop can be upgraded to PS_9.1.3 without this error
Actual Result
The upgrade process cannot proceed due to this error.
The shop itself is still functioning normally on the current version.
PrestaShop versions where the bug happens
9.0.1 to 9.1.3
Module version where the bug happens
7.6.5
PHP version(s) where the bug happened
8.4.21
Your company or customer's name goes here (if applicable).
No response