Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Class "...\Cache\ApcuCache" not found

Solved by pamtbaau View solution

Started by Thomas Florentin 4 years ago · 2 replies · 1344 views
4 years ago

Hi there,

i got that error after migration on a prod server.
Everything 's ok on localhost AND staging server.

full error :
Class "Doctrine\Common\Cache\ApcuCache" not found

…/system/src/Grav/Common/Cache.php260

PHP
 $driver = new DoctrineCache\ApcuCache();

THanks !
thomas

4 years ago Solution

@thom4s, If your localhost is working fine and the staging server is working fine, my first guess would be that the issue is related to the server and not Grav.

When opening /system/src/Grav/Common/Cache.php in VSCode I get the following warning on line 260

PHP
$driver = new DoctrineCache\ApcuCache();

@deprecated Deprecated
without replacement in doctrine/cache 1.11. This class will be dropped in 2.0

Not sure if the above is causing the issue though.

Does a fresh default installation of Grav 1.7.34 also throw the same issue?

👍 1
last edited 07/12/22 by pamtbaau
4 years ago

Thanks @pamtbaau !

.. i find my error... i deploy with git. But i put some cache folder in the gitignore.... so the cache folder in the vendors were not deploy.
I'm a idiot :) but i learn from my error 🙂

th

👍 1

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by DrPen, 6 days ago
4 117 4 days ago
Installation & Hosting · by vollstock, 3 weeks ago
3 221 3 weeks ago
Installation & Hosting · by David, 7 years ago
3 3508 1 month ago
Installation & Hosting · by David Meissner, 1 month ago
3 345 1 month ago
Installation & Hosting · by David Meissner, 1 month ago
0 269 1 month ago