ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Liquid Syntax Error

Added by GDR! GDR! at 2013-01-30 09:14 pm

Hi ChiliProject team,

After upgrading to the latest version, one of the articles in my wiki (including some code samples) started showing this error:

[Liquid Syntax Error] Unknown tag 'autoescape'

I have 'autoescape' in some example code which is quoted in the article in < pre > tags. Where should I look for explanations?

The part which causes the error is most likely this one: http://pastebin.com/Yvy1vj5N


Replies (11)

RE: Liquid Syntax Error - Added by Felix Schäfer at 2013-01-30 11:33 pm

I'm not really sure. Can you reproduce this on another/fresh ChiliProject instance?

RE: Liquid Syntax Error - Added by Chris Dähn at 2013-02-02 03:06 am

I tested this on a completely new installed CP 3.6.0 and got the same error.

Attached you can find the log (debug mode).

Screenshot.jpg - Screenshot with error message (61.1 kB)

production.log - Production log with debug messages enabled (15.9 kB)

RE: Liquid Syntax Error - Added by Chris Dähn at 2013-02-02 03:07 am

@Felix:
Kann dir root-Zugriff (SSH, CP) auf die Testmaschine geben, wenn's dir hilft...

@GDR! GDR!:
I moved this bug report into a new issue ticket #1222 - please post all further questions etc. there.

PS: GDR = DDR? ;-) Kenn' ich doch irgendwoher, so als Jungpionier :-D

RE: Liquid Syntax Error - Added by GDR! GDR! at 2013-02-02 01:27 pm

Haha, no, I'm not German and I didn't know what GDR means until I was using this nickname everywhere. But I've seen Jungpionier once when I was in Germany ;)

RE: Liquid Syntax Error - Added by Chris Dähn at 2013-02-02 02:24 pm

;-) ...ah ok, it just remebered me to "Made in GDR" :-D

RE: Liquid Syntax Error - Added by Holger Just at 2013-02-02 10:22 pm

We don't support all tags that are mentioned in the "official" liquid documentation. Especially the escaping stuff you might need when creating HTML in templates is not supported as it is not needed in ChiliProject. We always escape user-provided data to ensure save output.

You can find all supported tags at Liquid for Editors.

RE: Liquid Syntax Error - Added by GDR! GDR! at 2013-02-03 10:50 pm

I wasn't trying to use liquid tags. I was trying to write documentation for a Haanga-based engine I used in one of my projects, which happens to have syntax similar to liquid. I know that Django uses similar syntax - so if I tried to document some Django template tags, I would run into the same problem.

So it's a feature not a bug that { % is interpreted even though it's not a part of wiki syntax? How should I escape { % then? It's not mentioned in the link you sent.

RE: Liquid Syntax Error - Added by Chris Dähn at 2013-02-04 11:01 pm

@Holger:
Besides: The Liquid wiki page you linked has an error, too ;-) ...there's a parser error for one of the examples in the table.

RE: Liquid Syntax Error - Added by GDR! GDR! at 2013-02-04 11:21 pm

Okay, I see how you escaped that:

{ % raw % } 
 { % child_pages 'Liquid' % } 
 { % endraw % }

Good enough, but it should really be mentioned in documentation

RE: Liquid Syntax Error - Added by Felix Schäfer at 2013-02-05 10:01 am

GDR! GDR! wrote:

Good enough, but it should really be mentioned in documentation

The docs are open to collaboration, feel free to add anything you think is missing :-)

RE: Liquid Syntax Error - Added by GDR! GDR! at 2013-02-05 04:39 pm

I tried but all my attempts at placing the endraw tag in the documentation failed - it seems impossible to escape the endraw tag. Try documenting the endraw tag yourself to see what I mean.

(1-11/11)