Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Next Page
Author « Topic »
Page: of 2

gm4toe
New Member

United Kingdom
55 Posts

Posted - 01/04/2018 :  04:18:54  
I seem to be having a problem on checkout (email payment provider option) where the order is registered on the site but I do not receive email notification and the browser gives the following error message:
Fatal error: Cannot redeclare class phpmailerException in /home/sotashop/public_html/vsadmin/inc/class.phpmailer.php on line 4044

Everything was working correctly until yesterday and I have the current update installed and it seems to be browser agnostic.

Any thoughts what might have happened

Andy
ECT Moderator

95440 Posts

Posted - 01/04/2018 :  04:26:15  
Hi

It's odd that it just stopped working like that. Are you using the 5.2 PHPmailer files https://github.com/PHPMailer/PHPMailer/tree/5.2-stable - as far as I know this is the latest recommended.

Andy

Please feel free to review / rate our software

gm4toe
New Member

United Kingdom
55 Posts

Posted - 01/04/2018 :  05:56:53  
Yes, it is the current version.
Permissions set to 0644, is that correct?
Barry

Andy
ECT Moderator

95440 Posts

Posted - 01/04/2018 :  06:32:25  
It doesn't look like a permissions problem but you could always change it temporarily to see if it makes a difference. Have you spoken to your host to see if anything has changed on their end?

Andy

Please feel free to review / rate our software

gm4toe
New Member

United Kingdom
55 Posts

Posted - 01/04/2018 :  09:48:37  
I have asked the hosting company to have a look, will report back
Barry

Andy
ECT Moderator

95440 Posts

Posted - 01/04/2018 :  09:57:02  
Ok. Let us know what they say.

Andy

Please feel free to review / rate our software

gm4toe
New Member

United Kingdom
55 Posts

Posted - 01/05/2018 :  04:28:33  
Hi Andy,
This is what they said:
"We have setup the test SMTP script in your account which is working fine [created testsupport email address only for test purpose], please check the same with your programmer and correct your PHP mail script code to resolve the issue."

Could it be something with my security plugin?

Barry

Andy
ECT Moderator

95440 Posts

Posted - 01/05/2018 :  04:53:50  
It might well be that. Could you temporarily disable that and give it a try?

Andy

Please feel free to review / rate our software

gm4toe
New Member

United Kingdom
55 Posts

Posted - 01/05/2018 :  06:15:32  
Hi Andy,
Disabling the security plugin did not sort things either
Tried sending an email to the shop default email address and that has not been forwarded too.

Regards
Barry

Andy
ECT Moderator

95440 Posts

Posted - 01/05/2018 :  07:51:19  
How do you mean about sending the email to the store address? Not sure I follow.

Andy

Please feel free to review / rate our software

gm4toe
New Member

United Kingdom
55 Posts

Posted - 01/05/2018 :  08:48:57  
I wasn't exactly clear was I

I sent an email to the email address I have set up on the site which should have forwarded to my off-site admin email address, it didn't get forwarded; this makes me think that there may be something amiss on the server.

I have now asked the hosting company to double check the parameters I have set in includes.php for correctness - I haven't changed these parameters but I do know that the secure certificate for the site changed a few days ago and I wonder if this has anything to do with it. To be honest I am clutching at straws right now.

Barry

Andy
ECT Moderator

95440 Posts

Posted - 01/05/2018 :  09:22:10  
Is this the settings for phpmailer?

Andy

Please feel free to review / rate our software

gm4toe
New Member

United Kingdom
55 Posts

Posted - 01/05/2018 :  11:54:09  
Hi Andy,
Not getting anywhere with the hosting company, they say that my set-up for phpmailer is correct, suggested to use their mail host but it does not work either.
Details from include.php (but with password starred out for posting here):
$GLOBALS[usemailer]='phpmailer';
$GLOBALS[smtphost]='mail.sota-shop.co.uk';
$GLOBALS[smtpusername]='shop@sota-shop.co.uk';
$GLOBALS[smtppassword]='***********';
$GLOBALS[emailfromname]='Summits on the Air';
$GLOBALS[smtpsecure]='tls';
$GLOBALS[smtpport]='587';
$GLOBALS[htmlemails]=true;
$GLOBALS[customheaders]="MIME-Version: 1.0\r\nFrom: %from%\r\nReply-To: %replyto%\r\nContent-type: text/html; charset=iso8859-1\r\n";

Exactly as it was prior to the site email function not operating.
I have just put emailfriend.php onto a link and it just does not function (need to make sure I did that correctly)

Barry

gm4toe
New Member

United Kingdom
55 Posts

Posted - 01/05/2018 :  12:47:46  
Just tried using the link on the detail order page (on admin part of site) to resend an email about the order and it appears to function.

Barry

Sinbad
ECT Moderator

USA
65937 Posts

Posted - 01/05/2018 :  13:54:14  
Hi Barry, so all emails are working yes?

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

gm4toe
New Member

United Kingdom
55 Posts

Posted - 01/05/2018 :  14:44:17  
Not at all.

I still have the problem that the emails fail to send when a customer checks out and the customer receives the "Fatal error" message I pasted at the top of this thread.

I managed to go to my orders page and manually send the email confirmations using the "Resend Email" button. This is a very short term workaround but I would like to revert to the automatic facility which certainly worked every time until the end of last year.

Barry

Andy
ECT Moderator

95440 Posts

Posted - 01/06/2018 :  00:53:14  
Can you try without the customheaders line in includes.php but put it back if it makes no difference?

Andy

Please feel free to review / rate our software

gm4toe
New Member

United Kingdom
55 Posts

Posted - 01/06/2018 :  02:53:23  
Sorry, that didn't make any difference.

Just checked more closely on my orders etc. and the problem seemed to start at some time on 1 January 2018 though I doubt that is relevant
Barry

gm4toe
New Member

United Kingdom
55 Posts

Posted - 01/06/2018 :  03:07:46  
Hi Andy,

Just had a look at the error log in vsadmin and there are a lot of "undefined" calls in includes.php which occur at the time I checked out the dummy order. However this goes back further than the time I commented out the header line.
Could this be a pointer?

Barry

kierantravel
Advanced Member

United Kingdom
110 Posts

Pre-sales questions only
(More Details...)

Posted - 01/06/2018 :  03:57:53  
Im watching this thread with interest

Vince
Administrator

42874 Posts

Posted - 01/07/2018 :  03:30:49  
If you can send emails via the admin orders page then the email system is working ok, no? Could it be that on the thanks page (that is the page that is giving the error, no?) that you have somehow duplicated the includes files?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
Page: of 2 « Topic »  
Next Page
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000