Really strange ...

Author Message

Philippe VINCENT-ROYOL

Thursday 04 November 2010 2:05:02 am

Hi guys,

Never see that and don't know how to fix that: i ve define on template a variable:

{def $nombre1 = 0 }

and i need to change variable value:

{set $nombre1 = inc ( $nombre1 )}

This dont work and i ve this error on debug:

Warning: eZTemplate:set Nov 04 2010 10:00:26
Variable 'Sw:nombre1' doesn't exist, cannot set

What's wrong ? Do i need to get back to sleep? :)

Thanks !

Philippe

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe

Ivo Lukac

Thursday 04 November 2010 2:19:00 am

First remove the space between 'inc' and '(':

{set $nombre1 = inc( $nombre1 )}

Is the set in some {section} loop or?

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Philippe VINCENT-ROYOL

Thursday 04 November 2010 2:29:56 am

I remove space same effect...

no {section} loop.. really a basic template code .. thats why i m scared ^^

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe

Ivo Lukac

Thursday 04 November 2010 3:43:04 am

Your log shows that some "Sw" namespace is in the game. Do you have somewhere a "Sw" ?

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Philippe VINCENT-ROYOL

Thursday 04 November 2010 3:53:22 am

Just find where the problem was..

Because i used a switch structure control with name=$w :

{switch name=$w match=$key}

Damn !

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe

Ivo Lukac

Thursday 04 November 2010 5:17:48 am

"

Just find where the problem was..

Because i used a switch structure control with name=$w :

{switch name=$w match=$key}

Damn !

"

"name=$w" is creating namespace, yes

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

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 05:04:02
Script start
Timing: Jan 18 2025 05:04:02
Module start 'layout'
Timing: Jan 18 2025 05:04:02
Module start 'content'
Warning: PHP: E_DEPRECATED Jan 18 2025 05:04:03
trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ze/public_html/share.se7enx.com/var/community/cache/template/compiled/table-02cf899a6d707917c58210ed54ffe2ff.php on line 147
Timing: Jan 18 2025 05:04:03
Module end 'content'
Timing: Jan 18 2025 05:04:03
Script end

Main resources:

Total runtime1.0055 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 587.7891152.6094
Module start 'layout' 0.00750.0032 740.398439.4141
Module start 'content' 0.01070.9932 779.8125590.0938
Module end 'content' 1.00390.0015 1,369.906320.4063
Script end 1.0054  1,390.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3166160.0002
Check MTime0.00140.1400160.0001
Mysql Total
Database connection0.00110.110510.0011
Mysqli_queries0.931792.6602660.0141
Looping result0.00070.0671640.0000
Template Total0.968796.320.4843
Template load0.00210.203920.0010
Template processing0.966696.135720.4833
Template load and register function0.00010.013010.0001
states
state_id_array0.00110.114110.0011
state_identifier_array0.00260.260120.0013
Override
Cache load0.00180.1816470.0000
Sytem overhead
Fetch class attribute can translate value0.00050.050720.0003
Fetch class attribute name0.00200.198980.0002
XML
Image XML parsing0.00210.207320.0010
class_abstraction
Instantiating content class attribute0.00000.0024120.0000
General
dbfile0.00250.2503240.0001
String conversion0.00000.001140.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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
2content/datatype/view/ezxmltags/td.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/td.tplEdit templateOverride template
2content/datatype/view/ezxmltags/tr.tpl<No override>extension/community/design/community/templates/content/datatype/view/ezxmltags/tr.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/table.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/table.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 11

Time used to render debug report: 0.0002 secs