Jump to content

ValidateOrder(...


Recommended Posts

Bonjour,

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 ?

 

Merci 

Link to comment
Share on other sites

  • 2 weeks later...

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

 

Link to comment
Share on other sites

  • 6 months later...
  • 9 months later...

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
×
×
  • Create New...