preerp10 Posted April 28, 2012 Share Posted April 28, 2012 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 More sharing options...
preerp10 Posted April 30, 2012 Author Share Posted April 30, 2012 bump Link to comment Share on other sites More sharing options...
Mike Kranzler Posted April 30, 2012 Share Posted April 30, 2012 Hi preerp, Since this does work sometimes, it is likely not a PrestaShop-specific issue. Do you have any specific steps that users take which lead to this error? We would need to have a way of replicating the issue to try to help you resolve it. -Mike Link to comment Share on other sites More sharing options...
preerp10 Posted April 30, 2012 Author Share Posted April 30, 2012 When I say it works "sometimes" what I meant was sometimes the form is submitted and sometimes it isn't but either way, it always gives the error message. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted April 30, 2012 Share Posted April 30, 2012 Can you please post a link where we can take a look at this for you? -Mike Link to comment Share on other sites More sharing options...
Mike Kranzler Posted May 1, 2012 Share Posted May 1, 2012 Hi preep10, I received the link over PM and tried it out for myself but had no issues sending a message, as you can see here: Do you have any specific steps I can take to replicate your error? -Mike Link to comment Share on other sites More sharing options...
preerp10 Posted May 2, 2012 Author Share Posted May 2, 2012 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. Link to comment Share on other sites More sharing options...
preerp10 Posted May 2, 2012 Author Share Posted May 2, 2012 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 More sharing options...
Mike Kranzler Posted May 2, 2012 Share Posted May 2, 2012 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? -Mike Link to comment Share on other sites More sharing options...
preerp10 Posted May 2, 2012 Author Share Posted May 2, 2012 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 More sharing options...
preerp10 Posted May 2, 2012 Author Share Posted May 2, 2012 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 More sharing options...
Mike Kranzler Posted May 2, 2012 Share Posted May 2, 2012 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 More sharing options...
preerp10 Posted May 2, 2012 Author Share Posted May 2, 2012 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 More sharing options...
Mike Kranzler Posted May 3, 2012 Share Posted May 3, 2012 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 More sharing options...
preerp10 Posted May 3, 2012 Author Share Posted May 3, 2012 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 More sharing options...
preerp10 Posted May 4, 2012 Author Share Posted May 4, 2012 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 More sharing options...
preerp10 Posted May 7, 2012 Author Share Posted May 7, 2012 This problem is still unresolved. Multiple issues still unresolved. Link to comment Share on other sites More sharing options...
Recommended Posts