Jump to content

Erreur 500 lors de l'enregistrement d'une commande Prestashop 1.7


Recommended Posts

Bonsoir,

J'ai installé Prestashop depuis mon espace Client 1and1, il s'agit de la version 1.7.2.4.

Je n'ai fait aucune modification (template de base, etc) et pourtant j'ai l'erreur suivante :

Mon site rencontre une erreur 500 lors de l'enregistrement d'une commande, au moment de saisir l'adresse, par défaut ce sont le prénom et le nom qui sont repris...

c'est au moment où l'on fait continuer sur cette étape 2 qu'arrive l'erreur...

image.png.9d34dfcd1a66333dc786810f176d54ea.png

J'ai cherché sur le forum et je n'ai pas l'impression d'être un cas isolé malheureusement je n'ai pas trouvé de solution dans les messages ci-joint :

https://www.prestashop.com/forums/topic/658851-1and1-hosting-and-prestashop-do-not-work-together/

https://www.prestashop.com/forums/topic/663650-500-server-error-by-checkout/

https://www.prestashop.com/forums/topic/663444-problème-adresse-dans-la-création-de-compte-client/

En mode Debug, j'obtiens le détail ci-dessous, merci beaucoup pour votre aide !

ContextErrorException in 987cee3b398135653f002829af4c739040e25d52.file.address-form.tpl.php line 72:Notice: Undefined index: name

  1. in 987cee3b398135653f002829af4c739040e25d52.file.address-form.tpl.php line 72
  2. at ErrorHandler->handleError('8', 'Undefined index: name', '/homepages/24/d661718993/htdocs/clickandbuilds/PrestaShop/Coxie17/app/cache/dev/smarty/compile/98/7c/ee/987cee3b398135653f002829af4c739040e25d52.file.address-form.tpl.php', '72', array('_smarty_tpl' => object(Smarty_Dev_Template), '_tpl_stack' => array(), '_from' => array('id_address' => array('name' => 'id_address', 'type' => 'hidden', 'required' => false, 'label' => '', 'value' => null, 'availableValues' => array(), 'maxLength' => null, 'errors' => array()), 'id_customer' => array('name' => 'id_customer', 'type' => 'hidden', 'required' => false, 'label' => '', 'value' => null, 'availableValues' => array(), 'maxLength' => null, 'errors' => array()), 'back' => array('name' => 'back', 'type' => 'hidden', 'required' => false, 'label' => '', 'value' => null, 'availableValues' => array(), 'maxLength' => null, 'errors' => array()), 'token' => array('name' => 'token', 'type' => 'hidden', 'required' => false, 'label' => '', 'value' => '31dbda55541bdc904f1bd6872096c18b', 'availableValues' => array(), 'maxLength' => null, 'errors' => array()), 'alias' => array('name' => 'alias', 'type' => 'text', 'required' => false, 'label' => 'Alias', 'value' => null, 'availableValues' => array(), 'maxLength' => '32', 'errors' => array()), 'firstname' => array('value' => 'Anne'), 'lastname' => array('value' => 'Onyme')))) in 987cee3b398135653f002829af4c739040e25d52.file.address-form.tpl.php line 72
  3. at content_5a82132a44e3e5_91334928(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188
  4. at Smarty_Internal_TemplateBase->fetch(object(Smarty_Dev_Template), null, null, null, false, true, false) in SmartyDev.php line 60
  5. at Smarty_Dev_Template->fetch() in AbstractForm.php line 119
  6. at AbstractFormCore->render(array('file' => 'checkout/_partials/address-form.tpl', 'ui' => object(RenderableProxy), 'use_same_address' => true, 'type' => 'delivery', 'form_has_continue_button' => true)) in RenderableProxy.php line 52
  7. at RenderableProxy->render(array('file' => 'checkout/_partials/address-form.tpl', 'ui' => object(RenderableProxy), 'use_same_address' => true, 'type' => 'delivery', 'form_has_continue_button' => true)) in smartyfront.config.inc.php line 94
  8. at smartyRender(array('file' => 'checkout/_partials/address-form.tpl', 'ui' => object(RenderableProxy), 'use_same_address' => true, 'type' => 'delivery', 'form_has_continue_button' => true), object(Smarty_Dev_Template)) in SmartyLazyRegister.php line 83
  9. at SmartyLazyRegister->__call('smartyRender', array(array('file' => 'checkout/_partials/address-form.tpl', 'ui' => object(RenderableProxy), 'use_same_address' => true, 'type' => 'delivery', 'form_has_continue_button' => true), object(Smarty_Dev_Template))) in 60beb739f39765b121449bba9382cd26e78a630e.file.addresses.tpl.php line 90
  10. at content_5a82132a4062f1_72173028(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188
  11. at Smarty_Internal_TemplateBase->fetch(object(Smarty_Dev_Template), null, null, null, false, true, false) in SmartyDev.php line 60
  12. at Smarty_Dev_Template->fetch() in AbstractCheckoutStep.php line 94
  13. at AbstractCheckoutStepCore->renderTemplate('checkout/_partials/steps/addresses.tpl', array('identifier' => 'checkout-addresses-step', 'position' => '2', 'ui' => object(RenderableProxy)), array('address_form' => object(RenderableProxy), 'use_same_address' => true, 'use_different_address_url' => 'http://s661718998.onlinehome.fr/commande?use_same_address=0', 'new_address_delivery_url' => 'http://s661718998.onlinehome.fr/commande?newAddress=delivery', 'new_address_invoice_url' => 'http://s661718998.onlinehome.fr/commande?newAddress=invoice', 'id_address_delivery' => '0', 'id_address_invoice' => '0', 'show_delivery_address_form' => true, 'show_invoice_address_form' => false, 'form_has_continue_button' => true)) in CheckoutAddressesStep.php line 223
  14. at CheckoutAddressesStepCore->render(array('identifier' => 'checkout-addresses-step', 'position' => '2', 'ui' => object(RenderableProxy))) in RenderableProxy.php line 52
  15. at RenderableProxy->render(array('identifier' => 'checkout-addresses-step', 'position' => '2', 'ui' => object(RenderableProxy))) in smartyfront.config.inc.php line 94
  16. at smartyRender(array('identifier' => 'checkout-addresses-step', 'position' => '2', 'ui' => object(RenderableProxy)), object(Smarty_Dev_Template)) in SmartyLazyRegister.php line 83
  17. at SmartyLazyRegister->__call('smartyRender', array(array('identifier' => 'checkout-addresses-step', 'position' => '2', 'ui' => object(RenderableProxy)), object(Smarty_Dev_Template))) in d51ada15148314d14fa2e41c2170ac2529415098.file.checkout-process.tpl.php line 36
  18. at content_5a82132a1783a6_55302141(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188
  19. at Smarty_Internal_TemplateBase->fetch(object(Smarty_Dev_Template), null, null, null, false, true, false) in SmartyDev.php line 60
  20. at Smarty_Dev_Template->fetch() in CheckoutProcess.php line 110
  21. at CheckoutProcessCore->render(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy))) in RenderableProxy.php line 52
  22. at RenderableProxy->render(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy))) in smartyfront.config.inc.php line 94
  23. at smartyRender(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)), object(Smarty_Dev_Template)) in SmartyLazyRegister.php line 83
  24. at SmartyLazyRegister->__call('smartyRender', array(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)), object(Smarty_Dev_Template))) in 6de9dd42c41307ff498b7bead36dd4e68b5e4a72.file.checkout.tpl.php line 145
  25. at content_5a821329f0bb06_22292664(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188
  26. at Smarty_Internal_TemplateBase->fetch('checkout/checkout.tpl', null, 'layouts/layout-full-width.tpl', object(SmartyDev), false, true, false) in SmartyDev.php line 41
  27. at SmartyDev->fetch('checkout/checkout.tpl', null, 'layouts/layout-full-width.tpl') in FrontController.php line 671
  28. at FrontControllerCore->smartyOutputContent('checkout/checkout.tpl') in FrontController.php line 655
  29. at FrontControllerCore->display() in Controller.php line 225
  30. at ControllerCore->run() in Dispatcher.php line 379
  31. at DispatcherCore->dispatch() in index.php line 28
Link to comment
Share on other sites

  • 2 months later...
  • 4 months later...
  • 1 month 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...