|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
MizHguN Smarty n00b
Joined: 14 Apr 2014 Posts: 4
|
Posted: Sat May 03, 2014 1:58 pm Post subject: bug in templatecompiler |
|
|
Hello!
Sometimes I receive an error like this
Code: | Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "505531cbf07be5f6983f1dd4650a7947be640a3c" on line 87 "[-paginate_prev class="but_prev"-][-paginate_middle prefix="" suffix="" link_prefix="" link_suffix="" format="page"-][-paginate_next class="but_next"-]" - Unexpected """, expected one of: "identifier" <-- thrown in /public_html/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 87 |
In fact, there is no error in the code. I can add some spaces in template or move code up or down in template and and the error disappears.
Previous smarty versions do not have these errors.
What could it be?
Last edited by MizHguN on Mon May 05, 2014 5:47 pm; edited 1 time in total |
|
Back to top |
|
MizHguN Smarty n00b
Joined: 14 Apr 2014 Posts: 4
|
Posted: Mon May 05, 2014 5:47 pm Post subject: |
|
|
the same error:
Code: | Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "67a20ce2dbdeca922b9095d3cbb501610a410da5" on line 88 "[-menu data=$menu id="nav"-]" - Unexpected "$", expected one of: "identifier" <-- thrown in /public_html/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 88 |
problems start from 3.1.12 version. 3.1.11 works well. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Mon May 05, 2014 9:12 pm Post subject: |
|
|
It looks like that you compile the template from a string, right?
A much likely reason is that the charset of the template source does not match Smarty's charset setting $_CHARSET |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|