sparh Posted 10 hours ago Share Posted 10 hours ago Bonjour j'ai PS 8.2.1 avec le module contactform 4.4.3 de Prestashop. Quand un client essai d'envoyer un message au 1er clic il a un message d'erreur. Au second clic ça fonctionne. J'ai identifié dans contactform.php que c'est la que ça bloque (ligne 597) if ($sendNotificationEmail) { if (empty($contact->email) || !Mail::Send( $this->context->language->id, 'contact', $this->trans('Message from contact form', [], 'Emails.Subject') . ' [no_sync]', $var_list, $contact->email, $contact->name, null, null, $file_attachment, null, _PS_MAIL_DIR_, false, null, null, $from )) { $this->context->controller->errors[] = $this->trans( 'An error occurred while sending the message. '.$this->context->language->id.' '.$contact->email.' '.$contact->name.' from '.$from, [], 'Modules.Contactform.Shop' ); } } Comme vous pouvez le voir j'ai personnalisé le message d'erreur pour vérifier les variables et voilà ce que ça donne Si je clic une seconde fois sur Envoyer le message part correctement. Auriez-vous une idée d'ou peux venir le problème ? Merci Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now