Closed (fixed)
Project:
Cache Router
Version:
6.x-1.0-beta8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2009 at 21:35 UTC
Updated:
17 Sep 2009 at 07:50 UTC
I'm getting this from file.php
Notice: Undefined index: cache in /path/to/drupal/sites/all/modules/cacherouter/engines/file.php on line 15
Affected line is:
// Assign the path on the following order: bin specific -> default specific -> /tmp/filepath
$this->fspath = $conf['cacherouter'][$bin]['path'];
Seems $bin contains the wrong data. From what I can tell it ought to contain 'default' but seems to contain the actual cache "table" name instead?
Settings file is like this:
$conf['cache_inc'] = './sites/all/modules/cacherouter/cacherouter.inc';
$conf['cacherouter'] = array(
'default' => array(
'engine' => 'file',
'shared' => TRUE,
'prefix' => '',
'path' => '/tmp/filecache/drupaler',
'static' => FALSE,
'fast_cache' => FALSE,
),
);
I think bin is supposed to be the array key?
Comments
Comment #1
greg.harveyFor information, call stack is:
Comment #2
slantview commentedFixed.