halalan Posted August 14, 2009 Share Posted August 14, 2009 Is anyone else seeing this problem on their prestashop site. I have the new version, which I upgraded a beta version to..and am getting a error when I attempt to thest the CONTACT option on the main page of the prestashop store.If I am NOT logged into the site as a customer and attemtp to use the contact option I get this error:There is 1 error :an error occurred while sending message The file in questions is CONTACT-FORM.PHP prior to the upgrade I had to copy new code from a post I found to fix it and it did...this time that same code does not fix it..... AM I ALONE or do others have this issue??? Link to comment Share on other sites More sharing options...
twilight Posted September 1, 2009 Share Posted September 1, 2009 Hi -Did you get this fixed! I'm having thesame issue. Please assist if you can - mine is a fresh install of v.2.2 Thanks! Link to comment Share on other sites More sharing options...
halalan Posted September 1, 2009 Author Share Posted September 1, 2009 Prestashop still insist its not a problem however probably for some reason with me upgrading from a prior beta version, something isn't working. Again, if a customer is logged in the contact from worked and even filled in the logged in users information, But if your just visiting the site and try to use the from..I was getting the same error.The fix for me was to take a older version of the CONTACT-FORM.PHP file and replace the current one with it and for me that fixed it. Maybe it will work for you too. Please rename your current CONTACT-FORM.PHP to something like oldcontact.php before replacing it, just in case you need it back!!I have attached the file that worked for me in this post. I made no promise, however if it fixes it for you too, please post back here. Maybe it will help others with this (NOT AN ISSUE PROBLEM) :-) contact-form.php Link to comment Share on other sites More sharing options...
twilight Posted September 1, 2009 Share Posted September 1, 2009 @halalan ~ Thank you so much for that suggestion! IT WORKED! I'm glad i had an old install backup.Whoops! just realized you attached the file - Awesome! others can use it too. Very thoughtful.Well...i think the ISSUE still needs to be addressed. Link to comment Share on other sites More sharing options...
halalan Posted September 1, 2009 Author Share Posted September 1, 2009 I agree, but it seems its not always an issue. I disagree especially if yours happened on a new isntall, but it would seem others would have complained by now. Unless they havent even tried to test the Contact link !?! Link to comment Share on other sites More sharing options...
Vikram Shah Posted September 18, 2009 Share Posted September 18, 2009 Hello Gurus,I have tried using the above given file, I am using Presta 1.1 the file isnt working for me.Can you please help me in getting this work?You can check at http://www.1shopbuy.com/contact-form.phpLooking forward the help from you.Thanks Gurus, Link to comment Share on other sites More sharing options...
halalan Posted September 18, 2009 Author Share Posted September 18, 2009 Vikram Since your site appears to be a basic new setup I would suggest first installing the latest release 1.2.4 Prestashop. Why start the ball behind the curve !! Then pick up from there with testing the contact-form.php file. Link to comment Share on other sites More sharing options...
Vikram Shah Posted September 18, 2009 Share Posted September 18, 2009 Hey Apprentice, I understand your concern but the problem is I have designed my pages onto the Old Presta Shop and I checked that the Old files are not working on the Newer release.I had also made the check enabled under the preferences for allowing the old files to run on the newer release.This made me to take the step of installing the older version. Link to comment Share on other sites More sharing options...
Vikram Shah Posted September 19, 2009 Share Posted September 19, 2009 Hello Gurus,After our conversation I have install Presta 1.2.4, and also uploaded the contactform.php onto my site but still this is not working I am getting the error “01 - an error occurred while sending message”. Any idea how can I rectify this.Looking forward help from you all gurus. Link to comment Share on other sites More sharing options...
rossdavidh Posted October 1, 2009 Share Posted October 1, 2009 Don't know if th is will be the case for anyone else, but for me this problem was caused because my server didn't have the email software installed. I used postfix, on an Ubuntu server, for which this is a good short description of the install:http://my.opera.com/Contrid/blog/show.dml/478684One more point: I was doing the install using putty from my Windows machine to the ubuntu server. This worked fine until it reached a point where it threw up a very primitive but nonetheless mandatory point-and-click install screen, which I didn't know how to interact with using putty.So, I went to a Linux laptop and ssh'ed to my server, ran the install again, and then was able to point and click to complete the install. Now, the error from the contact page goes away (and I even receive the email, which is a nice bonus ).I was very optimistic that this would also solve my problem of not receiving the "I forgot my password" email. However, it looks like this problem still exists (with no error message, just no email sent). Well, one problem solved is better than none. Link to comment Share on other sites More sharing options...
pqpqpq Posted October 8, 2009 Share Posted October 8, 2009 Thank you halalan. I have version 1.2.1 and your zip file worked. Link to comment Share on other sites More sharing options...
noirenex Posted October 25, 2009 Share Posted October 25, 2009 Just want to add that for me this error was appearing because in the backoffice, I had several contacts set up with emails, but there was not an employee entry to match that email, causing the error. When I added an employee with the email, it worked fine. Link to comment Share on other sites More sharing options...
tonito Posted October 28, 2009 Share Posted October 28, 2009 Thank you, you saved my day! Link to comment Share on other sites More sharing options...
Patric Posted October 28, 2009 Share Posted October 28, 2009 Has somebody posted this bug into the Bug Tracker ? Link to comment Share on other sites More sharing options...
tonito Posted October 29, 2009 Share Posted October 29, 2009 I did yes. Link to comment Share on other sites More sharing options...
re3bo0t Posted October 30, 2009 Share Posted October 30, 2009 still didin't work for me. Is it because of hosting issues? anyone hosted in godaddy? Link to comment Share on other sites More sharing options...
tze paul Posted November 3, 2009 Share Posted November 3, 2009 it works when you login as a customer. but still put out error when not login.Update: It works on both situations! thanks Link to comment Share on other sites More sharing options...
wallacept Posted November 10, 2009 Share Posted November 10, 2009 my presta is 1.1 and not working.view my store. Link to comment Share on other sites More sharing options...
devtrend Posted November 24, 2009 Share Posted November 24, 2009 Hello, I have prestashop_1.2.5.0 installed on hostmonster. I was running into the same email error described at the top of this thread by halalan (when I tried to post emails on prestashop ... using a firefox browser ... i didn't try with IE)I installed halalan's older version of contact-form.php ... and it solved the problem so far.I am not well versed enough with php or smtp to diagnose the root cause of the issue.This is just a data point that the older version of contact-form.php works better on hostmonster. I hope this is helpful.Thanks to everyone who posted before me, especially to halalan for his fix. Link to comment Share on other sites More sharing options...
pauro Posted November 29, 2009 Share Posted November 29, 2009 halalan, it works, you save my lifegod bless you Link to comment Share on other sites More sharing options...
dlopeman Posted December 15, 2009 Share Posted December 15, 2009 I agree, but it seems its not always an issue. I disagree especially if yours happened on a new isntall, but it would seem others would have complained by now. Unless they havent even tried to test the Contact link !?! And that would be me!! I'm having issues on a brand new install... although I'm sure I have something configured wrong.I'm trying to use GOOGLE>gmail as a smtp relay... smtp.gmail.com port 465, etc etc...I tried the PHP version too... is there something on the UNIX host that also needs to be set up? Link to comment Share on other sites More sharing options...
Perkla Posted February 3, 2010 Share Posted February 3, 2010 I have this problem when sending messages from the contactform, i have the newest version of Prestashop and i installed an old contact-form.php and that did not work, i have tryed to use smtp and that did not work. So what should i do to get this to work... ? It would be great for customers to send a message over the contactform..Help needed// Perkla Link to comment Share on other sites More sharing options...
tomerg3 Posted February 3, 2010 Share Posted February 3, 2010 Try http://www.presto-changeo.com/content/9-fix-email-problems Link to comment Share on other sites More sharing options...
Perkla Posted February 4, 2010 Share Posted February 4, 2010 tomerg3----> No.. that did not help me at all, i can still not send a message from the contactform, i really dont know how to fix this.. maybe i am doing something wrong, i dont know... Any more tips and trix to tell me that can help me with this.. ??// Perkla Link to comment Share on other sites More sharing options...
SiteMan Posted February 11, 2010 Share Posted February 11, 2010 Halalan, The file you attached (contact-form.php) to your post of September 1, 2009 worked for me. I have attached it to this post as well. I am running version 1.2.5. Thanks! contact-form.php Link to comment Share on other sites More sharing options...
vinafleur Posted June 27, 2010 Share Posted June 27, 2010 I have the same problem sending email through the contact us form. If a customer is logged in, sending email is fine otherwise an error occurred. Anyone knows how to fix this. I am using version 1.3.1 and BlueHost.com is my host. Link to comment Share on other sites More sharing options...
summer Posted June 28, 2010 Share Posted June 28, 2010 Try http://www.presto-changeo.com/content/9-fix-email-problems thanks but no-luck Link to comment Share on other sites More sharing options...
starsec Posted December 2, 2011 Share Posted December 2, 2011 thank you but this didnt work for me either. I can send but cant receive messages from the contact form Link to comment Share on other sites More sharing options...
Recommended Posts