-
-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What version of phpCacheAdmin are you using?
2.3.0
Cache system and version
No response
Extension or client and version
No response
PHP Version
8.3
Operating System
Debian
Describe the issue
The Memcached Metrics (in PHPMem v2.0.1) show thw following error:
Fatal error: Uncaught PDOException: could not find driver in
/**/phpCacheAdmin-2.3.0/src/Dashboards/Memcached/MemcachedMetrics.php:38 Stack trace: #0
/**/phpCacheAdmin-2.3.0/src/Dashboards/Memcached/MemcachedMetrics.php(38): PDO->__construct() #1
/**/phpCacheAdmin-2.3.0/src/Dashboards/Memcached/MemcachedDashboard.php(97): RobiNN\Pca\Dashboards\Memcached\MemcachedMetrics->__construct() #2
/**/phpCacheAdmin-2.3.0/src/Admin.php(51): RobiNN\Pca\Dashboards\Memcached\MemcachedDashboard->ajax() #3
/**/phpCacheAdmin-2.3.0/index.php(47): RobiNN\Pca\Admin->render() #4
{main} thrown in /**/phpCacheAdmin-2.3.0/src/Dashboards/Memcached/MemcachedMetrics.php on line 38
The Redis Metrics (in PHP Redis extension v6.2.0) shows the same issue in a more subtle way:
could not find driver
I looked at the PHP code, specifically:
| $this->pdo = new PDO('sqlite:'.$db); |
After an apt install php8.3-sqlite3 on my system, the memcache and redis metrics worked as a charm!
Please add information in the documentation (maybe requirements) about this dependency and maybe improve the error message (include: sqlite driver) for those who don't read the documentation.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working