Jump to content
  • 0
Burak KAYMAKCI

Can't submit a message from contact form.

Question

Hi,

I am using prestashop 1.7 and its default theme.

I have a contact form but when I fill it and press send button it throws the error below in the image.

I don't really know what causes this error but I would like to ask you guys if any of you have encountered this error before and how to fix it?

Thanks!

Screenshot-2018-4-15 Bizimle iletişime geçin.png

Edited by Burak KAYMAKCI

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Well I have good news!

I have just figured out the problem.

Thanks to Dave L for reminding me that the problem could be because of the files, because that was the problem!

 

Actually, I'd tried to upgrade my shop to 1.7.3.1 when the notification first popped up. Then somehow the installation went wrong but the module I was using, which was 1-Click Upgrade, was saying something like "don't worry we will recover to the version that you were using before.". Well they didn't!

Then after Dave L's message I started thinking about which file or files could have possibly been changed. Using an online file compare tool I saw that contactform.php in /modules/contactform was different than the one I was using before.

 

After changing that file to the older one the problem was solved!

If that file was not the case for you I recommend you to try other files if you'd tried to upgrade the version to the newer one and failed during the process just like me.

 

Hope this helps people having the same issue without having to think about for days like me.

Cheers! :)

Edited by Burak KAYMAKCI

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, NemoPS said:

Did you try to enable dev mode and see if you get anything more descriptive?

 

Well I have activated the debug mode and there are 16 Logs and some other warnings but couldn't find which one is which. Most of them are warnings about translations and some deprecations.  If I am looking at the right thing.

Thanks for the reply by the way.

 

Another thing is that even though I change my SMTP settings in Advanced -> E-mail tab when I send a test e-mail the e-mail is still from my main address. I mean the sender is not changing anyway.

Screenshot-2018-4-15 Symfony Profiler(1).png

Edited by Burak KAYMAKCI

Share this post


Link to post
Share on other sites
  • 0
5 hours ago, cassandra8 said:

Did you find out reason? I have the same thing happening with the same 16 translation problems in debug. 

No I could not find out the reason. It seems like it's just two of us having this problem. 😅 Actually there are a few threads mentioning about it but versions are different. For example versión 1.7's contact controller is completely different than others.

 

Once I find a solution I can let you know via here.

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, NemoPS said:

Have you tried using PHP mail() instead? Are test emails working from the BO?

 

Yes, test e-mails are working fine with SMTP server settings and also with PHP mail() setting. Both are working.

One thing is that, even when I change the SMTP user to another user that is on my server, somehow the sender of the e-mail doesn't change.

I mean the mails are still coming from the exact same e-mail address as it was before.

Shouldn't it supposed to change when I change the SMTP user settings and use another mail account that is on my mail server?

For example :
I have configured SMTP server settings (from Advanced -> E-mail tab) as :
foo@mysite.com

Then when I change this address to :

bar@mysite.com

the test mails are still coming from "foo@mysite.com".

Shouldn't this supposed to change?

Share this post


Link to post
Share on other sites
  • 0
5 hours ago, Dave L said:

I responded to another post on the same issue.

HERE

Hope it helps.

Well, I had tried to upgrade my store to 1.7.3.1 but then somehow it failed. This might be the case here but ContactController.php is exactly the same as in 1.7.3.0. I might have to start comparing files then... :(

Share this post


Link to post
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

×