Download & Extend

mkdir() [<a href='function.mkdir'>function.mkdir</a>]: No such file or directory

Project:Cache Router
Version:6.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:critical
Assigned:Unassigned
Status:active

Issue Summary

Hi,

i keep getting this error "mkdir() [function.mkdir]: No such file or directory in /home/rariwawi/public_html/sites/all/modules/cacherouter/engines/file.php on line 229."

this is my cacherouter setting in settings.php

$conf['cache_inc'] = './sites/all/modules/authcache/authcache.inc';
# $conf['cache_inc'] = './sites/all/modules/cacherouter/cacherouter.inc';
$conf['cacherouter'] = array(
  'default' => array(
    'engine' => 'file',               // apc, memcache, db, file, eacc or xcache
    'server' => array(),             // memcached (host:port, e.g., 'localhost:11211')
    'shared' => TRUE,                // memcached shared single process
    'prefix' => '',                  // cache key prefix (for multiple sites)
    'path'   => 'cache/cacherouter',    // file engine cache location
    'static' => FALSE,               // static array cache (advanced)
#    'fast_cache' => TRUE,
  ),
  'cache_form' => array(
    'engine' => 'db',
  ),
);

I use authcache, boost, domain access in case you need to know.

Thanks
Reynaldi

Comments

#1

Same error - thought my script is different (see below). Just using Authcache. Did anything come of this? Thanks!

/**
* Cache Router
*
* Cache API for Anonymous users, running on file, db, apc, xcache or memcache engines.
*/
$module_cacherouter_enabled = TRUE;
$module_cacherouter_default = TRUE;
$module_cacherouter_inc = './sites/all/modules/cacherouter/cacherouter.inc';
if ( file_exists($module_cacherouter_inc) && $module_cacherouter_enabled == TRUE ) {
  if ( $module_cacherouter_default == TRUE) {
      $module_cacherouter_domain = 'default';
  } else {
      $module_cacherouter_domain = $_SERVER['SERVER_NAME'];
  }
  $conf['cache_inc'] = $module_cacherouter_inc;
  $conf['cacherouter'] = array(
    'default' => array(
      'engine' => 'file',
      'servers' => array(),
      'shared' => TRUE,
      'prefix' => '',
      'path' => 'sites/' . $module_cacherouter_domain . '/files/filecache',
      'static' => FALSE,
      'fast_cache' => FALSE,
    ),
  );
}

$conf['cache_inc'] = './sites/all/modules/authcache/authcache.inc';

#2

I am also getting this now.
i tried changing permissions of the directory to www-data:www-data
I also tried chmod -R 777 filecache

one or both worked for a little bit but old error would come up again