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
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

kyle_mathews - August 10, 2009 - 15:07

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.

#2

mikl - August 15, 2009 - 14:09
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» by design

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

Therefore, this is not a bug in Cache Router.

#3

najibx - November 10, 2009 - 17:26

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

 
 

Drupal is a registered trademark of Dries Buytaert.