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

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 00:57:06
Script start
Timing: Jan 19 2025 00:57:06
Module start 'layout'
Timing: Jan 19 2025 00:57:06
Module start 'content'
Timing: Jan 19 2025 00:57:07
Module end 'content'
Timing: Jan 19 2025 00:57:07
Script end

Main resources:

Total runtime0.8464 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.1484152.6250
Module start 'layout' 0.00680.0036 741.773439.4453
Module start 'content' 0.01040.8343 781.2188471.8438
Module end 'content' 0.84470.0016 1,253.062512.1719
Script end 0.8463  1,265.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4176160.0002
Check MTime0.00140.1704160.0001
Mysql Total
Database connection0.00080.091210.0008
Mysqli_queries0.790493.3840550.0144
Looping result0.00060.0708530.0000
Template Total0.806995.320.4034
Template load0.00220.255320.0011
Template processing0.804795.075820.4023
Template load and register function0.00020.025310.0002
states
state_id_array0.00120.140510.0012
state_identifier_array0.00100.121420.0005
Override
Cache load0.00180.2182310.0001
Sytem overhead
Fetch class attribute can translate value0.00080.091410.0008
Fetch class attribute name0.00190.222130.0006
XML
Image XML parsing0.00010.014810.0001
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00200.2405100.0002
String conversion0.00000.001340.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
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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs