-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
PHP Notice Error while accessing API on /products #28279
Comments
Hello @preoteasa , PS 1.7.8.x is already compatible with PHP 7.4 : https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/ I'm using PHP 7.4 with PS 1.7.8.5. Can you give more info about your issue ? |
Here is a link where you can test the erroneous behavior: --deleted-- check the video later. It is a new install of Prestashop 1.7.8.5 on Ubuntu 20.04 LTS, using apache and php 7.4.3, cgi. It is the default installation of php. $php --version The shop runs on AWS on an ARM processor. |
By the way. If you enable debug mode, the error goes away and you get the output from your screen shot. I think that this is a serious problem too. The debug mode should not hide errors. |
I have indeed reproduced your issue with PHP 7.4 on PS 1.7.8.5 (downloaded here) Screen.Recording.2022-04-19.at.12.06.11.mov
Screen.Recording.2022-04-19.at.12.28.41.mov |
So you can reproduce the error with 1.7.8.5. What is changed in 1.7.8.x branch? I checked the source code of development branch and it seems similar to 1.7.8.5 release. I could attempt to test the development branch as well. Are you sure the debug is off? |
https://github.com/PrestaShop/PrestaShop/pulls?q=is%3Apr+milestone%3A1.7.8.6+is%3Amerged |
The error occurs also in the development branch of Prestashop. I just cloned the development branch. Here you can see the error: --deleted-- check the video later IN ORDER TO REPRODUCE THE ERROR, THE DEBUG MODE MUST BE OFF. |
Here it is a recording that shows the error for the development branch. New.Recording.-.4_19_2022.8_04_52.PM.movI will take down the test installation. |
Hello @preoteasa Thanks for your whole feedback 🙏 PS: thanks for the screen record 🙏 I added it to the original issue Thanks! |
Duplicate of #26559 |
Prerequisites
Describe the bug and add screenshots
This error has bee previously reported for version 1.7.7 beta. The resolution was then that version 1.7.7 is not compatible with php 7.4. However, Prestashop 1.7.8 should be compatible with php 7.4.
Expected behavior
No response
Steps to reproduce
products-response.txt
PrestaShop version(s) where the bug happened
1.7.8.5
PHP version(s) where the bug happened
7.4.3
If your bug is related to a module, specify its name and its version
No response
The text was updated successfully, but these errors were encountered: