Jump to content

Recommended Posts


J'ai un problème majeur sur n'importe quels modules de paiement.

La commande arrive bien en BO mais le client lui arrive sur une page blanche.

Avec le mode debug j'obtient :

(1/1) ContextErrorException
Notice: Undefined index:

in Currency.php line 186
at CurrencyCore->__construct(1, null, 0)
in PaymentModule.php line 234
at PaymentModuleCore->validateOrder(0, '1', 0.0, 'Chèque', null, array('{check_name}' => false, '{check_address}' => false, '{check_address_html}' => ''), 1, false, '032a1b520dd310a3776cad6e211f933e')
in validation.php line 67
at Ps_CheckpaymentValidationModuleFrontController->postProcess()
in Controller.php line 281
at ControllerCore->run()
in Dispatcher.php line 515
at DispatcherCore->dispatch()
in index.php line 28

Ligne de mon fichier Currency.php à la ligne 186

if (is_array($this->symbol)) {
                $this->sign = $this->symbol = $this->symbol[$idLang];
            } else {
                $this->sign = $this->symbol;

Puis dans le fichier PaymentModule.php 

$id_currency = $currency_special ? (int) $currency_special : (int) $this->context->cart->id_currency;
        $this->context->currency = new Currency((int) $id_currency, null, (int) $this->context->shop->id);
        if (Configuration::get('PS_TAX_ADDRESS_TYPE') == 'id_address_delivery') {
            $context_country = $this->context->country;

        $order_status = new OrderState((int) $id_order_state, (int) $this->context->language->id);
        if (!Validate::isLoadedObject($order_status)) {
            PrestaShopLogger::addLog('PaymentModule::validateOrder - Order Status cannot be loaded', 3, null, 'Cart', (int) $id_cart, true);

            throw new PrestaShopException('Can\'t load Order status');

Une petite idée ?



Share this post

Link to post
Share on other sites

Bonjour aucune réponse ?

Je suis vraiment embêté 😞

Une page blanche à la validation de la commande c'est pas top...

Voici le log apache en plus

PHP Notice:Undefined index:  in /var/www/classes/Currency.php on line 186, referer: https://www.mon_site.fr/commande

PHP Notice:  Undefined index:  in /var/www/classes/Currency.php on line 192, referer: https://www.mon_site.fr/commande


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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