ezdesign

Author Message

Fabien Mas

Tuesday 29 May 2007 5:48:04 am

I use the ezdesign operator in my pagelayout to calculate the stylesheets paths
But when I validate a form on a /content/edit/8000/1/ page, all my stylesheets paths are wrong
If I refresh my page (F5 on FireFox or IE), my paths become right
I don't understand why... any idea ?

thx, Fabien

Fabien Mas

Wednesday 06 June 2007 5:56:31 am

Nobody knows?

I tried to understand the ezdesign operator (in kernel/common/ezurloperator.php) but with no succes...

Eric Bourgain

Wednesday 06 June 2007 9:38:48 am

Some more precision about what happens.
The template is called in the 'execute' method of a workflow eventtype, as follows:

         $process->Template
           = array('templateName' =>
                   'design:workflow/eventtype/select_approver.tpl',
                   'templateVars' =>
                   array('approve_user_list' => $preselection,
                         'warning' => false,
                         'submit_uri' =>false,
                         'cancel_uri' =>false,                      
                         'request_uri' => '/approve/select_approver',
                         'version' => $versionID,
                         'object_id' => $parameters['object_id'],
                         'redirect_uri' => $this->redirect_uri));
           
         return EZ_WORKFLOW_TYPE_STATUS_FETCH_TEMPLATE_REPEAT;

This occurs in the front site. I don't know for the back
When seen, the url is a /content/edit/... as stated by fabien
When we add trace in ezurloperator.php, we see that the first time, we have a bunch of matchkeys, but just one when we refresh (i.e. when it works)
We really need help!

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 18 2025 18:23:54
Script start
Timing: Jan 18 2025 18:23:54
Module start 'layout'
Timing: Jan 18 2025 18:23:54
Module start 'content'
Timing: Jan 18 2025 18:23:55
Module end 'content'
Timing: Jan 18 2025 18:23:55
Script end

Main resources:

Total runtime0.5789 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 587.7891152.6094
Module start 'layout' 0.00490.0040 740.398439.3906
Module start 'content' 0.00890.5688 779.7891470.8203
Module end 'content' 0.57770.0012 1,250.60948.2031
Script end 0.5789  1,258.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5609160.0002
Check MTime0.00140.2340160.0001
Mysql Total
Database connection0.00080.143710.0008
Mysqli_queries0.536892.7199570.0094
Looping result0.00050.0941550.0000
Template Total0.546294.420.2731
Template load0.00240.422720.0012
Template processing0.543793.925220.2719
Template load and register function0.00010.023510.0001
states
state_id_array0.00150.251110.0015
state_identifier_array0.00070.123020.0004
Override
Cache load0.00200.3458190.0001
Sytem overhead
Fetch class attribute can translate value0.00050.081320.0002
Fetch class attribute name0.00080.136930.0003
XML
Image XML parsing0.00020.037720.0001
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00070.1280100.0001
String conversion0.00000.001640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs