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

Error: Class "PDO" not found #39

Open
grahamIT opened this issue Sep 21, 2023 · 2 comments
Open

Error: Class "PDO" not found #39

grahamIT opened this issue Sep 21, 2023 · 2 comments

Comments

@grahamIT
Copy link

When ever I visit the stats page or the dashboard it triggers an error. See below
Screenshot from 2023-09-21 11-09-21

It appears that its referencing a database but Grav is a flat CMS. Whats going on here? is this a bug?

@CyberSinh
Copy link

Grav is a flat CMS (no database), but the grav-plugin-page-stats plugin store its statistics in a SQLite database.
So your PHP configuration must load sqlite driver.

@Penworks
Copy link

Penworks commented Apr 18, 2024

Just to add, I encountered this when I was updating my localhost version of my Grav site, as Laragon by default does not enable sqlite in the php.ini. Maybe this should be included with installation advice/warnings, just in case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants