<[checkoutbyemail] Sending confirmation email twice/***Authentication Error/Loss of Session Data***

tfaithw

Joined: 2007-03-05
Posts: 24
Posted: Tue, 2013-03-12 05:51

I've been in the process of completely overhauling my G2 site for the last few days. I was reallllly behind on updates and upgrades. I'm testing my checkoutbyemail module, and have noticed that I am receiving multiple confirmation emails. (I had disabled my shopping cart for the last couple years, but I was not receiving duplicate emails when I intially configured it five or six years ago). At first I was receiving four of them, until I realized that I was getting two each for the admin, and two each for my customer, since I was stupidly using the same email. I'm now using a different customer email, but still receiving duplicate emails, approximately 6-8 minutes apart. The status log on the confirmation page initially shows the transaction being recorded and confirmed at roughly the same time, and an email is received at both email account within a few seconds as expected. Less expected, the log updates a few minutes later, and at roughly the same time the email confirmation is received a second time, to show that the order has been confirmed. I have no clue why the module is compelled to confirm the order more than once?

I'm not sure if it's related, but I'm receiving the authentication/session loss error A LOT too, but it's very sporadic, and since I've done a complete overhaul, I have no idea what its related to. I was getting it mainly while trying to perform various things in maintenance, but occasionally while adding images, and now once as a guest while trying to add an image to the cart.

I had previously deactivated/reactivated the checkoutbyemail module, but just in case that's not enough I've now uninstalled and reinstalled it, as well as deactivated and uninstalled a bunch of modules that are not being used. My post-uninstall test order still resulted in duplicate emails.

I'll deactivate my checkout module, but I don't dare uninstall it, I've got hours and hours of time invested in getting my images matched up with the proper print sizes (Images from three different cameras are mixed together in my galleries). Reactivating the checkout module resulted in the confirmation being sent a third time. I didn't receive another email after the third confirmation, so I'd hoped it was fixed, but another round of testing gave me two confirmations with a much shorter lag time between. Any ideas? I don't really sell much through my site, so I guess it really wouldn't be the end of the world if my customer got two confirmations, but it looks unprofessional to have a bug in your system...

Order Number 54763
The status of this order is as follows:
Mon 11 Mar 2013 10:39:56 PM PDT : Order confirmed
Mon 11 Mar 2013 10:37:48 PM PDT : Order recorded

Order Number 54763
The status of this order is as follows:
Mon 11 Mar 2013 10:41:53 PM PDT : Order confirmed
Mon 11 Mar 2013 10:37:48 PM PDT : Order recorded


Gallery URL = http://www.tfwphotography.com/gallery2/main.php
Gallery version = 2.3.2 core 1.3.0.2
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.17 cgi
Webserver = Apache
Database = mysqli 5.0.96-community-log, lock.system=database
Toolkits = LinkItemToolkit, Exif, Getid3, Gd
Acceleration = partial/86400, partial/86400
Operating system = Linux dprhcp127.doteasy.com 2.6.18-194.17.1.el5PAE #1 SMP Wed Sep 29 13:31:51 EDT 2010 i686
Default theme = x_treme5
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22

 
tfaithw

Joined: 2007-03-05
Posts: 24
Posted: Tue, 2013-03-12 05:59

Apparently the third confirmation wasn't just because I'd reactivated the checkout module. I just received a third one for my latest test too.

The status of this order is as follows:
Mon 11 Mar 2013 10:54:30 PM PDT : Order confirmed
Mon 11 Mar 2013 10:37:48 PM PDT : Order recorded

Having a confirmation email show up three times to a customer would be just plain embarassing.

 
tfaithw

Joined: 2007-03-05
Posts: 24
Posted: Tue, 2013-03-12 06:18

I think I know part of the problem. I thought I was placing my editing confirm.tpl into the local file, but I put it into the local file in the template folder, not the one in the email folder. That would account for the third confirmation. I'm trying to troubleshoot more, but I'm getting the session loss/authentication error left and right. I'm shopping as a guest so I'm not even logged in and its telling me to try logging out. Very frustrating.

 
tfaithw

Joined: 2007-03-05
Posts: 24
Posted: Tue, 2013-03-12 06:26

And while I'm whining, it seems like it wants to drop my color pack and load a white background whenever I open my Waterfalls album. It's doing it on both my Chrome/desktop and Firefox/laptop, so it's nothing to do with my browser. If I click on page 2, and then go back to page 1, it will be gray like usual. I've tried deactivating already. It seems like I have to login/logout all the time, and even after I've just logged in, it shows I'm logged out, but when I go to login again, it shows I'm logged in. I realize this forum is not the place for all these issues, and am searching for solutions to these other problems as well, but am mentioning them in case this helps figure out what my email confirmation problem is too.

 
tfaithw

Joined: 2007-03-05
Posts: 24
Posted: Tue, 2013-03-12 07:30

I've cleared the db cache, cleared the template cache, browsed through all the checkout folders to make sure i don't have any stray confirm.tpl's floating around, and I think I'm back to just two confirmations again, and a gray background for the first page in the waterfall album...

 
tfaithw

Joined: 2007-03-05
Posts: 24
Posted: Tue, 2013-03-12 07:38

Never mind. Just got the third confirmation, roughly twelve minutes between them now. Apparently me sticking a confirm.tpl file in the wrong spot had nothing to do with anything.

 
tfaithw

Joined: 2007-03-05
Posts: 24
Posted: Tue, 2013-03-12 18:43

My site is currently in debug mode should anyone have a chance to take a look, I've changed my theme colorpack to white to make it easier to read. It seems like if I deactivate my checkout module, a lot of the authentication errors go away, and i can log in and out again without problem. Unfortunately, it's a rather key module now. I'm contacting my host (doteasy) to see if they know anything from a caching standpoint. My site moved servers about a year ago, but I was not using my site much at all and had the checkout module disabled at that point, so I could not say if this was an issue after moving servers, prior to the overhaul.