Bug: Seeing couple errors after upgrading to PHP 8.5+
What version of phpCacheAdmin are you using?
2.4.1
Cache system and version
Valkey 9.0.3
Extension or client and version
phpredis 6.3.0
PHP Version
8.5.3
Operating System
Almalinux 8.10
Describe the issue
No server stats showing (all blank).
Redis / Memcached / OpCache / Realpath - side panel I'm only seeing:
An exception has been thrown during the rendering of a template ("realpath_cache_get() expects exactly 0 arguments, 3 given") in "partials/panel.twig" at line 21. in /home/xxxxxx/vendor/robinn/phpcacheadmin/templates/partials/panel.twig at line: 21
Redis / Memcached / OpCache / Realpath - main panel I'm only seeing:
An exception has been thrown during the rendering of a template ("realpath_cache_get() expects exactly 0 arguments, 3 given") in "partials/table_view.twig" at line 12. in /home/xxxxxx/vendor/robinn/phpcacheadmin/templates/partials/table_view.twig at line: 12
No longer getting the errors. It seems to have fixed itself, possibly old opcache???
Did you clear the twig cache in tmp/twig?
That function is used only here in Realpath dashboard and there are no extra arguments $this->all_keys = realpath_cache_get();
Try this, delete Twig cache if you haven't already. If that doesn't help, disable Realpath in config to see if it affects the whole thing in any way (it shouldn't).
No longer getting the errors. It seems to have fixed itself, possibly old opcache???
Yes, I suspect it's opcache or twig cache. Many issues are caused by users forgetting to clear the cache folder after an update. I've added a version check that clears the twig cache after an update.