THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline


Bonjour,

Mon client a lancé une promotion ce jour en utilisant un code promo.
Mais les utilisateurs n'obtiennent pas de réduction et le fichier de traces log-thelia.txt contienr les messages suivants:

1: ERROR [ErrorListener.php:logException()] {109} 2020-06-08 19:37:13:Uncaught exceptionCall to undefined method: isRemovingPostage.
Stack Trace: #0 /home/www/fuchsiadelhom/public_html/local/modules/Chronopost/Smarty/Plugins/ChronopostDeliveryType.php(75): Thelia\Model\Base\Coupon->__call('isRemovingPosta...', Array)
#1 /home/www/fuchsiadelhom/public_html/local/modules/Chronopost/Smarty/Plugins/ChronopostDeliveryType.php(75): Thelia\Model\Coupon->isRemovingPostage()
#2 /home/www/fuchsiadelhom/public_html/cache/prod/smarty/compile/a5791c5ab79d96082d4cc2418e35283932317fa8.file.chronopost.html.php(81): Chronopost\Smarty\Plugins\ChronopostDeliveryType->chronopostDeliveryPrice(Array, Object(Smarty_Internal_Template))
#3 /home/www/fuchsiadelhom/public_html/core/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(188): content_5ed0f4c08184f1_91514330(Object(Smarty_Internal_Template))
#4 /home/www/fuchsiadelhom/public_html/local/modules/TheliaSmarty/Template/SmartyParser.php(381): Smarty_Internal_TemplateBase->fetch('file:/home/www/...')
#5 /home/www/fuchsiadelhom/public_html/local/modules/TheliaSmarty/Template/SmartyParser.php(424): TheliaSmarty\Template\SmartyParser->internalRenderer('file', '/home/www/fuchs...', Array, true)
#6 /home/www/fuchsiadelhom/public_html/core/lib/Thelia/Core/Hook/BaseHook.php(140): TheliaSmarty\Template\SmartyParser->render('/home/www/fuchs...', Array)
#7 /home/www/fuchsiadelhom/public_html/local/modules/Chronopost/Hook/FrontHook.php(13): Thelia\Core\Hook\BaseHook->render('chronopost.html', Array)
#8 [internal function]: Chronopost\Hook\FrontHook->onOrderDeliveryExtra(Object(Thelia\Core\Event\Hook\HookRenderEvent), 'hook.1.order-de...', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher))
#9 /home/www/fuchsiadelhom/public_html/core/vendor/symfony/event-dispatcher/EventDispatcher.php(181): call_user_func(Array, Object(Thelia\Core\Event\Hook\HookRenderEvent), 'hook.1.order-de...', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher))
#10 /home/www/fuchsiadelhom/public_html/core/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'hook.1.order-de...', Object(Thelia\Core\Event\Hook\HookRenderEvent))
#11 /home/www/fuchsiadelhom/public_html/local/modules/TheliaSmarty/Template/Plugins/Hook.php(106): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('hook.1.order-de...', Object(Thelia\Core\Event\Hook\HookRenderEvent))
#12 /home/www/fuchsiadelhom/public_html/cache/prod/smarty/compile/4ab1368be879e2cd5ed7ad7e47ea6ae618de79c7.file.order-delivery-module-list.html.php(113): TheliaSmarty\Template\Plugins\Hook->processHookFunction(Array, Object(Smarty_Internal_Template))
#13 /home/www/fuchsiadelhom/public_html/core/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(188): content_5ed0f4bf811623_15198156(Object(Smarty_Internal_Template))
#14 /home/www/fuchsiadelhom/public_html/local/modules/TheliaSmarty/Template/SmartyParser.php(381): Smarty_Internal_TemplateBase->fetch('file:ajax/order...')
#15 /home/www/fuchsiadelhom/public_html/local/modules/TheliaSmarty/Template/SmartyParser.php(424): TheliaSmarty\Template\SmartyParser->internalRenderer('file', 'ajax/order-deli...', Array, true)
#16 /home/www/fuchsiadelhom/public_html/core/lib/Thelia/Controller/Front/BaseFrontController.php(130): TheliaSmarty\Template\SmartyParser->render('ajax/order-deli...', Array)
#17 /home/www/fuchsiadelhom/public_html/core/lib/Thelia/Controller/Front/BaseFrontController.php(112): Thelia\Controller\Front\BaseFrontController->renderRaw('ajax/order-deli...', Array)
#18 /home/www/fuchsiadelhom/public_html/local/modules/Front/Controller/OrderController.php(549): Thelia\Controller\Front\BaseFrontController->render('ajax/order-deli...', Array)
#19 [internal function]: Front\Controller\OrderController->getDeliveryModuleListAjaxAction()
#20 /home/www/fuchsiadelhom/public_html/core/vendor/symfony/http-kernel/HttpKernel.php(139): call_user_func_array(Array, Array)
#21 /home/www/fuchsiadelhom/public_html/core/vendor/symfony/http-kernel/HttpKernel.php(62): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Thelia\Core\HttpFoundation\Request), 1)
#22 /home/www/fuchsiadelhom/public_html/core/lib/Thelia/Core/TheliaHttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Thelia\Core\HttpFoundation\Request), 1, true)
#23 /home/www/fuchsiadelhom/public_html/core/lib/Thelia/Core/Stack/ParamInitMiddleware.php(87): Thelia\Core\TheliaHttpKernel->handle(Object(Thelia\Core\HttpFoundation\Request), 1, true)
#24 /home/www/fuchsiadelhom/public_html/core/lib/Thelia/Core/Stack/SessionMiddleware.php(80): Thelia\Core\Stack\ParamInitMiddleware->handle(Object(Thelia\Core\HttpFoundation\Request), 1, true)
#25 /home/www/fuchsiadelhom/public_html/core/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Thelia\Core\Stack\SessionMiddleware->handle(Object(Thelia\Core\HttpFoundation\Request), 1, true)
#26 /home/www/fuchsiadelhom/public_html/core/vendor/symfony/http-kernel/Kernel.php(185): Stack\StackedHttpKernel->handle(Object(Thelia\Core\HttpFoundation\Request), 1, true)
#27 /home/www/fuchsiadelhom/public_html/web/index.php(38): Symfony\Component\HttpKernel\Kernel->handle(Object(Thelia\Core\HttpFoundation\Request))
#28 {main}
1: ERROR [OrderController.php:deliver()] {227} 2020-06-08 19:38:08:Error during order delivery process : Merci de vérifier les informations indiquées : Donnée manquante ou non valide : [delivery-module] Cette valeur ne doit pas être vide., Id du module de livraison non trouvé. Exception was Donnée manquante ou non valide : [delivery-module] Cette valeur ne doit pas être vide., Id du module de livraison non trouvé

Est-il possible de corriger cette erreur simplement afin de pouvoir continuer l'utilisation du code promo avec le module Chronopost ?

Merci de votre aide !

---
Thelia 2.3.4
Module Chronopost 1.0.5

Last edited by naonedit (10-06-2020 07:49:44)

Offline


Il y a sans doute un bug ici : https://github.com/thelia-modules/Chron … pe.php#L75

Peux tu remplacer "isRemovingPostage" par "getIsRemovingPostage" et voir si ça fonctionne correctement ?


OpenStudio Toulouse

Offline


Merci ROADSTER31 pour ce retour !

J'ai appliqué le correctif proposé puis purgé tous les caches, et effectivement je n'ai plus d'erreur dans le fichier ce traces log-thelia.txt

Par contre le code PROMO ne fonctionne pas, l'écran se rafraîchit suite à application via OK, mais aucune remise n'est appliquée sans erreur dans la log.

J'ai donc testé avec un code PROMO inexistant sur la vérification de commande (order/invoice) et j'obtiens l'erreur suivante

1: ERROR [CouponController.php:consumeAction()] {148} 2020-06-09 11:59:10:Error during order delivery process : Merci de vérifier votre code promo : Donnée manquante 
ou non valide : [coupon-code] Ce code promo n'existe pas. Exception was Donnée manquante ou non valide : [coupon-code] Ce code promo n'existe pas

Au niveau de l'interface il ne reste plus que le fil des étapes 1, 2, 3, 4 mais plus aucune autres données sad
Il est nécessaire de revenir à l'accueil et revenir sur le panier pour retrouver les informations.

Pourquoi l'erreur "code promo inconnu" plante t'elle l'interface ? est-ce une erreur connue ?

Merci de votre aide !

---
Thelia 2.3.4
Module Chronopost 1.0.5

Offline


J'ai passé à [Résolu] la discussion car le pb initial a été corrigé.
Merci de votre aide