Forums / Install & configuration / Ver 3.2-3 : problem with path to block-template cache

Ver 3.2-3 : problem with path to block-template cache

Author Message

Valentin Svelland

Monday 10 November 2003 2:43:26 am

Error: Nov 10 2003 11:40:33
Could not open file 'var/kommune/cache/template-block/4/0/6/4069e7c08056aaaad72648402cbbc40a.php' for writing, perhaps wrong permissions

Error: eZPHPCreator::store Nov 10 2003 11:40:33
Failed to open file 'var/kommune/cache/template-block/4/0/6/4069e7c08056aaaad72648402cbbc40a.php'

I deleted all cache and regenerated it. The folder /4/0/6 isn't generated, but /4/6/ is.. Is this a bug in 3.2-3??

Georg Franz

Monday 10 November 2003 8:40:01 am

Hi,

I've the same problem. I can't figure out where the problem is.

I've tried it under windows and linux.

I use the this code in my pagelout.tpl:
{cache-block keys=array('some_name',$uri_string,$current_user.contentobject_id) expiry=86400}
{ ... some code here ... }
{/cache-block}

-> yes, i deleted the cache many times.

The very strange thing is: Only on some pages the error occurs. Sometimes on some pages cache-block works as expected.

Example:
Cache deleted.
load /content/view/full/444 in browser
error occurs.
reload.
error occurs.

load /content/view/full/445 in browser
error don't occurs.
reload
error don't occurs.
(same pagelout.tpl is used)

-> it doesn't matter which content class is used by the node.

I've figured out that the missing cache-file can't be created because the last subdir (in your case var/kommune/cache/template-block/4/0/6/) wasn't created. So I think the bug is in the directory-creation part.

Kind regards,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Georg Franz

Monday 10 November 2003 10:32:13 am

Hi,

... currently searching ...

I've found a thing:
Only directories with the name "0" (zero) are not created. Maybe "0" is converted to false() between the classes / methods?

... keep on running ...

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Georg Franz

Monday 10 November 2003 10:47:49 am

solution:
http://ez.no/developer/ez_publish_3/bug_reports/cacheblock_fails_solution

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Valentin Svelland

Monday 10 November 2003 1:10:49 pm

Thanks, Emil!