Prestashop – Résoudre l’erreur Can’t load Order state status at line 146 in file classes/PaymentModule.php

Bonjour à tous,
Dans cet article je vais vous montrer comment « réparer » l’erreur « Can’t load order state… » dans Prestashop lors de la finalisation d’une commande, après le stade du paiement. Cette panne arrive souvent si vous avez installé votre site via OVH en un clic.
Quel faut il faire ?
La réparation est assez simple,
pour commencer connectez vous à votre PhpMyAdmin de votre serveur.
Selectionnez la base de données correspondante à votre boutique et faites les manipulations ci dessous.
[pastacode lang= »php » message= » » highlight= » » provider= »manual »]
INSERT INTO `ps_order_state` (`id_order_state`, `invoice`, `send_email`, `module_name`, `color`, `unremovable`, `hidden`, `logable`, `delivery`, `shipped`, `paid`, `deleted`) VALUES
(1, 0, 1, ‘cheque’, ‘RoyalBlue’, 1, 0, 0, 0, 0, 0, 0),
(2, 1, 1, », ‘LimeGreen’, 1, 0, 1, 0, 0, 1, 0),
(3, 1, 1, », ‘DarkOrange’, 1, 0, 1, 0, 0, 1, 0),
(4, 1, 1, », ‘BlueViolet’, 1, 0, 1, 1, 1, 1, 0),
(5, 1, 0, », ‘#108510’, 1, 0, 1, 1, 1, 1, 0),
(6, 0, 1, », ‘Crimson’, 1, 0, 0, 0, 0, 0, 0),
(7, 1, 1, », ‘#ec2e15’, 1, 0, 0, 0, 0, 0, 0),
(8, 0, 1, », ‘#8f0621’, 1, 0, 0, 0, 0, 0, 0),
(9, 1, 1, », ‘HotPink’, 1, 0, 0, 0, 0, 1, 0),
(10, 0, 1, ‘bankwire’, ‘RoyalBlue’, 1, 0, 0, 0, 0, 0, 0),
(11, 0, 0, », ‘RoyalBlue’, 1, 0, 0, 0, 0, 0, 0),
(12, 1, 1, », ‘LimeGreen’, 1, 0, 1, 0, 0, 1, 0),
(13, 1, 0, », ‘#DDEEFF’, 0, 0, 1, 0, 0, 0, 0);
[/pastacode]
[pastacode lang= »sql » message= » » highlight= » » provider= »manual »]
INSERT INTO `ps_order_state_lang` (`id_order_state`, `id_lang`, `name`, `template`) VALUES
(1, 1, ‘Awaiting cheque payment’, ‘cheque’),
(1, 2, ‘Awaiting cheque payment’, ‘cheque’),
(1, 3, ‘Scheckzahlung wird erwartet’, ‘cheque’),
(1, 4, ‘En espera de pago por cheque’, ‘cheque’),
(1, 5, ‘En attente du paiement par chèque’, ‘cheque’),
(1, 6, ‘In attesa di pagamento con assegno’, ‘cheque’),
(2, 1, ‘Payment accepted’, ‘payment’),
(2, 2, ‘Payment accepted’, ‘payment’),
(2, 3, ‘Zahlung eingegangen’, ‘payment’),
(2, 4, ‘Pago aceptamos’, ‘payment’),
(2, 5, ‘Paiement accepté’, ‘payment’),
(2, 6, ‘Pagamento accettato’, ‘payment’),
(3, 1, ‘Preparation in progress’, ‘preparation’),
(3, 2, ‘Preparation in progress’, ‘preparation’),
(3, 3, ‘Bestellung eingegangen’, ‘preparation’),
(3, 4, ‘Preparación en curso’, ‘preparation’),
(3, 5, ‘Préparation en cours’, ‘preparation’),
(3, 6, ‘Preparazione in corso’, ‘preparation’),
(4, 1, ‘Shipped’, ‘shipped’),
(4, 2, ‘Shipped’, ‘shipped’),
(4, 3, ‘Versendet’, ‘shipped’),
(4, 4, ‘Enviado’, ‘shipped’),
(4, 5, ‘En cours de livraison’, ‘shipped’),
(4, 6, ‘Consegna in corso’, ‘shipped’),
(5, 1, ‘Delivered’, »),
(5, 2, ‘Delivered’, »),
(5, 3, ‘Erfolgreich abgeschlossen’, »),
(5, 4, ‘Entregado’, »),
(5, 5, ‘Livré’, »),
(5, 6, ‘Consegnato’, »),
(6, 1, ‘Canceled’, ‘order_canceled’),
(6, 2, ‘Canceled’, ‘order_canceled’),
(6, 3, ‘Storniert’, ‘order_canceled’),
(6, 4, ‘Cancelada’, ‘order_canceled’),
(6, 5, ‘Annulé’, ‘order_canceled’),
(6, 6, ‘Annullato’, ‘order_canceled’),
(7, 1, ‘Refund’, ‘refund’),
(7, 2, ‘Refund’, ‘refund’),
(7, 3, ‘Erstattet’, ‘refund’),
(7, 4, ‘Reembolsado’, ‘refund’),
(7, 5, ‘Remboursé’, ‘refund’),
(7, 6, ‘Rimborsato’, ‘refund’),
(8, 1, ‘Payment error’, ‘payment_error’),
(8, 2, ‘Payment error’, ‘payment_error’),
(8, 3, ‘Fehler bei der Bezahlung’, ‘payment_error’),
(8, 4, ‘Error de pago’, ‘payment_error’),
(8, 5, ‘Erreur de paiement’, ‘payment_error’),
(8, 6, ‘Errore di pagamento’, ‘payment_error’),
(9, 1, ‘On backorder’, ‘outofstock’),
(9, 2, ‘On backorder’, ‘outofstock’),
(9, 3, ‘Artikel erwartet’, ‘outofstock’),
(9, 4, ‘Productos fuera de línea’, ‘outofstock’),
(9, 5, ‘En attente de réapprovisionnement’, ‘outofstock’),
(9, 6, ‘In attesa di rifornimento’, ‘outofstock’),
(10, 1, ‘Awaiting bank wire payment’, ‘bankwire’),
(10, 2, ‘Awaiting bank wire payment’, ‘bankwire’),
(10, 3, ‘Warten auf Zahlungseingang’, ‘bankwire’),
(10, 4, ‘En espera de pago por transferencia bancaria’, ‘bankwire’),
(10, 5, ‘En attente du paiement par virement bancaire’, ‘bankwire’),
(10, 6, ‘In attesa di pagamento con bonifico bancario’, ‘bankwire’),
(11, 1, ‘Awaiting PayPal payment’, »),
(11, 2, ‘Awaiting PayPal payment’, »),
(11, 3, ‘Warten auf Zahlungseingang von PayPal’, »),
(11, 4, ‘En espera de pago por PayPal’, »),
(11, 5, ‘En attente du paiement par PayPal’, »),
(11, 6, ‘In attesa di pagamento con PayPal’, »),
(12, 1, ‘Payment remotely accepted’, ‘payment’),
(12, 2, ‘Payment remotely accepted’, ‘payment’),
(12, 3, ‘Payment Anmeldung erfolgreich’, ‘payment’),
(12, 4, ‘Payment remotely accepted’, ‘payment’),
(12, 5, ‘Paiement à distance accepté’, ‘payment’),
(12, 6, ‘Payment remotely accepted’, ‘payment’),
(13, 1, ‘Autorisation acceptée par PayPal’, »),
(13, 2, ‘Autorisation acceptée par PayPal’, »),
(13, 3, ‘Autorisation acceptée par PayPal’, »),
(13, 4, ‘Autorisation acceptée par PayPal’, »),
(13, 5, ‘Autorisation acceptée par PayPal’, »),
(13, 6, ‘Autorisation acceptée par PayPal’, »)
[/pastacode]
N’oubliez pas de modifier le préfixe de table si le votre n’est pas ps_
Commentaires
Le 1 mars 2017 à 16 04 18 03183, beau a dit :
Bonjour
euh il manque le tuto (soluce)
pouvez vous me l'indiquer svp
Laisser un commentaire