Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

smarty_internal_compile_block error in Smarty-3.1.11

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
coffeelet
Smarty n00b


Joined: 09 Sep 2008
Posts: 1

PostPosted: Fri Sep 14, 2012 2:12 am    Post subject: smarty_internal_compile_block error in Smarty-3.1.11 Reply with quote

When I updated smarty to 3.1.11 from 3.1.6, There are the following error:
Code:
Message: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Unknown modifier '\'
Level :E_WARNING
File: \core\lib\Smarty\sysplugins\smarty_internal_compile_block.php [line:114]
Trace Information:
File: \core\lib\Smarty\sysplugins\smarty_internal_compile_extends.php[ Line:108 ]
Function: Smarty_Internal_Compile_Block::saveBlockData(string " <link rel="stylesheet" type="text/css" href="./styles/index_m...", string "{/block name="head"/}", object Smarty_Internal_Template, string "D:\jms\jms_1.1\www\admin\views\tpls\index\params.tpl")
File: \core\lib\Smarty\sysplugins\smarty_internal_templatecompilerbase.php[ Line:473 ]
Function: Smarty_Internal_Compile_Extends->compile(array Array(1), object Smarty_Internal_SmartyTemplateCompiler, array Array(0), NULL, NULL)
File: \core\lib\Smarty\sysplugins\smarty_internal_templatecompilerbase.php[ Line:247 ]
Function: Smarty_Internal_TemplateCompilerBase->callTagCompiler(string "extends", array Array(1), array Array(0))
File: \core\lib\Smarty\sysplugins\smarty_internal_templateparser.php[ Line:2393 ]
Function: Smarty_Internal_TemplateCompilerBase->compileTag(string "extends", array Array(1))
File: \core\lib\Smarty\sysplugins\smarty_internal_templateparser.php[ Line:3096 ]
Function: Smarty_Internal_Templateparser->yy_r36()
File: \core\lib\Smarty\sysplugins\smarty_internal_templateparser.php[ Line:3196 ]
Function: Smarty_Internal_Templateparser->yy_reduce(integer 36)
File: \core\lib\Smarty\sysplugins\smarty_internal_smartytemplatecompiler.php[ Line:105 ]
Function: Smarty_Internal_Templateparser->doParse(integer 10, string " ")
File: \core\lib\Smarty\sysplugins\smarty_internal_templatecompilerbase.php[ Line:192 ]
Function: Smarty_Internal_SmartyTemplateCompiler->doCompile(string "{/extends file="layout.tpl"/} {/block name="head"/} <link r...")
File: \core\lib\Smarty\sysplugins\smarty_internal_template.php[ Line:187 ]
Function: Smarty_Internal_TemplateCompilerBase->compileTemplate(object Smarty_Internal_Template)
File: \core\lib\Smarty\sysplugins\smarty_internal_templatebase.php[ Line:155 ]
Function: Smarty_Internal_Template->compileTemplateSource()
File: \core\lib\Smarty\sysplugins\smarty_internal_templatebase.php[ Line:374 ]
Function: Smarty_Internal_TemplateBase->fetch(string "index/params.tpl", NULL, NULL, NULL, True)
File: \core\bin\controller\Abstract.php[ Line:183 ]
Function: Smarty_Internal_TemplateBase->display(string "index/params.tpl", NULL)


Tpl code(delimiters has changed to "{/ , /}"):
Code:

{/extends file="layout.tpl"/}
{/block name="head"/}
<link type="text/css" rel="stylesheet" href="./styles/table/core.css" />
{//block/}
{/block name="body"/}
Some code here
{//block/}
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Fri Sep 14, 2012 2:44 pm    Post subject: Reply with quote

The fix is now in the SVN trunk and will later be included in 3.1.12
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP