Jean Francois G Posted June 28, 2019 Share Posted June 28, 2019 (edited) Bonjour a tous, j'aimerais vous soumettre une difficulté que je rencontre avec ma boutique. Elle se situe lorsque je mets le site en mode debug et la page produit. Ce problème apparait, que le site ai eu un vidage du cache ou pas, et quel que soit les réglages dans "performances". Idem si j'efface les dossiers dev et prod de /var/cache/ Le voici : Si je suis en mode Prod, tout est ok et la page produit s'affiche correctement. Mais si je passe en mode dev, sans rien changer du site j'ai ceci à la place de la page produit (ce ne pas des warnings car en fait la vrai page n'apparait plus du tout) : (1/1) ContextErrorException Notice: Undefined offset: 5 in reviewshelp.class.php line 573 at reviewshelp->getReviews(array('id_product' => 263, 'start' => 0))in reviewsnippets.php line 733 at reviewsnippets->hookProductTabContent(array('product' => object(ProductLazyArray), 'category' => object(Category), 'smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 3))in reviewsnippets.php line 1262 at reviewsnippets->hookproductFooter(array('product' => object(ProductLazyArray), 'category' => object(Category), 'smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 3))in Hook.php line 966 at HookCore::coreCallHook(object(reviewsnippets), 'hookproductfooter', array('product' => object(ProductLazyArray), 'category' => object(Category), 'smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 3))in Hook.php line 355 at HookCore::callHookOn(object(reviewsnippets), 'displayFooterProduct', array('product' => object(ProductLazyArray), 'category' => object(Category), 'smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 3))in Hook.php line 903 at HookCore::exec('displayFooterProduct', array('product' => object(ProductLazyArray), 'category' => object(Category), 'smarty' => object(SmartyDevTemplate)), null)in smarty.config.inc.php line 165 at smartyHook(array('h' => 'displayFooterProduct', 'product' => object(ProductLazyArray), 'category' => object(Category)), object(SmartyDevTemplate)) at call_user_func_array('smartyHook', array(array('h' => 'displayFooterProduct', 'product' => object(ProductLazyArray), 'category' => object(Category)), object(SmartyDevTemplate)))in SmartyLazyRegister.php line 83 at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayFooterProduct', 'product' => object(ProductLazyArray), 'category' => object(Category)), object(SmartyDevTemplate))) at SmartyLazyRegister->smartyHook(array('h' => 'displayFooterProduct', 'product' => object(ProductLazyArray), 'category' => object(Category)), object(SmartyDevTemplate)) at call_user_func_array(array(object(SmartyLazyRegister), 'smartyHook'), array(array('h' => 'displayFooterProduct', 'product' => object(ProductLazyArray), 'category' => object(Category)), object(SmartyDevTemplate)))in 4d1552fd9d957915c296e2e037cbfd8fe32e92bf_2.file.product.tpl.php line 574 at Block_10550770985d1632f49a30a8_08751274->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_10550770985d1632f49a30a8_08751274), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_10550770985d1632f49a30a8_08751274))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_10550770985d1632f49a30a8_08751274', 'product_footer', 0)in 4d1552fd9d957915c296e2e037cbfd8fe32e92bf_2.file.product.tpl.php line 788 at Block_17019095195d1632f48f25e9_35704653->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_17019095195d1632f48f25e9_35704653), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_17019095195d1632f48f25e9_35704653), object(Block_9708650185d1632eebf2190_30667131))in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_9708650185d1632eebf2190_30667131))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_9708650185d1632eebf2190_30667131', 'content', 1)in 446a7a49cb54fa4e7a80b2eba05894713dc9f8c1_2.file.layout-left-column.tpl.php line 82 at Block_13224652285d1632eebee5e5_79147817->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_13224652285d1632eebee5e5_79147817), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_13224652285d1632eebee5e5_79147817), object(Block_7784484775d1632eec24497_13590871))in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_7784484775d1632eec24497_13590871))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_7784484775d1632eec24497_13590871', 'center_column')in 96eaff5637c104a693a1a011bbe37a83c752bf78_2.file.layout-both-columns.tpl.php line 108 at content_5d1632eec3c7e1_13341743(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-left-column.tpl', 0, 31536000, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 126 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in 446a7a49cb54fa4e7a80b2eba05894713dc9f8c1_2.file.layout-left-column.tpl.php line 39 at content_5d1632eebf5064_31875431(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-left-column.tpl', null, 'layouts/layout-left-column.tpl', 0, 31536000, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 126 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-left-column.tpl')in 4d1552fd9d957915c296e2e037cbfd8fe32e92bf_2.file.product.tpl.php line 55 at content_5d1632f49aba97_59209858(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('catalog/product.tpl', null, 'layouts/layout-left-column.tpl', null, 0)in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch('catalog/product.tpl', null, 'layouts/layout-left-column.tpl', null, false, true, false)in SmartyDev.php line 40 at SmartyDev->fetch('catalog/product.tpl', null, 'layouts/layout-left-column.tpl')in FrontController.php line 682 at FrontControllerCore->smartyOutputContent('catalog/product.tpl')in FrontController.php line 666 at FrontControllerCore->display()in Controller.php line 301 at ControllerCore->run()in Dispatcher.php line 511 at DispatcherCore->dispatch()in index.php line 28 Est ce qu'il manquerais un mod sur le serveur ? Je suis en PHP 5.5 fcgi J'ai beau vider le cache, supprimer les dossiers du cache, forcer la compilation.. C'est pareil.. Si on prend par exemple la 1ere erreur, la ligne visée reviewshelp.class.php line 573 est celle ci : $name_page = Tools::stripslashes($product_obj->name[$id_lang]); Le truc de dingue c'est que si je repasse en prod, la page refonctionne. Donc je me dis : "C'est un problème de cache et le dossier dev doit être avec un mauvais contenu ! " alors je vais en ssh et je supprime carrément les dossiers. Je me remets en prod : Tout est ok.. Je me remets en dev : La page d'erreur s'affiche.. C'est pas fou ca ? Si quelqu'un a une idée ? Edited June 28, 2019 by Jean Francois G (see edit history) Link to comment Share on other sites More sharing options...
Mediacom87 Posted June 28, 2019 Share Posted June 28, 2019 C'est juste un message d'information (Notice) qui indique que l'élément 5 n'existe pas dans les données cherchées, donc c'est au niveau du module d'avis qu'il faudrait regardé ce qu'il cherche pour trouver ce qui manque. Link to comment Share on other sites More sharing options...
yama Posted June 29, 2019 Share Posted June 29, 2019 Probablement la modif que t'as fait pour Google en te basant sur le tuto de webbax. Link to comment Share on other sites More sharing options...
Jean Francois G Posted June 29, 2019 Author Share Posted June 29, 2019 (edited) ben en fait non car j'avais changé de thème entre temps donc les modifs ont été ecrasées. D'ailleurs j'ai maintenant à nouveau des avertissements google. C'est autre chose.. notamment il me trouve une erreur ici : $name_page = Tools::stripslashes($product_obj->name[$id_lang]); Je penche pour mediacom87 et je vais sans doute faire une demande du coté du module reviewsnipets puisque c'est la toute nouvelle version du module que j'ai racheté il y a moins d'un mois.. Edited June 29, 2019 by Jean Francois G (see edit history) 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