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