Michele_A Posted November 29, 2020 Share Posted November 29, 2020 Hi. I'm trying to install prestashop on new machine, when i set my connection to DB i have this problem. Anyone had same problem? could you help me i'm losing my mind. Quote 2020/11/29 18:32:30 [error] 2099#2099: *266 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class PrestaShop\PrestaShop\Adapter\Entity\Attribute may not inherit from final class (Attribute) in /home/michele/public_html/shopcaldarelli.tk/www/var/cache/prod/namespaced_class_stub.php on line 0" while reading response header from upstream, client: 2.44.152.150, server: shopcaldarelli.tk, request: "POST /install/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.0-fpm.sock:", host: "shopcaldarelli.tk", referrer: "http://shopcaldarelli.tk/install/index.php" This is the LOG error Link to comment Share on other sites More sharing options...
JBW Posted December 1, 2020 Share Posted December 1, 2020 Whats your PHP version? Please note that Prestashop 1.7.6 is only compatible until PHP 7.2 Link to comment Share on other sites More sharing options...
Michele_A Posted December 2, 2020 Author Share Posted December 2, 2020 22 hours ago, JBW said: Whats your PHP version? Please note that Prestashop 1.7.6 is only compatible until PHP 7.2 Resolved, was PHP8... now i have another problem on PHP7.4 i can enter inside the admin portal: this is the directory, is right? but when i change folder like MODULES OR CATALOG i got 404 ERROR Can anyone help me! Link to comment Share on other sites More sharing options...
JBW Posted December 2, 2020 Share Posted December 2, 2020 15 minutes ago, Michele_A said: now i have another problem on PHP7.4 Again, 7.4 is too high - you have to downgrade again to 7.2 Link to comment Share on other sites More sharing options...
Alejandro Mery Posted October 30, 2021 Share Posted October 30, 2021 (edited) Hi, I'm getting this error with php 7.4.25 and the 1.7.8.x branch. (alpine) Quote Fatal error: Class PrestaShop\PrestaShop\Adapter\Entity\Attribute may not inherit from final class (Attribute) in /srv/http/PrestaShop/var/cache/dev/namespaced_class_stub.php on line 22 update: downgraded to alpine 3.9 for php 7.2 (7.2.33) and I'm still getting the same error when trying to do the installation Edited November 6, 2021 by Alejandro Mery (see edit history) Link to comment Share on other sites More sharing options...
abdullacm Posted April 11, 2022 Share Posted April 11, 2022 On 10/30/2021 at 8:02 AM, Alejandro Mery said: Hi, I'm getting this error with php 7.4.25 and the 1.7.8.x branch. (alpine) update: downgraded to alpine 3.9 for php 7.2 (7.2.33) and I'm still getting the same error when trying to do the installation were you able to fix this error? Link to comment Share on other sites More sharing options...
abdullacm Posted April 11, 2022 Share Posted April 11, 2022 i was able to fix this by running the below command composer require "symfony/polyfill-php80:<=1.18.1" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now