Jump to content

Prestashop 1.7.5 Erreur ContextErrorException display_prices_tax_incl


Recommended Posts

Bonjour,

Après avoir vidé le cache de prestashop 1.7.5, j'obtiens une page blanche avec erreur 500 en accédant au backoffice.

Lorsque j'active le mode debug en modifiant la valeur de PS_MODE_DEV à true dans le fichier /config/defines.inc.php, j'accéde bien au backoffice mais j'ai une erreur concernant: ContextErrorException display_prices_tax_incl en accédant à la page panier.

La seule modification effectuée avant est une traduction : le mot gratuit.

Je vous mets le contenu du message en espérant trouver une solution rapide:

 

(1/1) ContextErrorException

Notice: Undefined index: display_prices_tax_incl

in 6d0a1241b5e95c0603f94161092dea447a9b6d78_2.file.cart-summary-totals.tpl.php line 53

at Block_507301656613a3fefba0396_97967059->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_507301656613a3fefba0396_97967059), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_507301656613a3fefba0396_97967059))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_507301656613a3fefba0396_97967059', 'cart_summary_total')in 6d0a1241b5e95c0603f94161092dea447a9b6d78_2.file.cart-summary-totals.tpl.php line 30

at content_613a3fefba96a6_03375641(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:checkout/_partials/cart-summary-totals.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array('cart' => array('products' => array(object(ProductListingLazyArray)), 'totals' => array('total' => array('type' => 'total', 'label' => 'Total', 'amount' => 210.0, 'value' => '210,00 €'), 'total_including_tax' => array('type' => 'total', 'label' => 'Total TTC', 'amount' => 210.0, 'value' => '210,00 €'), 'total_excluding_tax' => array('type' => 'total', 'label' => 'Total HT :', 'amount' => 210.0, 'value' => '210,00 €')), 'subtotals' => array('products' => array('type' => 'products', 'label' => 'Sous-total', 'amount' => 210.0, 'value' => '210,00 €'), 'discounts' => null, 'shipping' => array('type' => 'shipping', 'label' => 'Livraison', 'amount' => 0.0, 'value' => 'gratuit'), 'tax' => null), 'products_count' => 1, 'summary_string' => '1 article', 'labels' => array('tax_short' => 'TTC', 'tax_long' => '(TTC)'), 'id_address_delivery' => '0', 'id_address_invoice' => '0', 'is_virtual' => false, 'vouchers' => array('allowed' => 0, 'added' => array()), 'discounts' => array(), 'minimalPurchase' => 0.0, 'minimalPurchaseRequired' => '')), 0, false)in abc2b9ec1b27bf71512207c5f39b07967b893269_2.file.cart-detailed-totals.tpl.php line 38

at Block_1920569212613a3fefb61ff0_62223140->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_1920569212613a3fefb61ff0_62223140), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_1920569212613a3fefb61ff0_62223140))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_1920569212613a3fefb61ff0_62223140', 'cart_summary_totals', 9)in abc2b9ec1b27bf71512207c5f39b07967b893269_2.file.cart-detailed-totals.tpl.php line 114

at Block_384116831613a3fefb5b447_33777950->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_384116831613a3fefb5b447_33777950), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_384116831613a3fefb5b447_33777950))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_384116831613a3fefb5b447_33777950', 'cart_detailed_totals')in abc2b9ec1b27bf71512207c5f39b07967b893269_2.file.cart-detailed-totals.tpl.php line 28

at content_613a3fefb63fe3_62545985(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:checkout/_partials/cart-detailed-totals.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array('cart' => array('products' => array(object(ProductListingLazyArray)), 'totals' => array('total' => array('type' => 'total', 'label' => 'Total', 'amount' => 210.0, 'value' => '210,00 €'), 'total_including_tax' => array('type' => 'total', 'label' => 'Total TTC', 'amount' => 210.0, 'value' => '210,00 €'), 'total_excluding_tax' => array('type' => 'total', 'label' => 'Total HT :', 'amount' => 210.0, 'value' => '210,00 €')), 'subtotals' => array('products' => array('type' => 'products', 'label' => 'Sous-total', 'amount' => 210.0, 'value' => '210,00 €'), 'discounts' => null, 'shipping' => array('type' => 'shipping', 'label' => 'Livraison', 'amount' => 0.0, 'value' => 'gratuit'), 'tax' => null), 'products_count' => 1, 'summary_string' => '1 article', 'labels' => array('tax_short' => 'TTC', 'tax_long' => '(TTC)'), 'id_address_delivery' => '0', 'id_address_invoice' => '0', 'is_virtual' => false, 'vouchers' => array('allowed' => 0, 'added' => array()), 'discounts' => array(), 'minimalPurchase' => 0.0, 'minimalPurchaseRequired' => '')), 0, false)in 3a89e9de3d4821473d15ee7d3e49b8bcee31cce3_2.file.cart.tpl.php line 95

at Block_234090366613a3fef7574a7_94836096->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_234090366613a3fef7574a7_94836096), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_234090366613a3fef7574a7_94836096))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_234090366613a3fef7574a7_94836096', 'cart_totals', 0)in 3a89e9de3d4821473d15ee7d3e49b8bcee31cce3_2.file.cart.tpl.php line 127

at Block_1191551216613a3fef756293_95657729->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_1191551216613a3fef756293_95657729), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_1191551216613a3fef756293_95657729))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_1191551216613a3fef756293_95657729', 'cart_summary', 0)in 3a89e9de3d4821473d15ee7d3e49b8bcee31cce3_2.file.cart.tpl.php line 233

at Block_654936414613a3fef750450_69257381->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_654936414613a3fef750450_69257381), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_654936414613a3fef750450_69257381), object(Block_888688348613a3fef80da58_47498822))in smarty_internal_runtime_inheritance.php line 186

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_888688348613a3fef80da58_47498822))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_888688348613a3fef80da58_47498822', 'content', 1)in 18a039c5edde76eca2d08e523f1b6462aa8721bb_2.file.layout-full-width.tpl.php line 101

at Block_559926124613a3fef80c005_87307821->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_559926124613a3fef80c005_87307821), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_559926124613a3fef80c005_87307821), object(Block_2145830923613a3fef82ad05_08187202))in smarty_internal_runtime_inheritance.php line 186

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_2145830923613a3fef82ad05_08187202))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_2145830923613a3fef82ad05_08187202', 'content_wrapper')in 9d9ba956044e4361d7d087c732d6a5eb681e07fd_2.file.layout-both-columns.tpl.php line 87

at content_613a3fef8323f3_67577215(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 18a039c5edde76eca2d08e523f1b6462aa8721bb_2.file.layout-full-width.tpl.php line 42

at content_613a3fef80eb47_55664743(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 3a89e9de3d4821473d15ee7d3e49b8bcee31cce3_2.file.cart.tpl.php line 36

at content_613a3fef75a2a0_96202322(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('checkout/cart.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40

at SmartyDev->fetch('checkout/cart.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 682

at FrontControllerCore->smartyOutputContent('checkout/cart.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

 

Merci pour votre aide.

Nicolas.

Edited by AireDesign (see edit history)

Share this post


Link to post
Share on other sites

Bonjour,

Merci pour ta réponse.

Oui j'ai vidé le cache depuis le backoffice, et de nouveau depuis le ftp (/var/cache/).

J'ai également desactivé mes modules un par un, changé le theme, sans changement.

J'ai essayé de traduire à nouveau le mot gratuit, il n'est plus trouvé...

J'ai forcé la compilation de smarty au cas ou.

Je ne sais pas quoi faire. Tout fonctionnait correctement jusqu'a la tentative de traduction...

Le e-commerce doit être lancé la semaine prochaine.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More