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!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 04:22:12
Script start
Timing: Jan 19 2025 04:22:12
Module start 'layout'
Timing: Jan 19 2025 04:22:12
Module start 'content'
Timing: Jan 19 2025 04:22:12
Module end 'content'
Timing: Jan 19 2025 04:22:12
Script end

Main resources:

Total runtime0.0213 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0100 589.4063152.6563
Module start 'layout' 0.01000.0033 742.062539.5078
Module start 'content' 0.01330.0058 781.570393.3984
Module end 'content' 0.01910.0021 874.968838.3047
Script end 0.0213  913.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003214.8259140.0002
Check MTime0.00115.2603140.0001
Mysql Total
Database connection0.00146.601410.0014
Mysqli_queries0.004822.428130.0016
Looping result0.00000.094010.0000
Template Total0.00167.710.0016
Template load0.00094.103910.0009
Template processing0.00083.530710.0008
Override
Cache load0.00052.568010.0005
General
dbfile0.00031.586380.0000
String conversion0.00000.047040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs