Disable the update button when the php version is not compatible
| Questions | Answers |
|---|---|
| Description? | Disable the update button when the php version is not compatible , Add Waring when a local archive is used , Add image php compatible version |
| Type? | improvement |
| BC breaks? | no |
| Deprecations? | no |
| Fixed ticket? | Fixes PrestaShop/PrestaShop#25659 & Fixes PrestaShop/PrestaShop#25657 |
| How to test? | See below |
| Possible impacts? | the module need an update for the next PrestaShop |
- git clone
https://github.com/PrestaShop/PrestaShop.git --branch 1.6.1.24To have a possible update and a no comptaible php Version - Install the module.
- Try to update with a non compatible php Version
- Use the local archive and see the warning
- Use a compatible PHP version and check no error.
You can use a another version of PrestaShop
Acutaly i use a constant, @marionf say to use a chanel from PrestaShop Api but he don't exist.
When an xml file is available on https://api.prestashop.com/xml/XXXX I can use it.

Hello @okom3pom
Following your feedback, we decided to not prevent the upgrade if the version of PHP is not compatible with the version of PS to which the user wishes to upgrade. But rather to display a modal, in any case, to remind the user to check that his/her version of PHP is compatible with his/her PS version (current and the one he/she wants to upgrade)
Following your feedback, we have also updated the compatibility table as you can see below:
We don't know the minimum and maximum versions of php compatible with the versions lower than 1.6.1.18, so we don't indicate them in the table.
The issues and mockups are now up to date.
Could you integrate these changes in your PR ?
@matthieu-rolland you added "Waiting for dev" label, what do you need from maintainers ?
I fixed the conflict but can't push on the PR for some reason I get permission denied, did you change the rights on your repo @okom3pom ?
@matthieu-rolland tests are failing, probably because ??
@khouloudbelguith your feedbacks have been addressed:
-
fixed
-
not reproduced, as seen with you
-
not reproduced, as seen with you
-
fixed
-
fixed
-
fixed
-
fixed
-
fixed
-
If a recall correctly we don't intend to make this page mobile friendly
thank you !
@okom3pom hey we hope to release the auto upgrade soon with some fix for the v8. I would be nice to have your PR :) Could you check @khouloudbelguith issues? 🚀
@MatShir I think @matthieu-rolland took over this PR?
Hello, since there was no new updates since 30 days, I think we should follow our guidelines and I'll close this pull request as it seems stale 😞
Don't worry: this doesn't mean this is over or this work is wasted. If at some point someone wants to solve https://github.com/PrestaShop/PrestaShop/issues/25659 and https://github.com/PrestaShop/PrestaShop/issues/25657 the commits in this PR can be fetched and the work continues. I did this in PR https://github.com/PrestaShop/PrestaShop/pull/29638 : I continued the work started in https://github.com/PrestaShop/PrestaShop/pull/28747.
So this work is not 'thrown into the void' 😉 .
Don't hesitate to ping me about this PR 😉