Jump to content

Internal Server Error avec Colissimo Simplicité


PaulMoure

Recommended Posts

Bonjour,

 

Je suis entrain de finaliser mon site e-commerce https://kit-beton-cire.lesbetonsdeclara.fr mais je rencontre un problème lors du choix de livraison...

 

Le module Colissimo Simplicité a été correctement paramétré (confirmation par la hotline) mais lors du choix du mode de livraison, lorsque l'on valide son choix, un message d'erreur apparaît : 

"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log."

 

Le problème provient de Prestashop et non du module Colissimo Simplicité. 

 

Si vous avez des solutions, je les prend avec plaisir :) Merci pour votre aide ! 

 

Cordialement.

 

Paul.

post-1382641-0-95274400-1505144072_thumb.png

post-1382641-0-32459200-1505144088_thumb.png

post-1382641-0-81292100-1505144098_thumb.png

Link to comment
Share on other sites

Activez l'affichage des erreurs pour en savoir plus, en modifiant cette ligne au début du fichier config/defines.inc.php :

 

define('_PS_MODE_DEV_', false);

 

par

 

define('_PS_MODE_DEV_', true);

 

Et donnez-nous l'erreur après avoir rafraichi la page

Link to comment
Share on other sites

Merci pour votre rapidité. Pouvez-vous m'indiquer le chemin à suivre pour accéder au fichier "config/defines.inc.php" ? (je ne suis pas du tout développeur)

 

Activez l'affichage des erreurs pour en savoir plus, en modifiant cette ligne au début du fichier config/defines.inc.php :
 
define('_PS_MODE_DEV_', false);
 
par
 
define('_PS_MODE_DEV_', true);
 
Et donnez-nous l'erreur après avoir rafraichi la page

 

Link to comment
Share on other sites

 

Whoops, looks like something went wrong.

 

1/1ContextErrorException in CartPresenter.php line 84:Notice: Undefined offset: 1

  1. in CartPresenter.php line 84

  2. at ErrorHandler->handleError('8', 'Undefined offset: 1', '/home/lesbeton/kit-beton-cire/src/Adapter/Cart/CartPresenter.php', '84', array('rawProduct' => array('id_product_attribute' => '126', 'id_product' => '2', 'cart_quantity' => '1', 'id_shop' => '1', 'id_customization' => null, 'name' => 'Kit béton ciré - sol', 'is_virtual' => '0', 'description_short' => '<p>Ce <strong>kit béton ciré sol </strong>vous permet de rénover votre sol actuel (carrelage ou autre) en béton ciré décoratif de 5 à 20 mètres carrés, et de la couleur de votre choix.</p>', 'available_now' => '', 'available_later' => '', 'id_category_default' => '3', 'id_supplier' => '0', 'id_manufacturer' => '0', 'manufacturer_name' => null, 'on_sale' => '0', 'ecotax' => '0.000000', 'additional_shipping_cost' => '0.00', 'available_for_order' => '1', 'show_price' => '1', 'price' => '285.83', 'active' => '1', 'unity' => '', 'unit_price_ratio' => '0.000000', 'quantity_available' => '20', 'width' => '80.000000', 'height' => '56.000000', 'depth' => '56.000000', 'out_of_stock' => '1', 'weight' => '20', 'available_date' => '0000-00-00', 'date_add' => '2017-08-23 18:43:45', 'date_upd' => '2017-09-08 19:43:16', 'quantity' => '1', 'link_rewrite' => 'kit-beton-cire-sol', 'category' => 'kit-beton-cire', 'unique_id' => '0000000002000000012670', 'id_address_delivery' => '7', 'advanced_stock_management' => '0', 'supplier_reference' => null, 'customization_quantity' => null, 'price_attribute' => '0.000000', 'ecotax_attr' => '0.000000', 'reference' => 'KBC-SOL', 'weight_attribute' => '20', 'ean13' => '', 'isbn' => '', 'upc' => '', 'minimal_quantity' => '1', 'wholesale_price' => '0.000000', 'id_image' => '2-69', 'legend' => 'sol de salon en béton ciré', 'reduction_type' => 'amount', 'is_gift' => false, 'reduction' => '0', 'price_without_reduction' => '342.996', 'specific_prices' => array('id_specific_price' => '13', 'id_specific_price_rule' => '0', 'id_cart' => '0', 'id_product' => '2', 'id_shop' => '1', 'id_shop_group' => '0', 'id_currency' => '0', 'id_country' => '0', 'id_group' => '0', 'id_customer' => '0', 'id_product_attribute' => '126', 'price' => '285.83', 'from_quantity' => '1', 'reduction' => '0.000000', 'reduction_tax' => '1', 'reduction_type' => 'amount', 'from' => '0000-00-00 00:00:00', 'to' => '0000-00-00 00:00:00', 'score' => '16'), 'stock_quantity' => '20', 'price_with_reduction' => '342.996', 'price_with_reduction_without_tax' => '285.83', 'total' => '285.83', 'total_wt' => '343', 'price_wt' => '342.996', 'reduction_applies' => false, 'quantity_discount_applies' => true, 'allow_oosp' => '1', 'features' => array(), 'attributes' => array('Support de base : Support carrelé (carrelage)', ' Mètre carré : 5 m²', ' Couleur : Taupe ', ' Gris marronné'), 'attributes_small' => 'Support carrelé (carrelage)- 5 m²- Taupe - Gris marronné', 'rate' => '20', 'tax_name' => 'TVA FR 20%'), 'settings' => object(ProductPresentationSettings), 'attributesArray' => array('Support de base' => 'Support carrelé (carrelage)', 'Mètre carré' => '5 m²', 'Couleur' => 'Taupe '), 'attribute' => ' Gris marronné', 'key' => ' Couleur ', 'value' => ' Taupe ')) in CartPresenter.php line 84

at CartPresenter->presentProduct(array('id_product_attribute' => '126', 'id_product' => '2', 'cart_quantity' => '1', 'id_shop' => '1', 'id_customization' => null, 'name' => 'Kit béton ciré - sol', 'is_virtual' => '0', 'description_short' => '<p>Ce <strong>kit béton ciré sol </strong>vous permet de rénover votre sol actuel (carrelage ou autre) en béton ciré décoratif de 5 à 20 mètres carrés, et de la couleur de votre choix.</p>', 'available_now' => '', 'available_later' => '', 'id_category_default' => '3', 'id_supplier' => '0', 'id_manufacturer' => '0', 'manufacturer_name' => null, 'on_sale' => '0', 'ecotax' => '0.000000', 'additional_shipping_cost' => '0.00', 'available_for_order' => '1', 'show_price' => '1', 'price' => '285.83', 'active' => '1', 'unity' => '', 'unit_price_ratio' => '0.000000', 'quantity_available' => '20', 'width' => '80.000000', 'height' => '56.000000', 'depth' => '56.000000', 'out_of_stock' => '1', 'weight' => '20', 'available_date' => '0000-00-00', 'date_add' => '2017-08-23 18:43:45', 'date_upd' => '2017-09-08 19:43:16', 'quantity' => '1', 'link_rewrite' => 'kit-beton-cire-sol', 'category' => 'kit-beton-cire', 'unique_id' => '0000000002000000012670', 'id_address_delivery' => '7', 'advanced_stock_management' => '0', 'supplier_reference' => null, 'customization_quantity' => null, 'price_attribute' => '0.000000', 'ecotax_attr' => '0.000000', 'reference' => 'KBC-SOL', 'weight_attribute' => '20', 'ean13' => '', 'isbn' => '', 'upc' => '', 'minimal_quantity' => '1', 'wholesale_price' => '0.000000', 'id_image' => '2-69', 'legend' => 'sol de salon en béton ciré', 'reduction_type' => 'amount', 'is_gift' => false, 'reduction' => '0', 'price_without_reduction' => '342.996', 'specific_prices' => array('id_specific_price' => '13', 'id_specific_price_rule' => '0', 'id_cart' => '0', 'id_product' => '2', 'id_shop' => '1', 'id_shop_group' => '0', 'id_currency' => '0', 'id_country' => '0', 'id_group' => '0', 'id_customer' => '0', 'id_product_attribute' => '126', 'price' => '285.83', 'from_quantity' => '1', 'reduction' => '0.000000', 'reduction_tax' => '1', 'reduction_type' => 'amount', 'from' => '0000-00-00 00:00:00', 'to' => '0000-00-00 00:00:00', 'score' => '16'), 'stock_quantity' => '20', 'price_with_reduction' => '342.996', 'price_with_reduction_without_tax' => '285.83', 'total' => '285.83', 'total_wt' => '343', 'price_wt' => '342.996', 'reduction_applies' => false, 'quantity_discount_applies' => true, 'allow_oosp' => '1', 'features' => array(), 'attributes' => 'Support de base : Support carrelé (carrelage)- Mètre carré : 5 m²- Couleur : Taupe - Gris marronné', 'attributes_small' => 'Support carrelé (carrelage)- 5 m²- Taupe - Gris marronné', 'rate' => '20', 'tax_name' => 'TVA FR 20%'))

at array_map(array(object(CartPresenter), 'presentProduct'), array(array('id_product_attribute' => '126', 'id_product' => '2', 'cart_quantity' => '1', 'id_shop' => '1', 'id_customization' => null, 'name' => 'Kit béton ciré - sol', 'is_virtual' => '0', 'description_short' => '<p>Ce <strong>kit béton ciré sol </strong>vous permet de rénover votre sol actuel (carrelage ou autre) en béton ciré décoratif de 5 à 20 mètres carrés, et de la couleur de votre choix.</p>', 'available_now' => '', 'available_later' => '', 'id_category_default' => '3', 'id_supplier' => '0', 'id_manufacturer' => '0', 'manufacturer_name' => null, 'on_sale' => '0', 'ecotax' => '0.000000', 'additional_shipping_cost' => '0.00', 'available_for_order' => '1', 'show_price' => '1', 'price' => '285.83', 'active' => '1', 'unity' => '', 'unit_price_ratio' => '0.000000', 'quantity_available' => '20', 'width' => '80.000000', 'height' => '56.000000', 'depth' => '56.000000', 'out_of_stock' => '1', 'weight' => '20', 'available_date' => '0000-00-00', 'date_add' => '2017-08-23 18:43:45', 'date_upd' => '2017-09-08 19:43:16', 'quantity' => '1', 'link_rewrite' => 'kit-beton-cire-sol', 'category' => 'kit-beton-cire', 'unique_id' => '0000000002000000012670', 'id_address_delivery' => '7', 'advanced_stock_management' => '0', 'supplier_reference' => null, 'customization_quantity' => null, 'price_attribute' => '0.000000', 'ecotax_attr' => '0.000000', 'reference' => 'KBC-SOL', 'weight_attribute' => '20', 'ean13' => '', 'isbn' => '', 'upc' => '', 'minimal_quantity' => '1', 'wholesale_price' => '0.000000', 'id_image' => '2-69', 'legend' => 'sol de salon en béton ciré', 'reduction_type' => 'amount', 'is_gift' => false, 'reduction' => '0', 'price_without_reduction' => '342.996', 'specific_prices' => array('id_specific_price' => '13', 'id_specific_price_rule' => '0', 'id_cart' => '0', 'id_product' => '2', 'id_shop' => '1', 'id_shop_group' => '0', 'id_currency' => '0', 'id_country' => '0', 'id_group' => '0', 'id_customer' => '0', 'id_product_attribute' => '126', 'price' => '285.83', 'from_quantity' => '1', 'reduction' => '0.000000', 'reduction_tax' => '1', 'reduction_type' => 'amount', 'from' => '0000-00-00 00:00:00', 'to' => '0000-00-00 00:00:00', 'score' => '16'), 'stock_quantity' => '20', 'price_with_reduction' => '342.996', 'price_with_reduction_without_tax' => '285.83', 'total' => '285.83', 'total_wt' => '343', 'price_wt' => '342.996', 'reduction_applies' => false, 'quantity_discount_applies' => true, 'allow_oosp' => '1', 'features' => array(), 'attributes' => 'Support de base : Support carrelé (carrelage)- Mètre carré : 5 m²- Couleur : Taupe - Gris marronné', 'attributes_small' => 'Support carrelé (carrelage)- 5 m²- Taupe - Gris marronné', 'rate' => '20', 'tax_name' => 'TVA FR 20%'))) in CartPresenter.php line 290

at CartPresenter->present(object(Cart)) in FrontController.php line 500

at FrontControllerCore->assignGeneralPurposeVariables() in FrontController.php line 525

at FrontControllerCore->initContent() in IndexController.php line 37

at IndexControllerCore->initContent() in Controller.php line 205

at ControllerCore->run() in Dispatcher.php line 379

at DispatcherCore->dispatch() in index.php line 28

Link to comment
Share on other sites

Je ne soutiens pas la 1.7 (qui n'est pas stable et buguée) mais à priori il y a un souci avec l'attribut de ce produit.

Dans Adaptater lignes 83/84

list($key, $value) = explode(':', $attribute);
                $attributesArray[trim($key)] = ltrim($value);

donc là la $key qui vaut 1 n'existe pas...

 

Ca vous le fait avec tous les produits ?

Link to comment
Share on other sites

  • 1 year 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...