Do not install Checkout on PHP 7.1 #1373
Replies: 6 comments 2 replies
-
|
Hello we want to make ps_checkout compatible with PHP7.1 but when we tried to add it into v5.0.3 we saw it actually needed a lot more work because PHP7.2 brought backward incompatible changes compared to PHP 7.1 😅 I hope we can add PHP7.1 compatibility inside v5.0.4, but this is quite dependent on how our composer dependencies depend themselves on PHP7.1 / PHP 7.2 😬 |
Beta Was this translation helpful? Give feedback.
-
|
It can be tricky to increase the compatibility, indeed. The changes I suggest allow you to keep the current compatibility without breaking shops that would start using the module, so you can stay focused on the features. |
Beta Was this translation helpful? Give feedback.
-
|
@Quetzacoalt91 What about |
Beta Was this translation helpful? Give feedback.
-
|
This property does not exist. PrestaShop lacks a native check of PHP versions regarding modules, this must be done manually until we get Composer. |
Beta Was this translation helpful? Give feedback.
-
Isn't the inclusion of autoloader done automatically by the core? Can you provide an example of one module doing it? |
Beta Was this translation helpful? Give feedback.
-
|
Hello @Quetzacoalt91 so it took quite a long time but as @L3RAZ investigated, actually it seems PS Checkout v5 is working well with PHP7.1 So I know we have the constraint in composer.json and that theoretically the PHP composer dependencies are marked "PHP7.2" minimum but running the module seems to be correct So what I am going to do is
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Following the discussion #1357, one first fix has been brought to the project for shops running PHP 7.1.
This removes one fatal error when the autoloader was called, good 👍, however...
The installation of Checkout on shops running PHP 7.1 is still allowed and must be fixed to avoid issues while accessing the backoffice:
Actions needed:
falsebefore running any action on the shop)trueeven if the module is not installed to allow the installation of PrestaShop to complete.Thanks
Beta Was this translation helpful? Give feedback.
All reactions