Belle Extension de c 0 Report post Posted January 16 suite à une erreur de position du panier je l'ai modifié et là grosse erreur ... Erreur 500 , impossible de rentrer dans mon site , on à donc du effacer le module shopping cart 😞 Comment retrouver ce module pour le réinstaller comme il était ?? Cordialement Laetitia www.belle-extension.fr Share this post Link to post Share on other sites
Eolia 2,607 Report post Posted January 16 (edited) hum... un changement de position ou dégreffage de hook ne supprime pas un module. Comme toujours en cas d'erreur 500 et pour en savoir plus, il faut modifier cette ligne au début du fichier config/defines.inc.php : define('_PS_MODE_DEV_', false); par define('_PS_MODE_DEV_', true); et rafraichir la page. Et il semblerait que vous avez toujours accès au BO, donc rien de dramatique véritablement. Edited January 16 by Eolia Share this post Link to post Share on other sites
Belle Extension de c 0 Report post Posted January 16 celui là on à effacer : ps_shoppingcart Share this post Link to post Share on other sites
Belle Extension de c 0 Report post Posted January 16 <?xml version="1.0" encoding="UTF-8" ?> <module> <name>ps_shoppingcart</name> <displayName><![CDATA[Sopping cart]]></displayName> <version><![CDATA[2.0.2]]></version> <description><![CDATA[Adds a block containing the customer's shopping cart.]]></description> <author><![CDATA[PrestaShop]]></author> <tab><![CDATA[front_office_features]]></tab> <is_configurable>1</is_configurable> <need_instance>0</need_instance> <limited_countries></limited_countries> </module> Share this post Link to post Share on other sites
Belle Extension de c 0 Report post Posted January 16 j'ai éffacé le module c'est pour cela que cela fonctionne suaf que plus de panier 😞 Share this post Link to post Share on other sites
Belle Extension de c 0 Report post Posted January 16 Si je réactive le module >>> https://belle-extension.fr/admin6608v8rg1/index.php?controller=AdminDashboard&token=81ad81767b1964fc3ddd1a7c506893f7 in src/Adapter/Cart/CartPresenter.php (line 272) * @throws \Exception */ public function present($cart, $shouldSeparateGifts = false) { if (!is_a($cart, 'Cart')) { throw new \Exception('CartPresenter can only present instance of Cart'); } if ($shouldSeparateGifts) { $rawProducts = $cart->getProductsWithSeparatedGifts(); } else { CartPresenter->present(null) in modules/ps_shoppingcart/ps_shoppingcart.php (line 85) Ps_Shoppingcart->getWidgetVariables('displayDashboardToolbarTopMenu', array('smarty' => object(SmartyCustomTemplate), 'cookie' => object(Cookie), 'cart' => null)) in modules/ps_shoppingcart/ps_shoppingcart.php (line 97) Ps_Shoppingcart->renderWidget('displayDashboardToolbarTopMenu', array('smarty' => object(SmartyCustomTemplate), 'cookie' => object(Cookie), 'cart' => null)) in classes/Hook.php (line 929) HookCore::coreRenderWidget(object(Ps_Shoppingcart), 'displayDashboardToolbarTopMenu', array('smarty' => object(SmartyCustomTemplate), 'cookie' => object(Cookie), 'cart' => null)) in classes/Hook.php (line 881) HookCore::exec('displayDashboardToolbarTopMenu', array('smarty' => object(SmartyCustomTemplate), 'cookie' => object(Cookie), 'cart' => null), null) in config/smarty.config.inc.php (line 165) smartyHook(array('h' => 'displayDashboardToolbarTopMenu'), object(SmartyCustomTemplate)) in classes/Smarty/SmartyLazyRegister.php (line 83) SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayDashboardToolbarTopMenu'), object(SmartyCustomTemplate))) in var/cache/dev/smarty/compile/79/fd/ec/79fdec4f8b6c3423b2342217c405cc20ff85070d_0.file.page_header_toolbar.tpl.php (line 191) Block_19063846855c1a97793f8ec5_72415466->callBlock(object(SmartyCustomTemplate)) in vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php (line 247) Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_19063846855c1a97793f8ec5_72415466), object(SmartyCustomTemplate)) in vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php (line 183) Smarty_Internal_Runtime_Inheritance->process(object(SmartyCustomTemplate), object(Block_19063846855c1a97793f8ec5_72415466)) in vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php (line 157) Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyCustomTemplate), 'Block_19063846855c1a97793f8ec5_72415466', 'toolbarBox') in var/cache/dev/smarty/compile/79/fd/ec/79fdec4f8b6c3423b2342217c405cc20ff85070d_0.file.page_header_toolbar.tpl.php (line 49) content_5c1a9779419478_42862524(object(SmartyCustomTemplate)) in vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php (line 123) Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyCustomTemplate)) in vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php (line 114) Smarty_Template_Compiled->render(object(SmartyCustomTemplate)) in vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php (line 206) Smarty_Internal_Template->render(false, 0) in vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php (line 232) Smarty_Internal_TemplateBase->_execute(object(SmartyCustomTemplate), null, null, null, 0) in vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php (line 116) Smarty_Internal_TemplateBase->fetch('page_header_toolbar.tpl', null, null, null, false, true, false) in classes/Smarty/SmartyCustom.php (line 110) SmartyCustomCore->fetch('page_header_toolbar.tpl') in classes/controller/AdminController.php (line 1815) AdminControllerCore->display() in classes/controller/Controller.php (line 275) ControllerCore->run() in classes/Dispatcher.php (line 428) DispatcherCore->dispatch() in admin6608v8rg1/index.php (line 99) Share this post Link to post Share on other sites
Eolia 2,607 Report post Posted January 16 Ah, on efface les modules pour s'amuser ? Curieux... Il ne vous reste plus qu'à le récupérer sur github: https://github.com/PrestaShop/ps_shoppingcart Share this post Link to post Share on other sites
Belle Extension de c 0 Report post Posted January 16 Je suis novice 😞 Merci Share this post Link to post Share on other sites
Eolia 2,607 Report post Posted January 16 Ben justement, quand on est novice, on n’exécute pas les actions "EFFACER", "SUPPRIMER" ou "DELETE" sans poser la question avant... Share this post Link to post Share on other sites
Belle Extension de c 0 Report post Posted January 16 C'est pas faux ! j'éspère faire correctement la réinstallation , en tout cas je ne le ferais plus c'est sûre Bien cordialement Laetitia Share this post Link to post Share on other sites
Eolia 2,607 Report post Posted January 16 Ok, vous évitez la fessée de peu^^ Attention dans le zip, il faut renommer le répertoire ps_shoppingcart-master en ps_shoppingcart autrement ça ne fonctionnera pas. Share this post Link to post Share on other sites
Belle Extension de c 0 Report post Posted January 16 Lol , aprés avoir renommer le dossier il n'en veut pas error Aïe... le chargement a échoué. Que s'est-il passé ? Server responded with 0 code. Share this post Link to post Share on other sites
Eolia 2,607 Report post Posted January 16 envoyez le répertoire ps_shoppingcart directement dans le répertoire /modules de votre ftp Share this post Link to post Share on other sites
Belle Extension de c 0 Report post Posted January 16 C'est ce que j'ai fait 😞 J'ai décidément pas de chance Share this post Link to post Share on other sites
Eolia 2,607 Report post Posted January 16 cette erreur apparait où ? Share this post Link to post Share on other sites
Belle Extension de c 0 Report post Posted January 16 Modules et services Modules installés Gérer les modules installés >>> Probléme Dans installer Module Share this post Link to post Share on other sites
Eolia 2,607 Report post Posted January 16 Ben il n'y a pas de chargement à cet endroit. - Soit vous chargez le zip (en ayant renommé le répertoire à l'intérieur) depuis la page "Modules" du BO - Soit vous chargez le répertoire directement dans le ftp avec FileZilla et dans la page modules, vous cliquez sur "installer" en face du nom de ce module Share this post Link to post Share on other sites
Eolia 2,607 Report post Posted January 17 Super... donc les modules natifs écrits par Prestashop ne sont plus compatibles avec leur propre version... de plus en plus fort. A remonter sur la forge ou github... Share this post Link to post Share on other sites