Skip to content
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

[PHP8.0] Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) #30642

Closed
2 tasks done
neoacevedo opened this issue Dec 21, 2022 · 1 comment
Labels
Bug Type: Bug Invalid Resolution: issue closed because invalid

Comments

@neoacevedo
Copy link

Prerequisites

Describe the bug and add attachments

Loging in with PHP8 raises the error described in the title. My guess is Prestasho 1.7.x remains to run only with PHP 7.4.


Running locally with PHP 8 and recently updated Prestashop, I get the error described in the title when I login in the backend. As I don't have enable the login in the frontend, I guess it would happen also. What I see once I have loged in is a blank page because it's a replica from my production store.

I updated it locally using PHP 7.4 and closed the session; I changed then the PHP version to 8.0 and I tried to login having this issue.

Expected behavior

To login and to access the dashboard.

Steps to reproduce

  1. Update via PHP7 from 1.7.8.7 to 1.7.8.8 locally
  2. Close the session once updated
  3. Change the PHP version from 7.4 to 8.0
  4. Access the login page
  5. Login

PrestaShop version(s) where the bug happened

1.7.8.8

PHP version(s) where the bug happened

8.0

If your bug is related to a module, specify its name and its version

No response

@neoacevedo neoacevedo added Bug Type: Bug New New issue not yet processed by QA labels Dec 21, 2022
@Hlavtox
Copy link
Contributor

Hlavtox commented Dec 21, 2022

Hi @neoacevedo, Prestashop 1.7.8 is not compatible with PHP 8.

PHP > 8 is supported since Prestashop 8.0.0, upgrade procedure will be available in the following days. Upgrade, then change the PHP version and everything should work fine.👍

@Hlavtox Hlavtox closed this as completed Dec 21, 2022
@Hlavtox Hlavtox added Invalid Resolution: issue closed because invalid and removed New New issue not yet processed by QA labels Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Type: Bug Invalid Resolution: issue closed because invalid
Projects
None yet
Development

No branches or pull requests

2 participants