#014684: Exception File not found of Cache-Manager doesn't return a file-name

Description:

I initialized an plain cache with ezcCacheManager to directory /tmp/cache/plain.

Then i got the following error message Fatal error:

Uncaught exception 'ezcBaseFileNotFoundException' with message 'The cache location file '' could not be found. (Does not exist or is no directory.)' in /ymc/subversionReps/ezcomponents/trunk/Cache/src/manager.php:207
Stack trace:
... ezcCacheManager::createCache('plain', '/tmp/cache/plai...', 'ezcCacheStorage...', Array)...

It's ok but there should be the directory/file-name in the message e.g. 'The cache location file '/tmp/cache/plain/...' could not be found


Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5') 5.2.6
Database and version:
Browser (and version):


Steps to Reproduce:

- initialize cache
- don't create the directory in which the cache should be layed


- Attachments

No attachments for this issue.


- Comments

Would you have a small code example for us?

#261015 by Derick Rethans on March 27th, 2009 [Permanent Link]

I did it with the configuration class

class memoBaseCacheConfigurator implements ezcCacheStackConfigurator
{

public static function configure( ezcCacheStack $stack )
{
$options = array( 'ttl' => 1800 );

ezcCacheManager::createCache( 'array', '/tmp/cache/array', 'ezcCacheStorageFileArray', $options );
$stack->pushStorage( new ezcCacheStackStorageConfiguration( 'array', ezcCacheManager::getCache('array'), 1000000, .5 ) );
}
}

and somethere in the code

$stack = ezcCacheManager::getCache('stack');
$stack->restore (...);
...
$stack->store(...);

#261055 by Emanuel Sprung on March 30th, 2009 [Permanent Link]

Fixed in rev. #10079.

#261061 by Tobias Schlitt on March 30th, 2009 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Components Components
Components » Cache
Affects Unknown
Fix Versions 2008.2.3 - eZ components 2008.2.3
2009.1alpha1 - eZ components 2009.1alpha1
Reporter Emanuel Sprung
Responsible Tobias Schlitt
Status 0 Closed
Resolution Fixed
Created March 27th, 2009
Updated March 30th, 2009
Resolved March 30th, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels