Forums / Setup & design / Strange error message

Strange error message

Author Message

Trond Åge Kvalø

Tuesday 17 August 2004 12:22:07 am

Error: eZTemplate 
parser error @ design/microtech/override/templates/node_view_full_nyheter.tpl:1[14]
Extra characters found, should have been a whitespace or the end of the expression
Characters: 'fetch( 'content', 'list', hash( 'parent_node_id', 69, 

Heres my fetch function:

{let trenyeste=fetch( 'content', 
                            'list', 
                             hash( 'parent_node_id', 69,
                            'sort_by', array( 'attribute', false(), 'artikkel/publiseringsdato' )
                            'limit', 3 ) ) }

Can anyone see what's wrong here?

trondåge

Trond Åge Kvalø

Tuesday 17 August 2004 1:03:16 am

OK, forgot to mention: I'm using 3.4-0

Also I've tried to simplify things a bit by dropping the sorting and limit (After all I only have 4 news articles for testing)

Here's the "new" error message:

Error: eZTemplate 
parser error @ design/microtech/override/templates/node_view_full_nyheter.tpl:1[16]
Invalid parameter characters in function 'let': '( content, list, hash( parent_node_id, 69) ' 

And here's the simplified fetch:

{let alle = fetch( content, list, hash( parent_node_id, 69) }

I've removed the apostrophes deliberately as I've come into the "let's try everything phase"

Anyone awake enough to spot the error yet ;-)

Are there any changes to code syntax from 3.3-4 to 3.4-0?

best regards
trondåge

trondåge

Trond Åge Kvalø

Tuesday 17 August 2004 4:52:07 am

Ok, here are my findings so far:

{let alle=fetch...... won't work. Needs space before and after the "=", so
{let alle = fetch......

Must use the apostrophes in the fetch function, like this
{let alle = fetch( 'content', 'list', hash( 'parent_node_id', 69 ) ) }

and also remember to match all the parentheses....

Last but not least if you're gonna use sort_by and limit, you must remember to include commas on the line before so the hash function are read correctly....

Can anyone validate or invalidate this?

Vacation sure seems to have erased my hard earned eZp knowledge ;-)

best regards
trondåge

trondåge

eZ debug

Timing: Jan 19 2025 03:31:50
Script start
Timing: Jan 19 2025 03:31:50
Module start 'content'
Timing: Jan 19 2025 03:31:52
Module end 'content'
Timing: Jan 19 2025 03:31:52
Script end

Main resources:

Total runtime2.0024 sec
Peak memory usage4,096.0000 KB
Database Queries192

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0099 588.9453180.8438
Module start 'content' 0.00991.8543 769.7891476.9219
Module end 'content' 1.86420.1382 1,246.7109333.4844
Script end 2.0024  1,580.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.2152210.0002
Check MTime0.00160.0781210.0001
Mysql Total
Database connection0.00110.054410.0011
Mysqli_queries1.932096.48201920.0101
Looping result0.00190.09571900.0000
Template Total1.961598.020.9808
Template load0.00210.103320.0010
Template processing1.959597.853420.9797
Template load and register function0.00020.010710.0002
states
state_id_array0.00210.105310.0021
state_identifier_array0.00260.131720.0013
Override
Cache load0.00170.0868310.0001
Sytem overhead
Fetch class attribute can translate value0.00220.108020.0011
Fetch class attribute name0.00160.080230.0005
XML
Image XML parsing0.00040.017620.0002
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00560.2808210.0003
String conversion0.00000.000330.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
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
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs