francodacosta / grav-plugin-page-stats

better page stats for Grav
MIT License
7 stars 4 forks source link

Error: Class "PDO" not found #39

Open grahamIT opened 11 months ago

grahamIT commented 11 months ago

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 commented 7 months ago

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 commented 4 months ago

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.