Greetings,

Well, I thought I had this working. However it seems this module is sending emails, the same emails, over and over again. Unfortunatly, it seems to be stuck in an endless loop, and I can't get it to stop. it's sending both the site owners, and the subscriber emails about every 15 minutes, and with every cycle, it seems to increment the number of emails sent to us by 2. But all of the emails are exactly the same.

Any help you can provide would be greatly appreciated.

CommentFileSizeAuthor
#3 subscr.patch1.04 KBLeeMcL

Comments

LeeMcL’s picture

Assigned: Unassigned » LeeMcL

Can you please send me an example of the email being sent. Also the which version of Drupal and lm_paypal you are using. Have you made any changes to the code?

Have you checked the logs for any error reports that might be relevent? If not please do so and let me know what, if anything, they say.

I can only presume, without more information, that when a message arrives from PayPal in responsed to an action of somekind (subscription probably) that LM PayPal sends an email but for some reason an "OK" isn't being sent back to PayPal. So later on PayPal tries again. If there are any such failures they will be logged.

Lee

Tedhere’s picture

I'm having the same problem too. I'm using Latest versions of both Drupal and Im_paypal.

An example of the email sent to the admin is:
The user x has subscribed to Unlimited on sportsblogwriters.com on Tue, 03/06/2007 - 01:07

An example of the email sent to the user is:
Hello Ted and welcome to your new subscription Unlimited on Sports Blog Writers .
Quick Login
Sports Blog Writers Team

I haven't changed the code. No errors are showing up in my logs.

Thanks

LeeMcL’s picture

Status: Active » Needs review
StatusFileSize
new1.04 KB

I've tried to duplicate this problem but cannot. From the symptoms it seems as if multiple subscr_signup messages are coming from PayPal. I've never seen this happen (nor even heard of it). But just in case that is the problem I've created the attached patch.

Since I cannot duplicate the problem can someone apply this patch and let me know if it solves the problem, please?

I also suggest loggin in as admin' and going to 'LM PayPal IPN Settings' and turning on 'LM PayPal Debug' as it will provide more information.

Lee

selectsplat’s picture

I'm also using the latest version of the module and drupal. The email, even with verbose logging on is exactly the same as the user describes above. No code changes have been made at all.

I've tried changing the IPN URL in paypal, but the emails still continue. For one subscription, the admin gets 6 emails approximatly every 20 minutes, and the subscriber gets approximatly 6 emails every 20 minutes.

I'll apply the patch tonight, and see if that helps. Also, if you're interested, I can give you admin and FTP access to my site so you can look around.

selectsplat’s picture

I went through the watchdog logs, and here's what I see.

For each one of the emails sent, I get the following logs in the watchdog.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Type LM_PayPal
Date Wednesday, March 7, 2007 - 15:54
User Anonymous Guest
Location http://www.newtexasholdem.net/lm_paypal/ipn
Referrer
Message IPN incoming subscr_payment
Severity notice
Hostname 216.113.188.202
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

and ...

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Type LM_PayPal_Subs
Date Wednesday, March 7, 2007 - 15:54
User Anonymous Guest
Location http://www.newtexasholdem.net/lm_paypal/ipn
Referrer
Message This transaction has already been processed, ignored: 9JR34192HB447331H
Severity warning
Hostname 216.113.188.202
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Those are the only entried pertaining to the subscription that I can see. I don't think they are very useful, but you asked for them, so I'm providing them.

I just installed the patch, and I'm testing it out now. I'll let you know how it goes.

LeeMcL’s picture

Thanks for the log entries. They are useful in that they are not what I was expecting at all. So the patch I posted is unlikely to help.

I now really need a copy of the email's received by the user and administrator AND the corresponding log enties from both sites reporting this problem, please.

Could you also check on both PayPal accounts involved (the users and the business account for the site) and look for logs for anything unusual. In particular look for payments relating to the subscriptions and see if any are stuck in "pending" state. I've seen some odd things happen in the past when payments are made in a currency other than the site accounts default currency. If payments are stuck in pending then manually accept them and then follow the instructions in admin/help/lm_paypal

Lee

selectsplat’s picture

Yeah, the patch didn't help. Or, at least, I was still getting the emails every 20 mintues. I actually had to go into the lm_paypal module and disable the subscription becuase the customer had enough. I couldn't find any other way to stop the emails. He was willing to overlook it for awhile. :-)

However, even though the emails have stopped now, I'm still getting those exact same logs in the watchdog, every 20 minutes, I get new 12 entries. It's stuck in some sort of endless loop.

I took a look in paypal, and the payment is completed, and the subscription is active.

The emails we are/were receiving are the ones I defined in the lm_paypal module (somewhere, can't find where now). They are jsut the confirmation email being sent to the subscriber to let them know we've received their subscription, and the notification email sent to the site admin to let me know I've received a new subscription.

Let me know if you need additional details.

LeeMcL’s picture

Title: Redundant emails » Matching logs and error emails

As I mentioned in my previous post:

I now really need a copy of the email's received by the user and administrator AND the corresponding log enties from both sites reporting this problem, please.

Thanks
Lee

selectsplat’s picture

Well, it would be nice, but I don't have the administrator ones as they've all been deleted.

However, they were exactly as reported earlier in the thread.

I could try it again using my own paypal account, but since nothing has changed, and I already know I'll have issues, and replicated emails, and wasted cpu utilization, I'd rather not try it again.

I'll disable it for now and take subscriptions the hard way until somone else installs this mod on the latest release and has the same problem. Perhaps they'll save the emails.

selectsplat’s picture

OK, just got a new subscriber, and as the Admin, I received 12 emails, all exactly the same...

>>>>>>>>>>>>>>>>>>>>>>>>>>>>
to me@mydomain.net
date Mar 26, 2007 10:49 AM
subject New subscriber 123830 to on MySite
mailed-by server2.mydedicatedserver.com
The user 123830 has subscribed to on MySite on Mon, 03/26/2007 - 14:49
>>>>>>>>>>>>>>>>>>>>>>>>>>>>

I contacted the customer and asked him to send me a copy of the client version, but it looks like he also received 12 copies of hte client version. The text in both the client version, as well as the admin version were defined by me when I set up the subscription module.

selectsplat’s picture

Here's the clinet email. He received 12 copies of the exact same email.

>>>>>>>>>>>>>>>>>
From: me@mydomain.net [mailto:me@mydomain.net]
Sent: Monday, March 26, 2007 10:50 AM
To: client@hisdomain.com
Subject: Thanks for Advertising on

Hello 123830. This is confirmation that we have received your request for
the following subscription services: . Please let us
know if you have any questions.
>>>>>>>>>>>>>>>>>

selectsplat’s picture

Just wondering if this was ever fixed.

LeeMcL’s picture

Status: Needs review » Closed (fixed)

The 2nd patch available in this issue has been reported to have fixed this problem.

http://drupal.org/node/141241

Lee