GD_foro Posted January 9, 2014 Share Posted January 9, 2014 (edited) Buenas tardes, Desde ayer me está pasando lo siguiente: Cuando activo la opción de "Forzar compilación", la web muestra el siguiente error: Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/miservidor/domains/midominio.com/public_html/themes/mitheme/header.tpl" on line 121 "" - Unexpected " "' in /home/miservidor/domains/midominio.com/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:431 Stack trace: #0 /home/miservidor/domains/midominio.com/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(2855): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home/miservidor/domains/midominio.com/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(2920): Smarty_Internal_Templateparser->yy_syntax_error(0, 0) #2 /home/miservidor/domains/midominio.com/public_html/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(59): Smarty_Internal_Templateparser->doParse(0, 0) #3 /home/miservidor/domains/midominio.com/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(82): Smarty_Interna in /home/miservidor/domains/midominio.com/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 431 El Backoffice, funciona perfectamente. Es el front, el que muestra el error. Aunque no estoy segura al 100%, creo que este error empiezó a salir, desde que subí al servidor un módulo (extraproducttab) que dió error al intentar instalar. He buscado soluciones pero ninguna parece coincidir con el error que me da a mi. ¿Alguna idea?. Mil gracias te antemano. Edited February 11, 2014 by GD_foro (see edit history) Link to comment Share on other sites More sharing options...
nadie Posted January 9, 2014 Share Posted January 9, 2014 Al parece te dice que tienes un error en el fichero: /themes/mitheme/header.tpl y que debido al error sea de sintaxis o de otra cosa, no puede compilarlo. Link to comment Share on other sites More sharing options...
GD_foro Posted January 9, 2014 Author Share Posted January 9, 2014 El caso es que la línea 121 del header.tpl, no existe! . El código se queda en la línea 120. Link to comment Share on other sites More sharing options...
nadie Posted January 9, 2014 Share Posted January 9, 2014 El caso es que la línea 121 del header.tpl, no existe! . El código se queda en la línea 120. Pegame el codigo del fichero, que lo vea. Link to comment Share on other sites More sharing options...
GD_foro Posted January 10, 2014 Author Share Posted January 10, 2014 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}"> <head> <title>{$meta_title|escape:'htmlall':'UTF-8'}</title> {if isset($meta_description) AND $meta_description} <meta name="description" content="{$meta_description|escape:html:'UTF-8'}" /> {/if} {if isset($meta_keywords) AND $meta_keywords} <meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" /> {/if} <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta name="author" content="Nosotros" /> <meta name="classification" content="Arte floral y decoracion" /> <meta name="generator" content="PrestaShop" /> <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" /> <link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}favicon.ico?{$img_update_time}" /> <link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico?{$img_update_time}" /> <script async="" src="//www.googletagmanager.com/gtm.js?id=GTM-DRHC6X"></script> <script type="text/javascript"> var baseDir = '{$content_dir}'; var static_token = '{$static_token}'; var token = '{$token}'; var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals}; var priceDisplayMethod = {$priceDisplay}; var roundMode = {$roundMode}; </script> {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" /> {/foreach} {/if} {if isset($js_files)} {foreach from=$js_files item=js_uri} <script type="text/javascript" src="{$js_uri}"></script> {/foreach} {/if} {$HOOK_HEADER} </head> <body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}> {literal}<!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-DRHC6X" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-DRHC6X');</script> <!-- End Google Tag Manager -->{literal} <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/es_ES/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> {if !$content_only} {if isset($restricted_country_mode) && $restricted_country_mode} <div id="restricted-country"> <p>{l s='You cannot place a new order from your country.'} <span class="bold">{$geolocation_country}</span></p> </div> {/if} <div id="page"> <!-- Header --> <div id="header"> <a href="http://www.misitio.com" style="border:0px;text-decoration:none;"><img src="http://www.misitio.com/themes/mitheme/img/logo.gif" style="border:0px;"></a> <div id="header_right"> {$HOOK_TOP} </div> </div> <div id="columns"> <!-- Left --> <div id="left_column" class="column"> {$HOOK_LEFT_COLUMN} </div> <!-- Center --> <div id="center_column"> {$HOOK_CENTER_COLUMN} {/if} Link to comment Share on other sites More sharing options...
GD_foro Posted January 13, 2014 Author Share Posted January 13, 2014 Alguna idea? Link to comment Share on other sites More sharing options...
GD_foro Posted February 11, 2014 Author Share Posted February 11, 2014 Lo solucioné simplemente, desinstalando el último módulo que había instalado. No era compatible. Link to comment Share on other sites More sharing options...
Recommended Posts