New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to precisely inform about PHP compatibility when installing or using Prestashop? #23551
Comments
This correction brings a solution during installation. |
Hello @jeckyl Thanks for the suggestion, the Product Team will take a look. Ping @PrestaShop/product-team , what do you think? |
@matks @kpodemski I will check if wrong PHP version is reported in the Information section, if not, we could do it. But, I think that checking the version on runtime and showing some big error box is an overkill. WDYT? |
I'm not sure it's gonna work 😄 Consider the following scenario:
I think @jeckyl would like that a big RED warning messages appears in PS and tells users "Hey! Hey! We have detected you are running PS with a PHP version that is not supported! " But what is also likely to happen is... when Jack browses his backoffice, he will simply have a blank page 😅 because PHP8.2 on PS 1.7.8.9 I'm quite sur it crashes. You can't display an error message if it just does not even run... So we can add some infos (warning, info section ...) but keep in mind we have no guarantee PrestaShop will even succeed to display them |
Isn't the check already done on the installation ? 🤔 |
I think this is unnecessary logic and a extra runtime check. I would close it if @MatShir and @kpodemski agree. |
The check is done on the information page, we could highlight it there when the version is not correct. |
Is your feature request related to a problem?
The French community must have exceeded the ten thousand times to repeat and remind the PHP version compatibility range for version 1.7 of PrestaShop, which means that people can install PrestaShop on servers not offering the right version of PHP or with hosters forcing the use of bad versions of PHP.
Describe the solution you'd like
It would certainly be enough to test the PHP version and to add a precise warning indicating that the PHP version currently in use does not guarantee optimal operation and may cause malfunctions.
Alternatives you've considered
Block the installation if the PHP version is not the right one.
The text was updated successfully, but these errors were encountered: