Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / No confirmation email when using PayPal.

No confirmation email when using PayPal.

Locked

Views: 2,130

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
15 Feb 2009, 11:49 AM
#1
zdids avatar

zdids

New Zenner

Join Date:
Jan 2009
Location:
Sweden
Posts:
6
Plugin Contributions:
0

No confirmation email when using PayPal.

When a customer is placing an order and paying by PayPal IPN everything works great, except the confirmation email.

The status of the order is updated with "PayPal status: Completed @ 03:07:17 Feb 15, 2009 PST..." which, in my opinion, means that there is nothing wrong with the communication between zen-cart and PayPal.

Confirmation from PayPal is sent to Customer and me.

Already checked http://www.zen-cart.com/wiki/index.php/PayPal

Zen-Car version used: 1.3.8a, fresh install.

15 Feb 2009, 2:40 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: No confirmation email when using PayPal.

Okay, so, what do your paypal debug logs say?

15 Feb 2009, 10:16 PM
#3
zdids avatar

zdids

New Zenner

Join Date:
Jan 2009
Location:
Sweden
Posts:
6
Plugin Contributions:
0

Re: No confirmation email when using PayPal.

Thank you for your quick answer.

Well when turning on the PayPal debugging, no orders are created. When turned off rverything works like a charm (except order confirmations).

Tought maybe it had something to do with rights on /includes/modules/payment/paypal/logs so I chmod it to 777 but it made no differens.

16 Feb 2009, 7:14 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: No confirmation email when using PayPal.

Sounds like you've got damaged PHP files, or for some reason are triggering other PHP errors. Or maybe even email system errors.
Try running the debug utility mentioned in step 2a of this FAQ, and report the results after doing a transaction: https://www.zen-cart.com/tutorials/index.php?article=82

16 Feb 2009, 7:59 PM
#5
zdids avatar

zdids

New Zenner

Join Date:
Jan 2009
Location:
Sweden
Posts:
6
Plugin Contributions:
0

Re: No confirmation email when using PayPal.

When running that tool I got the message:

[16-feb-2009 20:11:19] PHP Fatal error: Call to a member function add() on a non-object in *****************/includes/functions/functions_email.php on line 405

Looking in the file I realised that it had something to do with the HTML/MIME mails, just guessing here, but maybe a missing paypal template?

I turned HTML/MIME mails off, and now an order is created, with PayPal debugging on, but still there is no confirmation sent.

Do you want me to post the content of the logfiles?

17 Feb 2009, 3:32 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: No confirmation email when using PayPal.

Sounds like you're triggering an email system error. Do store-generated emails of any sort arrive, other than the confirmation emails?

17 Feb 2009, 7:53 AM
#7
zdids avatar

zdids

New Zenner

Join Date:
Jan 2009
Location:
Sweden
Posts:
6
Plugin Contributions:
0

Re: No confirmation email when using PayPal.

E-mail system works great, except confirmations when paid with PayPal.

If I pay by COD or any other way confirmation e-mail arrives to customer and store owner like it should.

17 Feb 2009, 7:55 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: No confirmation email when using PayPal.

Have you checked to be sure that all the email templates exist on your server?

17 Feb 2009, 9:10 AM
#9
zdids avatar

zdids

New Zenner

Join Date:
Jan 2009
Location:
Sweden
Posts:
6
Plugin Contributions:
0

Re: No confirmation email when using PayPal.

Yes, and I also deleted them and reuploaded them, just to be sure.

17 Feb 2009, 10:12 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: No confirmation email when using PayPal.

Well, it's unable to find the /email/email_template_checkout.html file, and when it tries to find the default fallback file /email/email_template_default.html, it's not findint that either ... and the error happening on line 405 is a result of it running into a problem with trying to tell you that.

So, either you're missing the files in the /email/ folder or you've gone and set the permissions on them (or the folder) to something other than usual defaults, namely to something too low to allow them to be read by the system.

And, to clarify, the object error on line 405 is in relation to the $messageStack subsystem which is used to display message bars on the screen for status/error messages etc ... and, since the PayPal IPN module runs in the background with no visual output, the messageStack system is never instantiated ... because there's no use for it in that case. The next version skips that messageStack call when the messageStack is not available. But ... doing that in your case is moot since the real problem is happening before the messageStack even occurs.

18 Feb 2009, 12:01 AM
#11
zdids avatar

zdids

New Zenner

Join Date:
Jan 2009
Location:
Sweden
Posts:
6
Plugin Contributions:
0

Re: No confirmation email when using PayPal.

I have to start with saying a big THANK YOU.

You really saved me a lot of hours at this one.

The problem were that my site is in Swedish, and i use the Swedish translation pack.

The pack contains no files for /email/sv/ all I had to do was creating the directory and copy all the files from /email/ to /email/sv/.

Now it all seem to work.

Again: Thank You!

18 Feb 2009, 5:31 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: No confirmation email when using PayPal.

Nice! :clap: