Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Installation & Hosting

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

Solved by pamtbaau View solution

Started by Thomas Florentin 4 years ago · 2 replies · 975 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 antoinep, 12 hours ago
5 60 6 hours ago
Installation & Hosting · by Jürgen Dietrich, 7 months ago
0 62 7 months ago
Installation & Hosting · by rappluk, 8 months ago
0 62 8 months ago
Installation & Hosting · by N, 12 months ago
3 72 12 months ago
Installation & Hosting · by Youle, 1 year ago
1 61 1 year ago