Closed (fixed)
Project:
Cache Router
Version:
5.x-1.0-beta9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2009 at 13:26 UTC
Updated:
17 Sep 2009 at 12:20 UTC
Hi,
I can't get the caching engine "file" to work.
Configured in settings.pph as follows:
$conf['cache_inc'] = './sites/all/modules/cacherouter/cacherouter.inc';
$conf['cacherouter'] = array(
'default' => array(
'engine' => 'file',
),
);
This results in:
Warnings (green):
Failed to create directory .
Failed to create directory /cache.
Failed to create directory /cache/8.
Errors (red):
Cache write error, failed to open file "/cache/8/87cd8b8808600624d8c590cfc2e6e94b--variables"
On top of the page (outside Drupal):
Warning: mkdir() [function.mkdir]: No such file or directory in /var/www/drupal/sites/all/modules/cacherouter/engines/file.php on line 183
Warning: mkdir() [function.mkdir]: Permission denied in /var/www/drupal/sites/all/modules/cacherouter/engines/file.php on line 183
Warning: mkdir() [function.mkdir]: No such file or directory in /var/www/drupal/sites/all/modules/cacherouter/engines/file.php on line 183
Warning: Cannot modify header information - headers already sent by (output started at /var/www/drupal/sites/all/modules/cacherouter/engines/file.php:183) in /var/www/drupal/includes/bootstrap.inc on line 569
Warning: Cannot modify header information - headers already sent by (output started at /var/www/drupal/sites/all/modules/cacherouter/engines/file.php:183) in /var/www/drupal/includes/bootstrap.inc on line 570
Warning: Cannot modify header information - headers already sent by (output started at /var/www/drupal/sites/all/modules/cacherouter/engines/file.php:183) in /var/www/drupal/includes/bootstrap.inc on line 571
Warning: Cannot modify header information - headers already sent by (output started at /var/www/drupal/sites/all/modules/cacherouter/engines/file.php:183) in /var/www/drupal/includes/bootstrap.inc on line 572
Where is Cache Router trying to create directories? Those do exist:
drwxrwxr-x 2 www-data root 4,0K 24. Feb 22:58 cache
drwxr-xr-x 12 www-data root 4,0K 8. Feb 01:17 files
Regards, -asb
Comments
Comment #1
daphisto commentedHmm, I'm having the exact same problem. Will let you know if I come across a solution.
Comment #2
andypostfiles folder should be
chmod 777Comment #3
asb commentedResult (on top of the page):
...and Warnings (green):
...and Errors (red):
Comment #4
najibx commentedgive 'path'. I use the following instead and this error gone, but another shows up http://drupal.org/node/353815
$conf['cache_inc'] = './sites/all/modules/cacherouter/cacherouter.inc';
$conf['cacherouter'] = array(
'default' => array(
'engine' => 'db',
'server' => array(),
'shared' => TRUE,
'prefix' => '',
'path' => 'sites/change_to_mysite.com/files/filecache',
'static' => FALSE,
'fast_cache' => TRUE,
),
);
Comment #5
slantview commentedThis should be fixed in the next release.