Jump to content

Fatal Error Header.tpl - Page blanche


Recommended Posts

Bonjour à tous !

 

Dès que je modifie mon fichier header.tpl de mon thème, mon site n'apparait plus, page blanche… plus de favicon, comme si le site n'existait pas et été vide.

 

Ducoup je modifie le fichier Defines.inc.php en " true " pour voir quelle erreur il affiche, et la voici :

 

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/passioneda/themes/theme1122/header.tpl" on line 83 "<img class="logo img-responsive" src="{$http://www.passion-exterieur.fr/themes/theme1122/img/logo.png}" alt="{$shop_name|escape:'html':'UTF-8'}"{if isset($logo_image_width) && $logo_image_width} width="{$logo_image_width}"{/if}{if isset($logo_image_height) && $logo_image_height} height="{$logo_image_height}"{/if}/>" - Unexpected "/", expected one of: "identifier" <-- thrown in /home/passioneda/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 83

 

En supprimant cette ligne le site remarche mais le logo d'apparait plus.

Comment puis-je corriger ce probleme ? Pourquoi cette ligne marche, et ne marche plus une fois que je modifie le header.tpl sans meme toucher à cette ligne ? Voici le code figurant dans mon header.tpl :

 

<a href="{$base_dir}" title="{$shop_name|escape:'html':'UTF-8'}">
    <img class="logo img-responsive" src="{$
http://www.passion-exterieur.fr/themes/theme1122/img/logo.png}" alt="{$shop_name|escape:'html':'UTF-8'}"{if        isset($logo_image_width) && $logo_image_width} width="{$logo_image_width}"{/if}{if isset($logo_image_height) && $logo_image_height} height="{$logo_image_height}"{/if}/>
</a>

 

Merci à tous pour votre aide.

 

:-)

Edited by Frowler (see edit history)
Link to comment
Share on other sites

Ne pas utiliser {} autour de l'URL.

Don't use {} around the URL.

<a href="{$base_dir}" title="{$shop_name|escape:'html':'UTF-8'}">
    <img class="logo img-responsive" src="http://www.passion-exterieur.fr/themes/theme1122/img/logo.png" alt="{$shop_name|escape:'html':'UTF-8'}"{if        isset($logo_image_width) && $logo_image_width} width="{$logo_image_width}"{/if}{if isset($logo_image_height) && $logo_image_height} height="{$logo_image_height}"{/if}/>
</a>
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...