7 replies [Last post]
gigio's picture
Offline
Joined: 01/14/2009
Juice: 8
Was this information Helpful?

Once I have paid by paypal payment method (sandbox server environment) and a click to return to my site, the sandbox server send me to www.mysite.com/cart/checkout/complete, and said me this error:

--------------------------------------------------------------------------------------------------------------------
!Internal Server Error (500)

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.!

---------------------------------------------------------------------------------------------------------------------

However, wen I reload de page (www.mysite.com/cart/checkout/complete) the page reditect to www.mysite.com/cart/

So, someone had this kind of problem?....it's posible that the problem was a configuration problem from sandbox or ubercart, because de request it's not configurated?...

thank!

tophatdave's picture
Offline
Joined: 02/09/2009
Juice: 6
Re: Interna Server Error 500 after pay with paypal

i have a similar problem. i have tracked it down to a problem with the call to ca_pull_trigger('uc_checkout_complete') which is in uc_cart.module at line 988 (in ubercart v. 6.x-2.0-beta3). i believe that the reason that the reload acts differently is that the SESSION is cleared just before the processing of the triggers. What i find strange is that it appears that both actions that are associated with the uc_checkout_complete trigger (i.e. a "thank you for your purchase email" and updating the order status to complete) appear to succeed.

yesct@drupal.org's picture
Offline
Uber Donor
Joined: 11/18/2008
Juice: 294
Re: Re: Interna Server Error 500 after pay with paypal

Does the same thing happen is you try it on the current dev version (instead of beta3)?

I'm new to ubercart but this sounds like something that might be appropriate to open an ubercart issue for on drupal.org

Other thoughts I had... Are you selecting the check box for "log in user after account creation" .. Although that would be for only anonymous people making a purchase, or is this for people making a purchase that are logged in (and are then in the authorized user role)? Or the third possibility is that the person is making a purchase with out logging in, so anonymous, but the enter an email that is already associated with an account.

tophatdave's picture
Offline
Joined: 02/09/2009
Juice: 6
Re: Re: Re: Interna Server Error 500 after pay with paypal

My issue turned out to be heinous handling of the "send admin email" action tied to the "checkout complete" trigger. i hadn't initialized my admin email address. After "addressing" the issue (pun intented), my problems were solved. Hope this helps...

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: Re: Interna Server Error 500 after pay with paypal

heh, nice pun. I make Lyle groan regularly with mine. Eye-wink

So... was the problem just that it didn't have an e-mail address set so it would choke every time it tried to send the admin notice? If that's all, seems like we could easily make this fall back to the store e-mail and then the site e-mail to avoid this in the future. Thoughts?

tophatdave's picture
Offline
Joined: 02/09/2009
Juice: 6
Re: Re: Re: Re: Re: Interna Server Error 500 after pay with payp

Yes, you are understanding the issue correctly. Seems like falling back on alternate (and possibly also misconfigured) email addresses is kind of a hack. i would think that some sort of minimal validation of the email address would be preferable. Of course, the sum total of my experience with PHP is the six or so hours i spent hunting down this issue yesterday...

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: Re: Re: Re: Interna Server Error 500 after pay with

Hmm... good call. We can tweak that e-mail action to not attempt to send anything if there is no e-mail address provided... much better long term solution. Thanks for pointing it out. Smiling

EDIT: Looking at the code, it looks like it was already falling back to the store e-mail address. I'd be curious to see if you cleared that field and unchecked the box on your store's contact settings form that says "Include the store name in the from line of store e-mails."

p1h2a3t4's picture
Offline
Joined: 02/06/2012
Juice: 8
Internal server error after paypal payment

I know it's been a while since the last comment on this thread, but I'm having this same problem. Happens both with or without return URL set in paypal. Not exactly sure what was meant by "initialized my admin e-mail", but I got the same problem if I disabled the 'send admin e-mail' altogether. This is the exact problem stated in this thread, but the fix is puzzling me.

Thx in advance.

Free Bird