We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Internal Error on update to 1.5.3 | Forum

Hadi Kamell
Hadi Kamell Apr 23 '13
Hi
after that i was manualy updated my oxwall (1.5.1) to 1.5.3 , this error was happened :


OW Debug - Exception

Syntax Error in template "/ROOT/public_html/ow_system_plugins/base/views/components/menu.html" on line 2 "{foreach from=$data item=\'item\'}<li class=\"{$item.class}{if !empty($item.active)} active{/if}\"><a href=\"{$item.url}\"{if $item.new_window} target=\"_blank\"{/if}><span>{$item.label}</span></a></li>{/foreach}" - Unexpected "\"

/ROOT/public_html/ow_libraries/smarty3/sysplugins/smarty_internal_templatecompilerbase.php

657

#0 /ROOT/public_html/ow_libraries/smarty3/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /ROOT/public_html/ow_libraries/smarty3/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(10, '\') #2 /ROOT/public_html/ow_libraries/smarty3/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(10, '\') #3 /ROOT/public_html/ow_libraries/smarty3/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile('compileTemplate(Object(Smarty_Internal_Template)) #5 /ROOT/public_html/ow_libraries/smarty3/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource() #6 /ROOT/public_html/ow_core/view_renderer.php(101): Smarty_Internal_TemplateBase->fetch('/home/sheklak/d...') #7 /ROOT/public_html/ow_core/renderable.php(263): OW_ViewRenderer->renderTemplate('/home/sheklak/d...') #8 /ROOT/public_html/ow_core/component.php(80): OW_Renderable->render() #9 /ROOT/public_html/ow_core/renderable.php(250): OW_Component->render() #10 /ROOT/public_html/ow_core/html_document.php(597): OW_Renderable->render() #11 /ROOT/public_html/ow_core/response.php(184): OW_HtmlDocument->render() #12 /ROOT/public_html/ow_core/application.php(429): OW_Response->respond() #13 /ROOT/public_html/index.php(83): OW_Application->returnResponse() #14 {main}

Type: SmartyCompilerException




Please Help me to solve this problem.


Hadi Kamell
Hadi Kamell Apr 24 '13
please help!

Attachments:
  Screenshot from 2013-04-24.jpg (253.61Kb)
Hadi Kamell
Hadi Kamell Apr 25 '13
any body can help?
Eddie Hakan
Eddie Hakan Apr 27 '13
i don't think they will help.. hehehee.. :)
Hadi Kamell
Hadi Kamell Apr 27 '13
:D

i was restored a backup from 21 days ago! :/
Alia Team
Alia Apr 30 '13
Here is what you should have there in menu.html:
...
{foreach from=$data item='item'}<li class="{$item.class}{if !empty($item.active)} active{/if}"><a href="{$item.url}"{if $item.new_window} target="_blank"{/if}><span>{$item.label}</span></a></li>{/foreach}
...

Here is what you have there (according to the error from your screen shot). Note that I have replaced all special chars:

...
{foreach from=$data item=\'item\'}<li class="{$item.class}{if !empty($item.active)} active{/if}"><a href="{$item.url}"{if $item.new_window} target="_blank"{/if}><span>{$item.label}</span></a><li>{/foreach}
...
The only difference is within the part in bold above.

1. check your menu.html and make sure that you don't have \\ around 'item' part.
2. if your menu.html is correct, then check your php.ini file. Do you have magic_quotes  turned on?