With APCu 4.0.2 there is an issue with the install.

After installing you get these notices.

Notice: Undefined index: start_time in apc_requirements() (line 23 of /var/www/html/cciapp/sites/all/modules/apc/apc.install).
Notice: Undefined index: num_entries in apc_requirements() (line 24 of /var/www/html/cciapp/sites/all/modules/apc/apc.install).

The solution is this patch.

 sites/all/modules/apc/apc.install | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sites/all/modules/apc/apc.install b/sites/all/modules/apc/apc.install
index 5277028..806806e 100755
--- a/sites/all/modules/apc/apc.install
+++ b/sites/all/modules/apc/apc.install
@@ -20,8 +20,8 @@ function apc_requirements($phase) {
   if ($apc_enabled) {
     $requirements['apc']['description'] = $t('APC has been running for !duration. Currently caching !num_entries entries (!memory_size).',
       array(
-        '!duration' => format_interval(time() - $cache['start_time']),
-        '!num_entries' => $cache['num_entries'],
+        '!duration' => format_interval(time() - $cache['stime']),
+        '!num_entries' => $cache['nentries'],
         '!memory_size' => format_size($cache['mem_size']),
       )
     );
CommentFileSizeAuthor
#3 apc-apcu_requirements-2343911-3.patch769 bytesAnonymous (not verified)

Comments

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

seanr’s picture

Status: Closed (fixed) » Needs review

This should actually be needs review, since although you fixed it for yourself, the patch hasn't been committed to the module yet. ;-)

Anonymous’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new769 bytes

works for me..

I've added the patch

R.Muilwijk’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

A patch was committed for https://www.drupal.org/node/1984180. Please have a look whether this fixes it for you.