Jump to content

[SOLUCIONADO] He borrado cache/cache/ y cache/compile y no va la web


castoloreturns

Recommended Posts

¿Si habilitad el debug de errores: http://www.prestashop.com/forums/topic/232476-%C2%BFqu%C3%A9-hacer-cuando-se-queda-la-pantalla-en-blanco-en-prestashop/ te sale algún error para identificar el problema?

Gracias por tu respuesta.

 

Lo he activado y me sale lo siguiente:

 

"Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/www/gmsistemas/usuarios/ftpmelisaes/public_html/themes/pt_centrikids/header.tpl" on line 73 "{if $page_name == ‘index’ or $page_name == ‘search’}" - Unexpected "�" <-- thrown in /home/www/gmsistemas/usuarios/ftpmelisaes/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 73"

 

¿Alguna idea? ¡Gracias de nuevo!

  • Like 1
Link to comment
Share on other sites

Ok, ahora si te sale un error, al menos ya sabemos por donde tirar, como te dice ventura, muestranos el contenido de tu fichero:

/themes/pt_centrikids/header.tpl

Para ver si es un error en ese fichero o sino es en ese fichero, será de algún módulo que carga en el hook disponible en el header.

Edited by nadie (see edit history)
  • Like 1
Link to comment
Share on other sites


{*

* 2007-2013 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-2013 PrestaShop SA

* @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">

<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 " lang="{$lang_iso}"> <![endif]-->

<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7" lang="{$lang_iso}"> <![endif]-->

<!--[if IE 8]><html class="no-js lt-ie9 ie8" lang="{$lang_iso}"> <![endif]-->

<!--[if gt IE 8]> <html class="no-js ie9" lang="{$lang_iso}"> <![endif]-->

<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" />

<meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport"/>

<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,500' rel='stylesheet' type='text/css'/>

<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|addslashes}';

var baseUri = '{$base_uri|addslashes}';

var static_token = '{$static_token|addslashes}';

var token = '{$token|addslashes}';

var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals};

var priceDisplayMethod = {$priceDisplay};

var roundMode = {$roundMode};

if (/*@cc_on!@*/false) {

document.documentElement.className+=' ie10';

}

</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_defer) && !$js_defer && isset($js_files) && isset($js_def)}

{$js_def}

{foreach from=$js_files item=js_uri}

<script type="text/javascript" src="{$js_uri|escape:'html':'UTF-8'}"></script>

{/foreach}

{/if}

{$HOOK_HEADER}

 

<!– canonical –>

{if $page_name == "index" or $page_name == "search"}

<link rel=”canonical” href=”{$base_dir}” />

{elseif $page_name == "category" or $page_name == "best-sales" or $page_name == "cart" or $page_name == "discount" or $page_name == "manufacturer" or $page_name == "new-products" or $page_name == "prices-drop’}

<link rel=”canonical” href=”{$base_dir}{$request_uri|substr:1|regex_replace:’/\/(.*)/’:”|regex_replace:’/\?(.*)/’:”}” />

{else}

<link rel=”canonical” href=”{$base_dir}{$request_uri|substr:1}” />

{/if}

<!– /canonical –>

</head>

 

<body itemscope itemtype="http://schema.org/WebPage"{if isset($page_name)}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if} class="{if isset($page_name)}{$page_name|escape:'htmlall':'UTF-8'}{/if}{if $hide_left_column} hide-left-column{/if}{if $hide_right_column} hide-right-column{/if}{if $content_only} content_only{/if}">

{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">

<div id="top-bar"></div>

<!-- Header -->

<div id="header" class="container_24 clearfix">

<div class="grid_24">

<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">

{$HOOK_TOP}

</div>

</div>

</div>

<div id="nav">

{hook h="displayNav"}

</div>

{if $page_name != 'index'}

<div class="mode_breadcrumb">

<!-- Breadcumb -->

<div class="bc_line container_24 clearfix">

{include file="$tpl_dir./breadcrumb.tpl"}

</div>

</div>

{/if}

{if $page_name == 'index'}

<div class="mode_slideshow">

<div class="clearfix">

{hook h="displayTopColumn"}

</div>

</div>

<div class="cshookhome">

<div class="container_24 clearfix">

{hook h="displayBanner"}

</div>

</div>

{/if}

<div id="columns" class="mode_container">

<div class="container_24 clearfix">

<!-- Left -->

{if $page_name == 'index' || $page_name == 'products-comparison'}

<!-- Center -->

<div id="center_column" class="grid_24">

{else}

{if isset($left_column_size) && !empty($left_column_size)}

<div id="left_column" class="grid_{$left_column_size|intval} lr_column">

{$HOOK_LEFT_COLUMN}

</div>

{/if}

<!-- Center -->

<div id="center_column" class="{$center_class}">

{/if}

 

{/if}

 

Link to comment
Share on other sites

El error te esta dando aquí:

{if $page_name == "index" or $page_name == "search"}
<link rel=”canonical” href=”{$base_dir}” />
{elseif $page_name == "category" or $page_name == "best-sales" or $page_name == "cart" or $page_name == "discount" or $page_name == "manufacturer" or $page_name == "new-products" or $page_name == "prices-drop’}
<link rel=”canonical” href=”{$base_dir}{$request_uri|substr:1|regex_replace:’/\/(.*)/’:”|regex_replace:’/\?(.*)/’:”}” />
{else}
<link rel=”canonical” href=”{$base_dir}{$request_uri|substr:1}” />
{/if}
Edited by nadie (see edit history)
Link to comment
Share on other sites

Si me cargo esta parte del header:

<!– canonical –>
{if $page_name == "index" or $page_name == "search"}
<link rel=”canonical” href=”{$base_dir}” />
{elseif $page_name == "category" or $page_name == "best-sales" or $page_name == "cart" or $page_name == "discount" or $page_name == "manufacturer" or $page_name == "new-products" or $page_name == "prices-drop’}
<link rel=”canonical” href=”{$base_dir}{$request_uri|substr:1|regex_replace:’/\/(.*)/’:”|regex_replace:’/\?(.*)/’:”}” />
{else}
<link rel=”canonical” href=”{$base_dir}{$request_uri|substr:1}” />
{/if}
<!– /canonical –>

La web ya funciona, pero me aparecen dos nuevos errores:

Notice: Undefined index: have_image in /home/www/gmsistemas/usuarios/ftpmelisaes/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 37

Notice: Trying to get property of non-object in /home/www/gmsistemas/usuarios/ftpmelisaes/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 37

 

Además que en las páginas de categorías me aparece con un texto arriba que no estaba, como podéis ver aquí.

9hum8o.png

Link to comment
Share on other sites

 

El error te esta dando aquí:

{if $page_name == "index" or $page_name == "search"}
<link rel=”canonical” href=”{$base_dir}” />
{elseif $page_name == "category" or $page_name == "best-sales" or $page_name == "cart" or $page_name == "discount" or $page_name == "manufacturer" or $page_name == "new-products" or $page_name == "prices-drop’}
<link rel=”canonical” href=”{$base_dir}{$request_uri|substr:1|regex_replace:’/\/(.*)/’:”|regex_replace:’/\?(.*)/’:”}” />
{else}
<link rel=”canonical” href=”{$base_dir}{$request_uri|substr:1}” />
{/if}

Gracias. He borrado ese bloque pero como te he puesto arriba me han dado más fallos.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...