Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Doctrine undefined function apc_fetch

I'm using this tutorial, which gives a detail explanation about how to set up CodeIgniter and Doctrine. I'm using CodeIgniter 2.1.0 and Doctrine 2.2.1, but I get this error:

Fatal error: Call to undefined function Doctrine\Common\Cache\apc_fetch() in /Applications/XAMPP/xamppfiles/htdocs/emma_watson_shrine/application/libraries/Doctrine/Common/Cache/ApcCache.php on line 52

Can you help me out?

like image 253
H Dindi Avatar asked Oct 30 '12 15:10

H Dindi


1 Answers

You need to enable the APC extension for PHP.

Follow this guide.

Alternatively, you could use a different caching driver, like memcache, and change the Doctrine config in accordance to that.

Check the doctrine documentation for alternate caching drivers. Perhaps the simplest solution would be to use ArrayCache in development.

like image 53
holographic-principle Avatar answered Sep 28 '22 06:09

holographic-principle