Michel presta Posted February 11 Share Posted February 11 (edited) Bonjour à tous, j'étais entrain de modifier les CSS de mon site quand j'ai du faire une fausse manipulation au moment de fermer l'éditeur. en effet, j'étais satisfait du résultat et le site fonctionnait parfaitement. j'ai fermé l'éditeur et filezilla après quelques temps. Je ne sais pas ce que j'ai fait mais au moment d'ouvrir le site, j'ai une erreur 500 voici le contenu de la page en mode débug: 1/1) ContextErrorException Notice: Trying to access array offset on value of type null in 35655e6409b6198f29dd6e732ef9598dec599880_2.module.psshoppingcartpsshoppingc.php line 66 at content_67ab853557e2f6_40625682(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, null, null, 0) in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false) in SmartyDevTemplate.php line 40 at SmartyDevTemplateCore->fetch() in Module.php line 2490 at ModuleCore->fetch('module:ps_shoppingcart/ps_shoppingcart.tpl') in ps_shoppingcart.php line 136 at Ps_Shoppingcart->renderWidget('displayNav', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart))) in Hook.php line 1007 at HookCore::coreRenderWidget(object(Ps_Shoppingcart), 'displayNav', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart))) in Hook.php line 954 at HookCore::exec('displayNav', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart)), null) in smarty.config.inc.php line 167 at smartyHook(array('h' => 'displayNav'), object(SmartyDevTemplate)) in SmartyLazyRegister.php line 83 at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayNav'), object(SmartyDevTemplate))) in 31c008f9dc7d9a8dbb6b0c6bcb4c91931a563fdb_2.file.header.tpl.php line 128 at Block_151263789767ab8535551dc5_80924206->callBlock(object(SmartyDevTemplate)) in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_151263789767ab8535551dc5_80924206), object(SmartyDevTemplate)) in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_151263789767ab8535551dc5_80924206)) in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_151263789767ab8535551dc5_80924206', 'header_top') in 31c008f9dc7d9a8dbb6b0c6bcb4c91931a563fdb_2.file.header.tpl.php line 34 at content_67ab8535556274_20984845(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/header.tpl', null, 'PRS703_3layouts/layout-full-width.tpl', 0, 3600, array(), 0, false) in ae22b9750f4c05ddcf5ff06e5bcf4da4956964e9_2.file.layout-both-columns.tpl.php line 219 at Block_81770358767ab85354ed616_55042735->callBlock(object(SmartyDevTemplate)) in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_81770358767ab85354ed616_55042735), object(SmartyDevTemplate)) in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_81770358767ab85354ed616_55042735)) in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_81770358767ab85354ed616_55042735', 'header') in ae22b9750f4c05ddcf5ff06e5bcf4da4956964e9_2.file.layout-both-columns.tpl.php line 61 at content_67ab85354fbe60_88262388(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, 'PRS703_3layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null) in smarty_internal_runtime_inheritance.php line 116 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl') in 0d4252ea91127905c7f9453625c0b1b4e3715a66_2.file.layout-full-width.tpl.php line 42 at content_67ab85354e58c7_86754310(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, 'PRS703_3layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null) in smarty_internal_runtime_inheritance.php line 116 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl') in be9f00ee321d49fe8c19215285761fc64056a396_2.file.page.tpl.php line 33 at content_67ab85354dc779_21545091(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('page.tpl', null, 'PRS703_3layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null) in smarty_internal_runtime_inheritance.php line 116 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'page.tpl') in 9778d6db45141c8e228e7d068e8811e26a41a99a_2.file.index.tpl.php line 33 at content_67ab8604be1b42_05104848(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, 'PRS703_3layouts/layout-full-width.tpl', null, 0) in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch('index.tpl', null, 'PRS703_3layouts/layout-full-width.tpl', null, false, true, false) in SmartyDev.php line 40 at SmartyDev->fetch('index.tpl', null, 'PRS703_3layouts/layout-full-width.tpl') in FrontController.php line 727 at FrontControllerCore->smartyOutputContent('index.tpl') in FrontController.php line 709 at FrontControllerCore->display() in Controller.php line 326 at ControllerCore->run() in Dispatcher.php line 518 at DispatcherCore->dispatch() in index.php line 28 je précise que le back office fonctionne très bien. Si quelqu'un peut m'aider à retrouver mon site ce serait très sympa. en vous remerciant par avance. Edited February 13 by Michel presta (see edit history) Link to comment Share on other sites More sharing options...
Manu-41 Posted February 11 Share Posted February 11 Vous avez juste modifié le css? Vous vous souvenez de la dernière classe? Link to comment Share on other sites More sharing options...
Michel presta Posted February 12 Author Share Posted February 12 Bonjour Manu, J'ai modifié le custom.css le theme.css principalement. Ce qui me dit que j'ai du faire une fausse manip, c'est que le site fonctionnait parfaitement avant de fermer l'éditeur. En fermant ou avant, aurais-je toucher une touche du clavier ? et comme je sauvegarde toujours quand je ferme, une erreur se serait enregistrée. Merci beaucoup de te pencher sur mon souci. la page d'erreur du mode débug ne guide personne ver la solution? Encore merci. Link to comment Share on other sites More sharing options...
Manu-41 Posted February 12 Share Posted February 12 Quand on fait une modif, il faut vider le cache, cela évite les problèmes. Maintenant, il faut vous rappeler où vous avez modifié l'une des classes pour vérifier si un ; ou une } n'a pas été oublié. Il y a peut-être des éditeurs en ligne. Où demander à chapgpt, sait ont jamais. Link to comment Share on other sites More sharing options...
Michel presta Posted February 12 Author Share Posted February 12 le souci est là Le cache est vidé à chaque modifications et c'est pourquoi je dis que le site fonctionnait après les modifs. Si c'est une erreur (Taper une touche ou autre )au moment de fermer, je ne vois pas comment trouver cette erreur. Link to comment Share on other sites More sharing options...
Michel presta Posted February 12 Author Share Posted February 12 Quelqu'un peut il analyser le code d'erreur et me donner une piste? merci pour tout. Link to comment Share on other sites More sharing options...
Manu-41 Posted February 12 Share Posted February 12 Un lien vers votre site ? Mettez votre fichier en ligne, mais souvent, il y a au moins 15 000 lignes, personnes ne va l'analyse à la main. Cherchez sur le net s'il y a un outil pour trouver les erreurs. Ou regardez chaque ligne ou vous avez modifié. Vous devez vous en souvenir. Link to comment Share on other sites More sharing options...
Michel presta Posted February 12 Author Share Posted February 12 Re bonjour, Non je ne demande pas d'analyser le fichier css mais juste les messages d'erreur que j'ai mis au début de ce post. voici le lien pour le site Mais il ne fonctionne pas (je ne vois pas à quoi ça peut aider) Dans tous les cas, ce sont les lignes de la page affichée en mode débug que je n'arrive pas à déchiffrer. Il doit bien y avoir un indice du fichier affecté, non? Je joint le fichier custom mais ne n'arrive pas à mettre le fichier theme.css Si ça peut aider... Merci custom.cssFetching info... Link to comment Share on other sites More sharing options...
Divine Posted February 12 Share Posted February 12 Bonjour, Il semble qu'il ne s'agit pas d'une erreur CSS mais plutôt d'une erreur dans l'un de vos fichiers TPL. Regardez du côté du fichier "ps_shoppingcart.tpl". Link to comment Share on other sites More sharing options...
Michel presta Posted February 13 Author Share Posted February 13 Merci Divine c'est curieux car je n'ai pas touché au tpl. En fait j'ai mis une ancienne sauvegarde de mon thème et j'ai recommencé le travail que j'avais fait. je pense que ce sera moins long que de chercher d'où vient l'erreur. j'en ai pour trois ou quatre jours et ce sera réglé. Maintenant, je fais une sauvegarde des fichiers à chaque modifications au cas où. dans tous les cas, je vous remercie de vous être penché sur mon souci. Link to comment Share on other sites More sharing options...
Divine Posted February 13 Share Posted February 13 D'accord, merci de ce retour. Oui pensez à toujours sauvegarder avant de faire des modifications, c'est très important, vous l'avez constaté vous-même Link to comment Share on other sites More sharing options...
Nemesis tech Posted February 13 Share Posted February 13 Bonjour @Michel presta Je vous conseille d'utiliser Github/Bitbucket pour versionner vos fichiers. L'erreur que vous avez n'est effectivement pas dû au CSS mais sûrement après que vous êtes avec le mode "debug" d'activé ; donc vous pouvez voir les erreurs, avertissements et notices. Pour ne plus avoir ce problème, désactivez le mode debug et régler le problème sur un environnement de test. La poste est évoquée dans l'erreur : Quote Notice: Trying to access array offset on value of type null in 35655e6409b6198f29dd6e732ef9598dec599880_2.module.psshoppingcartpsshoppingc.php line 66 Expand Il faut donc allé regarder dans le module psshoppingcartcartpsshoppingc qui paraît être la raison du problème car dans le code source, il y a une instruction qui dit essaye de "Trying to access array offset on value of type null". Link to comment Share on other sites More sharing options...
Michel presta Posted February 17 Author Share Posted February 17 Merci Nemesis tech J'si passé en résolu 1 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