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!

eZ debug

Timing: Jan 19 2025 14:02:17
Script start
Timing: Jan 19 2025 14:02:17
Module start 'content'
Timing: Jan 19 2025 14:02:17
Module end 'content'
Timing: Jan 19 2025 14:02:17
Script end

Main resources:

Total runtime0.1537 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.2109180.8047
Module start 'content' 0.00670.0074 770.015697.9766
Module end 'content' 0.01410.1394 867.9922526.6563
Script end 0.1535  1,394.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00352.2498200.0002
Check MTime0.00130.8752200.0001
Mysql Total
Database connection0.00110.734610.0011
Mysqli_queries0.101465.96571410.0007
Looping result0.00171.08151390.0000
Template Total0.139090.510.1390
Template load0.00110.712610.0011
Template processing0.137989.756210.1379
Override
Cache load0.00070.447810.0007
Sytem overhead
Fetch class attribute can translate value0.00100.629310.0010
XML
Image XML parsing0.00040.288910.0004
General
dbfile0.00744.7939200.0004
String conversion0.00000.005330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

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

Time used to render debug report: 0.0002 secs