Jump to content

Contact form "There is 1 error". sometimes sends, sometimes not.


Recommended Posts

version 1.4.5.1

 

The form has been working fine for months now it suddenly does not work.

When you go to submit it says "there is 1 error" but doesn't say what the error is.

 

The form goes through anyway *sometimes*

 

I know there is a bug posted on this for 1.4.7 and so far unresolved but I'm using 1.4.5

I tried uploading a fresh copy of the TPL file and no luck.

 

Can anyone please help!?

Link to comment
Share on other sites

Hi Mike.

Thanks for checking it out.

I'm still getting it as you can see from the attachment.

 

I'm wondering now if it has something to do with the browser. Around a month ago I switched to Opera. I'm going to try it in another browser and see if I still get the error.

 

I didn't do anything special to the form.

post-301565-0-28404000-1335918368_thumb.png

Link to comment
Share on other sites

I tried it in Chrome. It's still happening.

But here's the interesting thing.

I started to think it had something to do with the email address I was putting in there ([email protected])

When I replaced that with a .com (I tried some others like .org and .ru) it went through, no errors.

 

But then I started typing in bogus urls like [email protected] it gives me the error. Like it knows the address is bogus.

What's going on here? Is the site possessed or something? Is it doing some kind of validation on the email address?

 

You can replicate the problem by using [email protected] or [email protected]

Link to comment
Share on other sites

Hi preerp,

I'm a little confused... is it a problem that PrestaShop does not allow your customers to send you messages from an invalid email address?

 

The problem is also when they type in a valid email address and they get an error message.

 

For example...

If you use [email protected] (a valid domain) as the email with first name of Joe last name of Smith , subject of online sales and phone number of 223, it goes through with no errors.

 

If you use all the same information but change the email address to [email protected] (also a valid working site), it does comes up with the error message.

Link to comment
Share on other sites

Another thing it is doing is it is addressing us as the same name as the name entered in by the site visitor.

 

Ex:

"

Hi joe smith,

 

You have received a message from a customer via your shop:"

Link to comment
Share on other sites

Hi preerp,

I would recommend you run your tests using email addresses that are valid and exist. No user who is legitimately trying to contact you is going to use a fake email address and expect a response. PrestaShop has this check in place to make your life easier as the merchant.

 

-Mike

Link to comment
Share on other sites

Hi preerp,

I would recommend you run your tests using email addresses that are valid and exist. No user who is legitimately trying to contact you is going to use a fake email address and expect a response. PrestaShop has this check in place to make your life easier as the merchant.

 

-Mike

 

I have tried it with valid email adresses. The whole reason this came to my attention is because a customer entered in their email address and it they got the error.

 

Did you use a valid email address when you tested it?

 

Where can I learn more about this check that is in place to make my life easier because at the moment, it's making my life more difficult. That's pretty impressive that it knows that an email address is not valid in a fraction of a millisecond. If only it would do everything that quick.

Link to comment
Share on other sites

Hi preerp,

I tried it with several valid email addresses. From what I understand, it mainly checks the syntax of the email address, but a developer just told me you may want to try checking the isEmail() function in your /classes/Validation.php file to learn more about this.

 

-Mike

Link to comment
Share on other sites

If I remove

 

public static function isEmail($email)
{
 return empty($email) OR preg_match('/^[a-z0-9!#$%&\'*+\/=?^`{}|~_-]+[.a-z0-9!#$%&\'*+\/=?^`{}|~_-]*@[a-z0-9]+[._a-z0-9-]*\.[a-z0-9]+$/ui', $email);
}

from that file, will it prevent the error message when someone types in an invalid email address?

 

Also, does the developer know what is causing the sender's name from appearing as the recipient's name in the submitted form? (see reply #11)

Link to comment
Share on other sites

I tried it with several valid email addresses.

 

The only form submissions other than the one I submitted were for a test.com address and I got a mail delivery failure notice for that.

 

If you used several valid addresses, the form submission was never received.

Link to comment
Share on other sites

×
×
  • Create New...