IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

EDI, CMS, Outils, Scripts et API PHP Discussion :

Erreur fiche produit après mise à jour prestashop


Sujet :

EDI, CMS, Outils, Scripts et API PHP

  1. #1
    Membre habitué
    Profil pro
    Inscrit en
    Février 2006
    Messages
    321
    Détails du profil
    Informations personnelles :
    Localisation : France, Nord (Nord Pas de Calais)

    Informations forums :
    Inscription : Février 2006
    Messages : 321
    Points : 142
    Points
    142
    Par défaut Erreur fiche produit après mise à jour prestashop
    Bonjour,

    J'ai fait la mise à jour sur un de mes sites pour passer de la 1.7.4 à la 1.7.6 et j'ai une erreur qui persiste sur les fiches produits et je ne vois pas comment la résoudre (j'ai désactivé tous les modules un par un, j'ai vidé le cache plusieurs fois).

    Voici les erreurs :
    (1/1) ContextErrorException
    Notice: Undefined index: yourVar
    in b93d8131e6b7768f1327cf11a4a276b8cf02f5ae_2.file.stylesheets.tpl.php line 33
    at content_5e25c3b58acd55_44926413(object(SmartyDevTemplate))
    in smarty_template_resource_base.php line 123
    at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))
    in smarty_template_compiled.php line 114
    at Smarty_Template_Compiled->render(object(SmartyDevTemplate))
    in smarty_internal_template.php line 216
    at Smarty_Internal_Template->render()
    in smarty_internal_template.php line 385
    at Smarty_Internal_Template->_subTemplateRender('file:_partials/stylesheets.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array('stylesheets' => array('external' => array('theme-main' => array('id' => 'theme-main', 'type' => 'external', 'path' => '/themes/pluseo/assets/css/theme.css', 'uri' => 'http://www.sandy.fr/themes/pluseo/assets/css/theme.css', 'media' => 'all', 'priority' => 50, 'server' => 'local'), 'jquery-ui' => array('id' => 'jquery-ui', 'type' => 'external', 'path' => '/js/jquery/ui/themes/base/minified/jquery-ui.min.css', 'uri' => 'http://www.sandy.fr/js/jquery/ui/themes/base/minified/jquery-ui.min.css', 'media' => 'all', 'priority' => 90, 'server' => 'local'), 'jquery-ui-theme' => array('id' => 'jquery-ui-theme', 'type' => 'external', 'path' => '/js/jquery/ui/themes/base/minified/jquery.ui.theme.min.css', 'uri' => 'http://www.sandy.fr/js/jquery/ui/themes/base/minified/jquery.ui.theme.min.css', 'media' => 'all', 'priority' => 95, 'server' => 'local')), 'inline' => array())), 0, false)
    in 1c11a0e6dea4162763217d0e46698ad48fd7be70_2.file.head.tpl.php line 150
    at Block_10331482665e25c3b589f478_73217684->callBlock(object(SmartyDevTemplate))
    in smarty_internal_runtime_inheritance.php line 248
    at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_10331482665e25c3b589f478_73217684), object(SmartyDevTemplate))
    in smarty_internal_runtime_inheritance.php line 184
    at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_10331482665e25c3b589f478_73217684))
    in smarty_internal_runtime_inheritance.php line 156
    at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_10331482665e25c3b589f478_73217684', 'stylesheets')
    in 1c11a0e6dea4162763217d0e46698ad48fd7be70_2.file.head.tpl.php line 53
    at content_5e25c3b58a2ca5_47444049(object(SmartyDevTemplate))
    in smarty_template_resource_base.php line 123
    at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))
    in smarty_template_compiled.php line 114
    at Smarty_Template_Compiled->render(object(SmartyDevTemplate))
    in smarty_internal_template.php line 216
    at Smarty_Internal_Template->render()
    in smarty_internal_template.php line 385
    at Smarty_Internal_Template->_subTemplateRender('file:_partials/head.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 0, false)
    in b25f396c95c4f576b56d81d334b25e609373b73f_2.file.layout-both-columns.tpl.php line 211
    at Block_9540025495e25c3b587c580_39281819->callBlock(object(SmartyDevTemplate))
    in smarty_internal_runtime_inheritance.php line 248
    at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_9540025495e25c3b587c580_39281819), object(SmartyDevTemplate))
    in smarty_internal_runtime_inheritance.php line 232
    at Smarty_Internal_Runtime_Inheritance->callParent(object(SmartyDevTemplate), object(Block_8444828785e257bc053e907_39587290), '\'{block append}\'')
    in smarty_internal_runtime_inheritance.php line 181
    at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_8444828785e257bc053e907_39587290), object(Block_9540025495e25c3b587c580_39281819))
    in smarty_internal_runtime_inheritance.php line 186
    at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_9540025495e25c3b587c580_39281819))
    in smarty_internal_runtime_inheritance.php line 156
    at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_9540025495e25c3b587c580_39281819', 'head')
    in b25f396c95c4f576b56d81d334b25e609373b73f_2.file.layout-both-columns.tpl.php line 41
    at content_5e25c3b5890bd9_37988997(object(SmartyDevTemplate))
    in smarty_template_resource_base.php line 123
    at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))
    in smarty_template_compiled.php line 114
    at Smarty_Template_Compiled->render(object(SmartyDevTemplate))
    in smarty_internal_template.php line 216
    at Smarty_Internal_Template->render()
    in smarty_internal_template.php line 385
    at Smarty_Internal_Template->_subTemplateRender('layouts/layout-both-columns.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)
    in smarty_internal_runtime_inheritance.php line 125
    at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')
    in b6f1aa9cc692fe5837326a60eb828c7cbd10d4ef_2.file.layout-full-width.tpl.php line 42
    at content_5e25c3b5877669_97878147(object(SmartyDevTemplate))
    in smarty_template_resource_base.php line 123
    at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))
    in smarty_template_compiled.php line 114
    at Smarty_Template_Compiled->render(object(SmartyDevTemplate))
    in smarty_internal_template.php line 216
    at Smarty_Internal_Template->render()
    in smarty_internal_template.php line 385
    at Smarty_Internal_Template->_subTemplateRender('layouts/layout-full-width.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)
    in smarty_internal_runtime_inheritance.php line 125
    at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')
    in 41c7ddfd337761640a960bbad009dd24c19e2bdc_2.file.product.tpl.php line 53
    at content_5e257bc0567b03_15636649(object(SmartyDevTemplate))
    in smarty_template_resource_base.php line 123
    at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))
    in smarty_template_compiled.php line 114
    at Smarty_Template_Compiled->render(object(SmartyDevTemplate))
    in smarty_internal_template.php line 216
    at Smarty_Internal_Template->render(false, 0)
    in smarty_internal_templatebase.php line 232
    at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, 'layouts/layout-full-width.tpl', null, 0)
    in smarty_internal_templatebase.php line 116
    at Smarty_Internal_TemplateBase->fetch('catalog/product.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)
    in SmartyDev.php line 40
    at SmartyDev->fetch('catalog/product.tpl', null, 'layouts/layout-full-width.tpl')
    in FrontController.php line 683
    at FrontControllerCore->smartyOutputContent('catalog/product.tpl')
    in FrontController.php line 667
    at FrontControllerCore->display()
    in Controller.php line 312
    at ControllerCore->run()
    in Dispatcher.php line 515
    at DispatcherCore->dispatch()
    in index.php line 28
    D'avance, je vous remercie

  2. #2
    Expert éminent sénior
    Avatar de rawsrc
    Homme Profil pro
    Dev indep
    Inscrit en
    Mars 2004
    Messages
    6 142
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Dev indep

    Informations forums :
    Inscription : Mars 2004
    Messages : 6 142
    Points : 16 545
    Points
    16 545
    Billets dans le blog
    12
    Par défaut
    salut,

    vérifie dans le fichier :
    Notice: Undefined index: yourVar
    Le souci c'est de localiser précisément où
    in b93d8131e6b7768f1327cf11a4a276b8cf02f5ae_2.file.stylesheets.tpl.php line 33
    at content_5e25c3b58acd55_44926413(object(SmartyDevTemplate))
    Comme pour fonctionner, ces fichus moteurs de rendu ont besoin de tout parser pour transformer leur syntaxe en PHP ainsi que d'un énorme gestionnaire de cache (sinon les perfs seraient moisies), du coup tu te retrouves un peu partout avec des valeurs imbitables.
    c'est vraiment des usines à gaz. Purée : la simplicité, la simplicité les gars.

  3. #3
    Membre habitué
    Profil pro
    Inscrit en
    Février 2006
    Messages
    321
    Détails du profil
    Informations personnelles :
    Localisation : France, Nord (Nord Pas de Calais)

    Informations forums :
    Inscription : Février 2006
    Messages : 321
    Points : 142
    Points
    142
    Par défaut
    Bonjour,

    Merci du retour, j'ai trouvé la variable YourVar dans le fichier stylesheets.tpl du thème.

    Mais je dois en faire quoi exactement, je n'ai pas compris (je précise que je n'ai pas développé le site que je viens de le récupérer et que je dois le mettre à jour)

  4. #4
    Membre habitué
    Profil pro
    Inscrit en
    Février 2006
    Messages
    321
    Détails du profil
    Informations personnelles :
    Localisation : France, Nord (Nord Pas de Calais)

    Informations forums :
    Inscription : Février 2006
    Messages : 321
    Points : 142
    Points
    142
    Par défaut
    Voici ce que j'ai dans le fichier :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    {foreach $stylesheets.external as $stylesheet}
      <link rel="stylesheet" href="{$stylesheet.uri}?{$yourVar}&v={$smarty.now}" type="text/css" media="{$stylesheet.media}">
    {/foreach}
     
    {foreach $stylesheets.inline as $stylesheet}
      <style>
        {$stylesheet.content}
      </style>
    {/foreach}

Discussions similaires

  1. [Lazarus] Code erreur : "duplicate mainicon" après mise à jour de Lazarus
    Par Flagad'aware dans le forum Lazarus
    Réponses: 2
    Dernier message: 22/01/2017, 19h19
  2. Réponses: 0
    Dernier message: 30/07/2016, 11h22
  3. [ODS] Erreur après mise à jour ODS TAGSETS
    Par Invité dans le forum ODS et reporting
    Réponses: 15
    Dernier message: 17/10/2011, 15h26
  4. Erreur après mise à jour
    Par Henri Payre dans le forum Mac OS X
    Réponses: 1
    Dernier message: 02/08/2011, 16h27
  5. Réponses: 4
    Dernier message: 03/09/2008, 11h01

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo