Gojideportes.es Posted February 14, 2013 Share Posted February 14, 2013 Al querer cambiar de color el fondo de mi tienda, mediante este tutorial: http://victor-rodenas.com/2013/01/05/guia-cambiar-el-fondo-de-tu-tienda-segun-el-contenido-creado-cms-en-prestashop-1-5/ algo he cambiado en global.css o en header.tpl que al guardar mediante FileZilla y volver a cargar la web me da error 500 como indica la foto adjuntada. adjunto pantallazos del error, de global.css y de header.tpl por si encontrarais alguna alteración que provoque ese error. www.gojideportes.es Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted February 14, 2013 Share Posted February 14, 2013 Habilita debug de errores. Link to comment Share on other sites More sharing options...
Gojideportes.es Posted February 14, 2013 Author Share Posted February 14, 2013 Donde habilito debug de errores? Gracias.. Link to comment Share on other sites More sharing options...
nadie Posted February 14, 2013 Share Posted February 14, 2013 Hola ! En el <body> lo has dejado así: <body {if isset($page_name)}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if} class="{if $hide_left_column}hide-left-column{/if} {if $hide_right_column}hide-right-column{/if} {if $smarty.get.id_cms}contenido{$smarty.get.id_cms}{/if}"> ¿? Link to comment Share on other sites More sharing options...
Gojideportes.es Posted February 14, 2013 Author Share Posted February 14, 2013 Me faltaba esta parte : {if $smarty.get.id_cms}contenido{$smarty.get.id_cms}{/if}"> pero al volver a subirlo sigue el mismo error .. Link to comment Share on other sites More sharing options...
nadie Posted February 14, 2013 Share Posted February 14, 2013 Haz una cosa ve al fichero: /config/defines.inc.php Busca esto: define('_PS_MODE_DEV_', false); Y dejalo asi: define('_PS_MODE_DEV_', true); Y dime si depende un 500 te sale otra cosa. Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted February 14, 2013 Share Posted February 14, 2013 Haz lo que comenta el usuario "Nadie". Link to comment Share on other sites More sharing options...
Gojideportes.es Posted February 14, 2013 Author Share Posted February 14, 2013 Ya lo he hecho y en vez de salir el error 500 anterior ahora sale esto: Warning: Function addCSS() is deprecated in /home/gojidepo/public_html/modules/blocklogin/blocklogin.php on line 50 in /home/gojidepo/public_html/classes/Tools.php on line 1777 Warning: Function isLogged() is deprecated in /home/gojidepo/public_html/modules/blocklogin/blocklogin.php on line 34 in /home/gojidepo/public_html/classes/Tools.php on line 1777 Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/gojidepo/public_html/themes/Simple/header.tpl" on line 92 "{/if}" unexpected closing tag' in /home/gojidepo/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:627 Stack trace: #0 /home/gojidepo/public_html/tools/smarty/sysplugins/smarty_internal_compilebase.php(170): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unexpected clos...', 92) #1 /home/gojidepo/public_html/tools/smarty/sysplugins/smarty_internal_compile_if.php(197): Smarty_Internal_CompileBase->closeTag(Object(Smarty_Internal_SmartyTemplateCompiler), Array) #2 /home/gojidepo/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(429): Smarty_Internal_Compile_Ifclose->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #3 /home/gojidepo/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(227): Smarty_Internal_TemplateCompilerBase->callTagCompi in/home/gojidepo/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 627 Link to comment Share on other sites More sharing options...
Gojideportes.es Posted February 15, 2013 Author Share Posted February 15, 2013 Por lo que veo hay más de un error. Me podéis decir dónde solucionarlo o intentar hacer algo, gracias. Link to comment Share on other sites More sharing options...
nadie Posted February 15, 2013 Share Posted February 15, 2013 Respecto al error del header.tpl, copiarme el error que te da el tpl, es decir copiame como tienes la lineas de la 90 a la 92 del header.tpl de tu plantilla Link to comment Share on other sites More sharing options...
Gojideportes.es Posted February 15, 2013 Author Share Posted February 15, 2013 Esto: <div id="center_column" class=" grid_5"> {/if} Link to comment Share on other sites More sharing options...
Gojideportes.es Posted February 15, 2013 Author Share Posted February 15, 2013 Perdón me falta una línea: <!-- Center --> <div id="center_column" class=" grid_5"> {/if} Link to comment Share on other sites More sharing options...
Gojideportes.es Posted February 15, 2013 Author Share Posted February 15, 2013 Respecto al error del header.tpl, copiarme el error que te da el tpl, es decir copiame como tienes la lineas de la 90 a la 92 del header.tpl de tu plantilla <!-- Center --> <div id="center_column" class=" grid_5"> {/if} Link to comment Share on other sites More sharing options...
nadie Posted February 15, 2013 Share Posted February 15, 2013 <!-- Center --> <div id="center_column" class=" grid_5"> {/if} Pasame todo el contenido de tu header.tpl Un Saludo Link to comment Share on other sites More sharing options...
Gojideportes.es Posted February 15, 2013 Author Share Posted February 15, 2013 Pasame todo el contenido de tu header.tpl Un Saludo {* * 2007-2012 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2012 PrestaShop SA * @version Release: $Revision: 6594 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!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 http-equiv="content-language" content="{$meta_language}" /> <meta name="generator" content="PrestaShop" /> <meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" /> <link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" /> <link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" /> <script type="text/javascript"> var baseDir = '{$content_dir}'; var baseUri = '{$base_uri}'; 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 isset($page_name)}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if} class="{if $hide_left_column}hide-left-column{/if} {if $hide_right_column}hide-right-column{/if} {if $smarty.get.id_cms}contenido{$smarty.get.id_cms}{/if}"> {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" class="container_9 clearfix"> <!-- Header --> <div id="header" class="grid_9 alpha omega"> <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> </a> <div id="header_right" class="grid_6 omega"> {$HOOK_TOP} </div> </div> <div id="columns" class="grid_9 alpha omega clearfix"> <!-- Left --> <div id="left_column" class="column grid_2 alpha"> {$HOOK_LEFT_COLUMN} </div> <!-- Center --> <div id="center_column" class=" grid_5"> {/if} Link to comment Share on other sites More sharing options...
Gojideportes.es Posted February 15, 2013 Author Share Posted February 15, 2013 Pasame todo el contenido de tu header.tpl Un Saludo Hay solución? Gracias Link to comment Share on other sites More sharing options...
nadie Posted February 15, 2013 Share Posted February 15, 2013 Hay solución? Gracias Coje este header.tpl que adjunto y cambialo por el tuyo. (Es decir el zip que te adjunto descomprimelo, coje el header.tpl del fichero descomprimido y cambia el que yo te envio por el tuyo) header.zip Link to comment Share on other sites More sharing options...
Gojideportes.es Posted February 15, 2013 Author Share Posted February 15, 2013 Coje este header.tpl que adjunto y cambialo por el tuyo. (Es decir el zip que te adjunto descomprimelo, coje el header.tpl del fichero descomprimido y cambia el que yo te envio por el tuyo) He copiado otro tema default en .zip en ruta: public_html/themes y al cambiarlo en Preferencias/temas se ha solucionado. Pero quiero saber si en el header.tpl sigue habiendo algún fallo aunque la web funcione, gracias de nuevo. Link to comment Share on other sites More sharing options...
Recommended Posts