Le-cathare Posted July 20, 2013 Share Posted July 20, 2013 (edited) Bonjour Mon favicon ne s'affiche pas sur le FO sauf dans la page panier. Coté BO il s'affiche Que puis-je faire ? Merci d'avance de votre aide Edited July 20, 2013 by Le-cathare (see edit history) Link to comment Share on other sites More sharing options...
Prestaspirit Posted July 20, 2013 Share Posted July 20, 2013 Bonjour, Peut etre donner l'url du site en question pour qu'on puisse voir ce qui ne va pas. Vous pouvez créer un short link si vous ne voulez pas mettre l'url directement sur le forum Link to comment Share on other sites More sharing options...
Le-cathare Posted July 20, 2013 Author Share Posted July 20, 2013 L'url du site est sur ma signature : www.huilletprocie.com/boutique Link to comment Share on other sites More sharing options...
Prestaspirit Posted July 20, 2013 Share Posted July 20, 2013 Très jolie boutique ! Le favicon n'existe tout simplement pas http://www.huilletprocie.com/boutique/img/favicon.jpg?1374311626 surtout en jpg, je pense qu'une modification à été faite dans votre thème, il faut voir dans le fichier header.tpl de votre thème et modifier en .ico qui lui existe bien http://www.huilletprocie.com/boutique/img/favicon.ico?1374311626 Link to comment Share on other sites More sharing options...
Le-cathare Posted July 20, 2013 Author Share Posted July 20, 2013 (edited) Bonjour Merci pour vos compliment. Bizzare. Pourquoi alors dans le panier il s'affiche ? le thème et un thème acheter, car passer de la version 1.4.11 à 1.5.4.1. j'avais pas le temps de refaire un thème, j'ai donc préférer en acheter un Dans le fichier en question voi les lignes qui corresponde au favicon. <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}" /> que dois-je faire Edited July 20, 2013 by Le-cathare (see edit history) Link to comment Share on other sites More sharing options...
Prestaspirit Posted July 20, 2013 Share Posted July 20, 2013 ça s'affiche parce que vous l'avez dans votre cache navigateur, de mon coté rien ne s'affiche. Regardez dans le dossier override/classes/FrontController.php la variable favicon_url a due être modifiée Link to comment Share on other sites More sharing options...
Le-cathare Posted July 20, 2013 Author Share Posted July 20, 2013 Je trouve pas cette variable : class FrontController extends FrontControllerCore { // Override for 1.4 public function init() { if (parent::$initialized) return ; $ret = parent::init(); // This override is part of the cloudcache module, so the cloudcache.php file exists require_once(dirname(__FILE__).'/../../modules/cloudcache/cloudcache.php'); // As parent::init() set the parent::$initialized flag, all below will be done only once. $module = new CloudCache(); if (!$module->active || !Configuration::get('CLOUDCACHE_API_ACTIVE')) return $ret; // Use global because 1.4 only, 1.5 is in an other file global $smarty; $assignArray = array( 'img_ps_dir' => _PS_IMG_, 'img_cat_dir' => _THEME_CAT_DIR_, 'img_lang_dir' => _THEME_LANG_DIR_, 'img_prod_dir' => _THEME_PROD_DIR_, 'img_manu_dir' => _THEME_MANU_DIR_, 'img_sup_dir' => _THEME_SUP_DIR_, 'img_ship_dir' => _THEME_SHIP_DIR_, 'img_store_dir' => _THEME_STORE_DIR_, 'img_col_dir' => _THEME_COL_DIR_, 'img_dir' => _THEME_IMG_DIR_, 'css_dir' => _THEME_CSS_DIR_, 'js_dir' => _THEME_JS_DIR_, 'pic_dir' => _THEME_PROD_PIC_DIR_ ); $httHost = Tools::getHttpHost(); $useSSL = ((isset($this->ssl) && $this->ssl && Configuration::get('PS_SSL_ENABLED')) && Tools::usingSecureMode()) ? true : false; $protocol_content = ($useSSL) ? 'https://' : 'http://'; foreach ($assignArray as $assignKey => $assignValue) if (substr($assignValue, 0, 1) == '/' || $protocol_content == 'https://') $smarty->assign($assignKey, $protocol_content.Tools::getMediaServer($assignValue).$assignValue); else $smarty->assign($assignKey, $assignValue); return $ret; } } Link to comment Share on other sites More sharing options...
Prestaspirit Posted July 20, 2013 Share Posted July 20, 2013 vous avez regardé dans le fichier du coeur, dans classes/controller/FrontController.php cette variable à été modifié quelques part Link to comment Share on other sites More sharing options...
Le-cathare Posted July 20, 2013 Author Share Posted July 20, 2013 je trouve pas le dossier en causse. J'ai juste fait une MAJ et acheter un thème Link to comment Share on other sites More sharing options...
Le-cathare Posted July 20, 2013 Author Share Posted July 20, 2013 et si tout simplement je renomme mon favicon.ico en favicon.jpg par ftp ? Link to comment Share on other sites More sharing options...
Le-cathare Posted July 20, 2013 Author Share Posted July 20, 2013 Apparemment cela serait un bug. voir ici http://forge.prestashop.com/browse/PSCFV-8997 Link to comment Share on other sites More sharing options...
Le-cathare Posted July 20, 2013 Author Share Posted July 20, 2013 (edited) Zut , je n'arrive pas a trouver dans quel fichier sont écritent c'est deux lignes <link rel="icon" type="image/vnd.microsoft.icon" href="/boutique/img/favicon.jpg?1374320961"> <link rel="shortcut icon" type="image/x-icon" href="/boutique/img/favicon.jpg?1374320961"> pour les remplacer par <link rel="icon" type="image/vnd.microsoft.icon" href="/boutique/img/favicon.ico?1374320961"> <link rel="shortcut icon" type="image/x-icon" href="/boutique/img/favicon.ico?1374320961"> Edited July 20, 2013 by Le-cathare (see edit history) Link to comment Share on other sites More sharing options...
Le-cathare Posted July 20, 2013 Author Share Posted July 20, 2013 c'est bon sa fonctionne Donc le fichier header.tpl de mon théme j'ai remplacé <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}" /> par <link rel="icon" type="image/vnd.microsoft.icon" href="/boutique/img/favicon.ico?1374320961"> <link rel="shortcut icon" type="image/x-icon" href="/boutique/img/favicon.ico?1374320961"> Merci à prestaspirit pour son aide. Link to comment Share on other sites More sharing options...
Prestaspirit Posted July 20, 2013 Share Posted July 20, 2013 Si vous voulez faire ça faite au moins comme ça : <link rel="icon" type="image/vnd.microsoft.icon" href="/boutique/img/favicon.ico?{$img_update_time}"> <link rel="shortcut icon" type="image/x-icon" href="/boutique/img/favicon.ico?{$img_update_time}"> Link to comment Share on other sites More sharing options...
Le-cathare Posted July 22, 2013 Author Share Posted July 22, 2013 Ok merci Link to comment Share on other sites More sharing options...
Prestaspirit Posted July 22, 2013 Share Posted July 22, 2013 de rien Link to comment Share on other sites More sharing options...
guet22 Posted November 22, 2014 Share Posted November 22, 2014 Merci beaucoup ! j'ai collé ton code prestaspirit et direct mon favicon est la ! au top ! Link to comment Share on other sites More sharing options...
Arnaud Drieux Posted August 27, 2015 Share Posted August 27, 2015 Bonjour à tous.Si vous avez migré, ou que vous êtes sur l'une des dernières versions de prestashop, pensez simplement à regarder dans votre base de donnée. Dans la table ps_configuration, trouvez la ligne PS_FAVICON. Il est fort probable qu'au lieu d'une seule ligne, vous en trouvez deux.Exemple : name valuePS_FAVICON favicon.ico PS_FAVICON favicon.jpg De part le fait, prestashop ne sait pas quelle ligne prendre et retourne une erreur.Supprimez simplement la ligne du favicon.jpg Link to comment Share on other sites More sharing options...
Celic Posted October 23, 2015 Share Posted October 23, 2015 Bonjour à tous header.tpl => Done favicon.ico en 16*16px=> Done ps_configuration=> Done Et ça fonctionne enfin !! Plus de point d'interrogation, image visible sur BO et FO. Merci à tous Réalisé sur Prestashop 1.6.1.1 et firefox Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now