Fatal error: Call to undefined function apc_fetch() in /usr/home/freja/public_html/v4s/sites/all/modules/cacherouter/engines/apc.php on line 29

I got this error while I'm trying to install module, installed apc successfully.

Comments

kyle_mathews’s picture

Make sure you added the correct lines to your php.ini file (On my ubuntu server it's at /etc/php5/apache2/php.ini)

I added:

# apc
extension=apc.so
apc.shm_size = 128 # increases ram allowance to 128mb from default 30mb.
mikl’s picture

Title: Fatal error: Call to undefined function apc_fetch() in /usr/home/freja/public_html/v4s/sites/all/modules/cacherouter/engines/apc » Fatal error: Call to undefined function apc_fetch()
Status: Active » Closed (works as designed)

If apc_fetch() is undefined, APC is not installed properly.

Therefore, this is not a bug in Cache Router.

najibx’s picture

I'm only getting this error when at php.ini set display_errors: On
Looks like apc is installed properly as I can see apc information in phpinfo(); is it?

Apache Version Apache/2.2.3 (CentOS)
PHP Version 5.3.0

apc
APC Support enabled
Version 3.1.3p1
MMAP Support Enabled
MMAP File Mask no value
Locking type pthread mutex Locks
Revision $Revision: 286798 $
Build Date Nov 7 2009 18:23:35
..
apc.shm_size 128 128

mokko’s picture

I have a similar issue (with D6 version) and would appreciate a pointer as where to look next. php info displays what looks sane info to me.