Jump to content

erreur 500 au moment de la commande


Recommended Posts

Bonjour à tous

J'ai un problème avec mon site marchant alors que je n'ai pas fait de modifications récentes

au moment de cliquer sur commander une erreur 500 s'ouvre

voici le message d'erreur qui s'affiche en mode debug

d'avance merci pour votre aide!

 

Whoops, looks like something went wrong.

1/1 ContextErrorException in 385a40f90f683040f87696aabbaed4522486d80b.file.product.tpl.cache.php line 44: Notice: Undefined index: reference_to_display

in 385a40f90f683040f87696aabbaed4522486d80b.file.product.tpl.cache.php line 44

at ErrorHandler->handleError('8', 'Undefined index: reference_to_display', '/tmp/prestashop/app/cache/dev/smarty/compile/38/5a/40/385a40f90f683040f87696aabbaed4522486d80b.file.product.tpl.cache.php', '44', array('_smarty_tpl' => object(Smarty_Dev_Template))) in 385a40f90f683040f87696aabbaed4522486d80b.file.product.tpl.cache.php line 44

at content_5ff5aeab821225_32108372(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188

at Smarty_Internal_TemplateBase->fetch(object(Smarty_Dev_Template), null, null, null, false, false, true) in SmartyDev.php line 60

at Smarty_Dev_Template->fetch(null, null, null, null, false, false, true) in smarty_internal_template.php line 303

at Smarty_Internal_Template->getSubTemplate('catalog/_partials/miniatures/product.tpl', 'ps_featuredproducts|1|3|3|8', null, '9999', null, array('product' => array('id_product' => '49', 'id_supplier' => '0', 'id_manufacturer' => '2', 'id_category_default' => '42', 'id_shop_default' => '1', 'id_tax_rules_group' => '0', 'on_sale' => '0', 'online_only' => '0', 'ean13' => '', 'isbn' => '', 'upc' => '', 'ecotax' => array('value' => '0,00 €', 'amount' => '0.000000', 'rate' => '0'), 'quantity' => '18', 'minimal_quantity' => '1', 'price' => '18,43 €', 'wholesale_price' => '0.000000', 'unity' => '', 'unit_price_ratio' => '0.000000', 'additional_shipping_cost' => '0.00', 'reference' => '', 'supplier_reference' => '', 'location' => '', 'width' => '0.000000', 'height' => '0.000000', 'depth' => '0.000000', 'weight' => '0.600000', 'out_of_stock' => '2', 'quantity_discount' => '0', 'customizable' => '0', 'uploadable_files' => '0', 'text_fields' => '0', 'active' => '1', 'redirect_type' => '404', 'id_type_redirected' => '0', 'available_for_order' => '1', 'available_date' => '0000-00-00', 'show_condition' => '0', 'condition' => false, 'show_price' => true, 'indexed' => '1', 'visibility' => 'both', 'cache_is_pack' => '0', 'cache_has_attachments' => '0', 'is_virtual' => '0', 'cache_default_attribute' => '0', 'date_add' => '2019-01-15 14:08:10', 'date_upd' => '2020-07-13 16:15:05', 'advanced_stock_management' => '0', 'pack_stock_type' => '3', 'state' => '1', 'id_shop' => '1', 'id_product_attribute' => '0', 'product_attribute_minimal_quantity' => null, 'description' => '<h3><strong>Fly Neutral, une lotion aux huiles essentielles qui protège le cheval des insectes :</strong></h3> <p><strong>Fly Neutral</strong> est une lotion très efficace afin de protéger les chevaux des insectes sans avoir à utiliser des répulsifs cutanés comportant des ingrédients de synthèse. La formule de Fly Neutral très complète comprend un mélange de 9 huiles essentielles très odorantes qui neutralisent les odeurs qui attirent les insectes. Parmi les 9 huiles essentielles, il faut en retenir particulièrement 3 particulièrement efficaces afin d’éloigner les insectes :</p> <ul><li>L’huile essentielle d’ail : les propriétés répulsives de l’huile essentielle d’ail sont reconnues et couramment utilisées notamment en maraichage et arboriculture du fait de son large spectre d’action</li> <li>L’huile essentielle de cade : le bois de cade dont provient l’huile essentielle est utilisé depuis très longtemps  afin d’éloigner les insectes. Ses nombreuses  autres propriétés (anti-allergiques, anti-fongiques, désinfectantes…) font de l’huile essentielle de cade un ingrédient fréquemment utilisé dans les produits dermatologiques</li> <li>L’huile essentielle de citronnelle : l’huile essentielle de citronnelle doit son efficacité à sa teneur en citronnellol et en géraniol, deux molécules actives naturellement contre les moustiques. Elle perturbe le système nerveux des insectes qui préfèrent s’éloigner.</li> </ul><p></p> <p>Composition: Eau, mélange d’huiles essentielles (tea tree, ail, citronnelle, géranium, romarin, lavande, menthe, girofle, cade), vinaigre de cidre, agent conservateur doux.</p> <p><strong>Vaporiser sur les zones propices en insistant sur le garrot, l’encolure, le poitrail, la croupe, les cuisses, les grassets. Éviter la proximité avec les yeux.</strong></p>', 'description_short' => '<h2><span style="font-size:14pt;">La lotion Fly neutral est une lotion enrichie en 9 huiles essentielles (dont cade) et de vinaigre de cidre. La lotion Fly Neutral est très odorante et neutralise les odeurs du cheval ce qui empêche l’attirance des insectes. La lotion Fly Neutral est non irritante.</span></h2> <p><span style="font-size:14pt;">flacon 500ml</span></p>', 'available_now' => '', 'available_later' => '', 'link_rewrite' => 'fly-neutral-spray', 'meta_description' => 'Fly neutral est un spray naturel anti insectes pour chevaux, aux huiles essentielles', 'meta_keywords' => '', 'meta_title' => 'Fly neutral spray répulsif insectes chevaux Horse Care', 'name' => 'Fly Neutral spray', 'id_image' => '49-111', 'legend' => 'fly neutral spray', 'manufacturer_name' => 'esc laboratoire', 'category_default' => 'Insectes', 'new' => '0', 'orderprice' => '19.400000', 'allow_oosp' => '0', 'category' => 'insectes', 'category_name' => 'Insectes', 'link' => 'https://horsecarephyto.fr/insectes/49-fly-neutral-spray.html', 'attribute_price' => '0', 'price_tax_exc' => '18.43', 'price_without_reduction' => '19.4', 'reduction' => '0.97', 'specific_prices' => array('id_specific_price' => '4152', 'id_specific_price_rule' => '5', 'id_cart' => '0', 'id_product' => '49', 'id_shop' => '1', 'id_shop_group' => '0', 'id_currency' => '1', 'id_country' => '8', 'id_group' => '0', 'id_customer' => '0', 'id_product_attribute' => '0', 'price' => '-1.000000', 'from_quantity' => '1', 'reduction' => '0.050000', 'reduction_tax' => '1', 'reduction_type' => 'percentage', 'from' => '2019-01-23 00:00:00', 'to' => '2024-01-01 00:00:00', 'score' => '28'), 'quantity_all_versions' => '18', 'features' => array(), 'attachments' => array(), 'virtual' => '0', 'pack' => '0', 'packItems' => array(), 'nopackprice' => '0', 'customization_required' => false, 'rate' => '0', 'tax_name' => '', 'ecotax_rate' => '0', 'unit_price' => '', 'id_lang' => '1', 'id' => '49', 'attributes' => array(), 'weight_unit' => 'kg', 'images' => array(array('bySize' => array('small_default' => array('url' => 'https://horsecarephyto.fr/111-small_default/fly-neutral-spray.jpg', 'width' => '98', 'height' => '98'), 'cart_default' => array('url' => 'https://horsecarephyto.fr/111-cart_default/fly-neutral-spray.jpg', 'width' => '125', 'height' => '125'), 'home_default' => array('url' => 'https://horsecarephyto.fr/111-home_default/fly-neutral-spray.jpg', 'width' => '250', 'height' => '250'), 'medium_default' => array('url' => 'https://horsecarephyto.fr/111-medium_default/fly-neutral-spray.jpg', 'width' => '452', 'height' => '452'), 'large_default' => array('url' => 'https://horsecarephyto.fr/111-large_default/fly-neutral-spray.jpg', 'width' => '800', 'height' => '800')), 'small' => array('url' => 'https://horsecarephyto.fr/111-small_default/fly-neutral-spray.jpg', 'width' => '98', 'height' => '98'), 'medium' => array('url' => 'https://horsecarephyto.fr/111-home_default/fly-neutral-spray.jpg', 'width' => '250', 'height' => '250'), 'large' => array('url' => 'https://horsecarephyto.fr/111-large_default/fly-neutral-spray.jpg', 'width' => '800', 'height' => '800'), 'legend' => 'fly neutral spray', 'cover' => '1', 'id_image' => '111', 'position' => '1', 'associatedVariants' => array()), array('bySize' => array('small_default' => array('url' => 'https://horsecarephyto.fr/112-small_default/fly-neutral-spray.jpg', 'width' => '98', 'height' => '98'), 'cart_default' => array('url' => 'https://horsecarephyto.fr/112-cart_default/fly-neutral-spray.jpg', 'width' => '125', 'height' => '125'), 'home_default' => array('url' => 'https://horsecarephyto.fr/112-home_default/fly-neutral-spray.jpg', 'width' => '250', 'height' => '250'), 'medium_default' => array('url' => 'https://horsecarephyto.fr/112-medium_default/fly-neutral-spray.jpg', 'width' => '452', 'height' => '452'), 'large_default' => array('url' => 'https://horsecarephyto.fr/112-large_default/fly-neutral-spray.jpg', 'width' => '800', 'height' => '800')), 'small' => array('url' => 'https://horsecarephyto.fr/112-small_default/fly-neutral-spray.jpg', 'width' => '98', 'height' => '98'), 'medium' => array('url' => 'https://horsecarephyto.fr/112-home_default/fly-neutral-spray.jpg', 'width' => '250', 'height' => '250'), 'large' => array('url' => 'https://horsecarephyto.fr/112-large_default/fly-neutral-spray.jpg', 'width' => '800', 'height' => '800'), 'legend' => 'produit naturel', 'cover' => null, 'id_image' => '112', 'position' => '2', 'associatedVariants' => array()), array('bySize' => array('small_default' => array('url' => 'https://horsecarephyto.fr/113-small_default/fly-neutral-spray.jpg', 'width' => '98', 'height' => '98'), 'cart_default' => array('url' => 'https://horsecarephyto.fr/113-cart_default/fly-neutral-spray.jpg', 'width' => '125', 'height' => '125'), 'home_default' => array('url' => 'https://horsecarephyto.fr/113-home_default/fly-neutral-spray.jpg', 'width' => '250', 'height' => '250'), 'medium_default' => array('url' => 'https://horsecarephyto.fr/113-medium_default/fly-neutral-spray.jpg', 'width' => '452', 'height' => '452'), 'large_default' => array('url' => 'https://horsecarephyto.fr/113-large_default/fly-neutral-spray.jpg', 'width' => '800', 'height' => '800')), 'small' => array('url' => 'https://horsecarephyto.fr/113-small_default/fly-neutral-spray.jpg', 'width' => '98', 'height' => '98'), 'medium' => array('url' => 'https://horsecarephyto.fr/113-home_default/fly-neutral-spray.jpg', 'width' => '250', 'height' => '250'), 'large' => array('url' => 'https://horsecarephyto.fr/113-large_default/fly-neutral-spray.jpg', 'width' => '800', 'height' => '800'), 'legend' => 'huiles essentielles', 'cover' => null, 'id_image' => '113', 'position' => '3', 'associatedVariants' => array())), 'cover' => array('bySize' => array('small_default' => array('url' => 'https://horsecarephyto.fr/111-small_default/fly-neutral-spray.jpg', 'width' => '98', 'height' => '98'), 'cart_default' => array('url' => 'https://horsecarephyto.fr/111-cart_default/fly-neutral-spray.jpg', 'width' => '125', 'height' => '125'), 'home_default' => array('url' => 'https://horsecarephyto.fr/111-home_default/fly-neutral-spray.jpg', 'width' => '250', 'height' => '250'), 'medium_default' => array('url' => 'https://horsecarephyto.fr/111-medium_default/fly-neutral-spray.jpg', 'width' => '452', 'height' => '452'), 'large_default' => array('url' => 'https://horsecarephyto.fr/111-large_default/fly-neutral-spray.jpg', 'width' => '800', 'height' => '800')), 'small' => array('url' => 'https://horsecarephyto.fr/111-small_default/fly-neutral-spray.jpg', 'width' => '98', 'height' => '98'), 'medium' => array('url' => 'https://horsecarephyto.fr/111-home_default/fly-neutral-spray.jpg', 'width' => '250', 'height' => '250'), 'large' => array('url' => 'https://horsecarephyto.fr/111-large_default/fly-neutral-spray.jpg', 'width' => '800', 'height' => '800'), 'legend' => 'fly neutral spray', 'cover' => '1', 'id_image' => '111', 'position' => '1', 'associatedVariants' => array()), 'url' => 'https://horsecarephyto.fr/insectes/49-fly-neutral-spray.html', 'canonical_url' => 'https://horsecarephyto.fr/insectes/49-fly-neutral-spray.html', 'has_discount' => true, 'discount_type' => 'percentage', 'discount_percentage' => '-5%', 'discount_percentage_absolute' => '5%', 'discount_amount' => '0,97 €', 'price_amount' => '18.43', 'regular_price_amount' => '19.4', 'regular_price' => '19,40 €', 'discount_to_display' => '0,97 €', 'unit_price_full' => '', 'add_to_cart_url' => 'https://horsecarephyto.fr/panier?add=1&id_product=49&id_product_attribute=0&token=1104faa11afdf90dcc18bbef0c408296', 'main_variants' => array(), 'flags' => array('discount' => array('type' => 'discount', 'label' => 'Prix réduit')), 'labels' => array('tax_short' => '(TTC)', 'tax_long' => 'TTC'), 'show_availability' => true, 'availability_date' => null, 'availability_message' => '', 'availability' => 'available', 'quantity_discounts' => array(), 'embedded_attributes' => array('id_product' => '49', 'id_supplier' => '0', 'id_manufacturer' => '2', 'id_category_default' => '42', 'id_shop_default' => '1', 'on_sale' => '0', 'online_only' => '0', 'ecotax' => '0.000000', 'quantity' => '18', 'minimal_quantity' => '1', 'price' => '18.43', 'unity' => '', 'unit_price_ratio' => '0.000000', 'additional_shipping_cost' => '0.00', 'reference' => '', 'out_of_stock' => '2', 'customizable' => '0', 'uploadable_files' => '0', 'text_fields' => '0', 'redirect_type' => '404', 'id_type_redirected' => '0', 'available_for_order' => '1', 'available_date' => '0000-00-00', 'show_condition' => '0', 'condition' => 'new', 'show_price' => '1', 'indexed' => '1', 'visibility' => 'both', 'is_virtual' => '0', 'cache_default_attribute' => '0', 'date_add' => '2019-01-15 14:08:10', 'date_upd' => '2020-07-13 16:15:05', 'advanced_stock_management' => '0', 'pack_stock_type' => '3', 'id_product_attribute' => '0', 'description' => '<h3><strong>Fly Neutral, une lotion aux huiles essentielles qui protège le cheval des insectes :</strong></h3> <p><strong>Fly Neutral</strong> est une lotion très efficace afin de protéger les chevaux des insectes sans avoir à utiliser des répulsifs cutanés comportant des ingrédients de synthèse. La formule de Fly Neutral très complète comprend un mélange de 9 huiles essentielles très odorantes qui neutralisent les odeurs qui attirent les insectes. Parmi les 9 huiles essentielles, il faut en retenir particulièrement 3 particulièrement efficaces afin d’éloigner les insectes :</p> <ul><li>L’huile essentielle d’ail : les propriétés répulsives de l’huile essentielle d’ail sont reconnues et couramment utilisées notamment en maraichage et arboriculture du fait de son large spectre d’action</li> <li>L’huile essentielle de cade : le bois de cade dont provient l’huile essentielle est utilisé depuis très longtemps  afin d’éloigner les insectes. Ses nombreuses  autres propriétés (anti-allergiques, anti-fongiques, désinfectantes…) font de l’huile essentielle de cade un ingrédient fréquemment utilisé dans les produits dermatologiques</li> <li>L’huile essentielle de citronnelle : l’huile essentielle de citronnelle doit son efficacité à sa teneur en citronnellol et en géraniol, deux molécules actives naturellement contre les moustiques. Elle perturbe le système nerveux des insectes qui préfèrent s’éloigner.</li> </ul><p></p> <p>Composition: Eau, mélange d’huiles essentielles (tea tree, ail, citronnelle, géranium, romarin, lavande, menthe, girofle, cade), vinaigre de cidre, agent conservateur doux.</p> <p><strong>Vaporiser sur les zones propices en insistant sur le garrot, l’encolure, le poitrail, la croupe, les cuisses, les grassets. Éviter la proximité avec les yeux.</strong></p>', 'description_short' => '<h2><span style="font-size:14pt;">La lotion Fly neutral est une lotion enrichie en 9 huiles essentielles (dont cade) et de vinaigre de cidre. La lotion Fly Neutral est très odorante et neutralise les odeurs du cheval ce qui empêche l’attirance des insectes. La lotion Fly Neutral est non irritante.</span></h2> <p><span style="font-size:14pt;">flacon 500ml</span></p>', 'available_now' => '', 'available_later' => '', 'link_rewrite' => 'fly-neutral-spray', 'meta_description' => 'Fly neutral est un spray naturel anti insectes pour chevaux, aux huiles essentielles', 'meta_keywords' => '', 'meta_title' => 'Fly neutral spray répulsif insectes chevaux Horse Care', 'name' => 'Fly Neutral spray', 'id_image' => '49-111', 'new' => '0', 'allow_oosp' => '0', 'category' => 'insectes', 'category_name' => 'Insectes', 'link' => 'https://horsecarephyto.fr/insectes/49-fly-neutral-spray.html', 'attribute_price' => '0', 'price_tax_exc' => '18.43', 'price_without_reduction' => '19.4', 'reduction' => '0.97', 'specific_prices' => array('id_specific_price' => '4152', 'id_specific_price_rule' => '5', 'id_cart' => '0', 'id_product' => '49', 'id_shop' => '1', 'id_shop_group' => '0', 'id_currency' => '1', 'id_country' => '8', 'id_group' => '0', 'id_customer' => '0', 'id_product_attribute' => '0', 'price' => '-1.000000', 'from_quantity' => '1', 'reduction' => '0.050000', 'reduction_tax' => '1', 'reduction_type' => 'percentage', 'from' => '2019-01-23 00:00:00', 'to' => '2024-01-01 00:00:00', 'score' => '28'), 'quantity_all_versions' => '18', 'features' => array(), 'attachments' => array(), 'virtual' => '0', 'pack' => '0', 'packItems' => array(), 'nopackprice' => '0', 'customization_required' => false, 'rate' => '0', 'tax_name' => '', 'ecotax_rate' => '0', 'unit_price' => '0'))), '0') in fa6cc378d2942c8857b89d6bca728048c0caeedd.module.ps_featuredproducts.tpl.cache.php line 40

at content_5ff5aeab7d4bd3_14879123(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188

at Smarty_Internal_TemplateBase->fetch(object(Smarty_Dev_Template), null, null, null, false, true, false) in SmartyDev.php line 60

at Smarty_Dev_Template->fetch() in Module.php line 2279

at ModuleCore->fetch('module:ps_featuredproducts/views/templates/hook/ps_featuredproducts.tpl', 'ps_featuredproducts|1|3|3|8') in ps_featuredproducts.php line 252

at Ps_FeaturedProducts->renderWidget('displayHome', array('cookie' => object(Cookie), 'cart' => object(Cart))) in Hook.php line 900

at HookCore::coreRenderWidget(object(Ps_FeaturedProducts), 'displayHome', array('cookie' => object(Cookie), 'cart' => object(Cart))) in Hook.php line 861

at HookCore::exec('displayHome') in IndexController.php line 39

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

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

at DispatcherCore->dispatch() in index.php lin

Link to comment
Share on other sites

Bonjour,


1) Front appelle les variables "reference_to_display" pour afficher la valeur mais du côté BO ne configure pas les variables sous ce nom.
Par conséquent, vous obtenez ce type d'erreur.
Vous devez déclarer cette variable dans BO et l'affecter à smarty


2) Vérifiez "ps_featuredproducts.tpl" et "ps_featuredproducts.php" tpl et trouvez la variable maintenue ci-dessus et commentez-la.

Peut-être que ça peut t'aider

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