Kriter.io Posted October 24, 2022 Share Posted October 24, 2022 (edited) Hello Fellows, I updated my php version to 8 using my store that runs php 1.7.8. After i updated it i got the following message that block me to get into mybackend, even if i use debug mode. (1/1) FatalErrorException Compile Error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs): PDOStatement|false in PDOConnection.php line 70 Any idea on how to solve it and fix it? Warm hugs Fabrizio Edited October 26, 2022 by falabby (see edit history) Link to comment Share on other sites More sharing options...
ZIKODK Posted October 24, 2022 Share Posted October 24, 2022 (edited) Ps 1.7.8 is not php8 ready. Downgrade to php 7.4 anw wait for ps 8.0. Omming soon,they say. Edited October 24, 2022 by ZIKODK (see edit history) Link to comment Share on other sites More sharing options...
Kriter.io Posted October 24, 2022 Author Share Posted October 24, 2022 6 hours ago, ZIKODK said: Ps 1.7.8 is not php8 ready. Downgrade to php 7.4 anw wait for ps 8.0. Omming soon,they say. Yes. it is what i already did.......but i wonder why it happen since there are several PS stores that are already using php 8 Link to comment Share on other sites More sharing options...
ComGrafPL Posted October 24, 2022 Share Posted October 24, 2022 Can depend on installed theme, modules or any other factors. Link to comment Share on other sites More sharing options...
ZIKODK Posted October 24, 2022 Share Posted October 24, 2022 52 minutes ago, falabby said: Yes. it is what i already did.......but i wonder why it happen since there are several PS stores 5that are already using php 8 How do you know that? Maybe they are in PS8 BETA.... Link to comment Share on other sites More sharing options...
Kriter.io Posted October 24, 2022 Author Share Posted October 24, 2022 6 minutes ago, ComGrafPL said: Can depend on installed theme, modules or any other factors. Time is fine with php 8. Modules and other factors....i do not think since the DEVO Mode made an alert that is an error already know in the last months. I made a new installation of prestashop 1.7.8.6 with php 8.1, with default template and default modules.....and i got the same error....so it is something in prestashop that needs to be fixed Link to comment Share on other sites More sharing options...
Mediacom87 Posted October 24, 2022 Share Posted October 24, 2022 Hi, Your version is not compatible with PHP8 https://devdocs.prestashop-project.org/1.7/basics/installation/system-requirements/#php-requirements Only version 8 of PrestaShop will be compatible with PHP 8 and it is in development phase. https://build.prestashop-project.org/news/prestashop-8-0-rc1-release/ Link to comment Share on other sites More sharing options...
Kriter.io Posted October 26, 2022 Author Share Posted October 26, 2022 On 10/25/2022 at 1:06 AM, Mediacom87 said: Hi, Your version is not compatible with PHP8 https://devdocs.prestashop-project.org/1.7/basics/installation/system-requirements/#php-requirements Only version 8 of PrestaShop will be compatible with PHP 8 and it is in development phase. https://build.prestashop-project.org/news/prestashop-8-0-rc1-release/ Ok, thanks a lot. Really appreciated 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