Sairon Posted February 14, 2023 Share Posted February 14, 2023 Hello, When using the contact form module I get this error when I try to send a message: "There was an error sending the message, please try again.", but I receive the mail in my mailbox. This message is just misleading the customer. Does anyone know how to fix it? Or if there is no fix how to remove it in general? URL: http://www.savigynai.lt/susisiekite-su-mumis Thank you in advanced. Link to comment Share on other sites More sharing options...
endriu107 Posted February 14, 2023 Share Posted February 14, 2023 Turn on debug mode and then check maybe some other error messages will show up and tell more where is issue. Link to comment Share on other sites More sharing options...
Sairon Posted February 14, 2023 Author Share Posted February 14, 2023 I turned it on, but I am not sure where I can see all the fault codes. Could you maybe guide me? Link to comment Share on other sites More sharing options...
s4lvozesta Posted February 14, 2023 Share Posted February 14, 2023 In Back Office, there is a button to do testing on sending email. Try that and see if it works. Anyway, this topic might be interesting for youhttps://www.prestashop.com/forums/topic/1066402-solved-video-how-to-set-up-gmail-smtp-in-prestashop/ Link to comment Share on other sites More sharing options...
idnovate.com Posted February 15, 2023 Share Posted February 15, 2023 18 hours ago, Sairon said: I turned it on, but I am not sure where I can see all the fault codes. Could you maybe guide me? Make a test sending a contact form message. Link to comment Share on other sites More sharing options...
Sairon Posted February 17, 2023 Author Share Posted February 17, 2023 The test email works fine. It is very strange. If I use the email provided for the test email in the contact form module, it works fine. If I use another email, it does not work. Link to comment Share on other sites More sharing options...
idnovate.com Posted February 17, 2023 Share Posted February 17, 2023 1 hour ago, Sairon said: The test email works fine. It is very strange. If I use the email provided for the test email in the contact form module, it works fine. If I use another email, it does not work. But do you get any error with DEBUG mode enabled? Link to comment Share on other sites More sharing options...
Sairon Posted February 17, 2023 Author Share Posted February 17, 2023 Where can I see my errors? Somewhere here? Link to comment Share on other sites More sharing options...
idnovate.com Posted February 17, 2023 Share Posted February 17, 2023 First turn on DEBUG mode: Then retry the action where you get the problem and check if you get an error. It will be displayed in the screen. Link to comment Share on other sites More sharing options...
Sairon Posted February 17, 2023 Author Share Posted February 17, 2023 It was, and still is ON. Link to comment Share on other sites More sharing options...
idnovate.com Posted February 17, 2023 Share Posted February 17, 2023 13 minutes ago, Sairon said: It was, and still is ON. But have you tried to send the contact form from the frontoffice? Link to comment Share on other sites More sharing options...
Prestachamps Posted February 17, 2023 Share Posted February 17, 2023 Hi @Sairon, Have you checked Prestahop's error/extception log for the error message? as there is most likely an error or exception in this file: /var/logs/dev.log or /var/logs/prod.log You can also try to reset the contact form module, or see if the contact form module was updated and has an override *.tpl file inside the theme folder, and rename or delete that file temporarily to see if the contact form module still has the error after this modification. I hope that I could help. Have a nice day, Leo. Link to comment Share on other sites More sharing options...
Sairon Posted February 17, 2023 Author Share Posted February 17, 2023 Hey, @Prestachamps, I got your email that you sent via the module. As mentioned it works bot from back and front office, but when sending threw front office, you get the red alert, that it failed, but it still goes threw and I get the message. Link to comment Share on other sites More sharing options...
Prestachamps Posted February 17, 2023 Share Posted February 17, 2023 HI @Sairon, Yes, so it's likely that Prestashop or a module is doing something else after the email is sent, which is causing an error. You can test it by temporarily disabling all Non Prestashop modules , or you can try another test with overrides turned off, and then try sending the FO contact form again. Also, is there any error, exception, or related warning in the var.log error logs on the server error log? Have a nice day, Leo. 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