Fatal error: Call to undefined function apc_fetch()
heshanmw - July 3, 2009 - 16:17
| Project: | Cache Router |
| Version: | 5.x-1.0-beta9 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | by design |
Jump to:
Description
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.

#1
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:
# apcextension=apc.so
apc.shm_size = 128 # increases ram allowance to 128mb from default 30mb.
#2
If apc_fetch() is undefined, APC is not installed properly.
Therefore, this is not a bug in Cache Router.
#3
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