D6 & Ubercart:

Error 500 after submit order (checkout complete),
reload page and it works, shows cart (order on file, too).
Visible on http://tap-water.com/node/3

Since two days I try to get this checkout to work, installed different versions over and over agin, can't get over the error without reloading the page.

Did someone have this problem too, or can give some hint?

Comments

alex895’s picture

Assigned: alex895 » Unassigned
cha0s’s picture

I get a 404 Not Found error when I try to view the link you provided.

rszrama’s picture

Are you using IIS or Apache?

alex895’s picture

Priority: Normal » Minor
Status: Active » Fixed

Many thanks for looking into this! Did a new testing installation, and it works now without the 500 error. Installed the latest version of uc from the Bazaar Repository.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

mairav’s picture

Drupal 6.9 and Ubercart beta5

I have the same white page in the /cart/checkout/review after clicking the "submit order" button with Check or money order and cash on delivery that are the only two enable payment methods.

I went to the apache logs and they say:

[Thu Mar 19 12:11:10 2009] [error] [client 190.229.9.9] malformed header from script. Bad header=No recipient addresses found i: php-script, referer: http://www.mydomain.com/cart/checkout/review

If I retry it says I have no products on my shopping cart, but if I go to see my orders, the order has been processed. How can I fix this?
What did you installed to make it work?

Your help will be very appreciated.

cha0s’s picture

Priority: Minor » Normal
Status: Closed (fixed) » Active

Seems related to this: #357131: Internal Server Error on adding the comment but, unfortunately, there doesn't seem to be any resolution yet.

Does this only happen for anonymous users?

Island Usurper’s picture

Component: Website » Code
Category: support » bug
rszrama’s picture

Status: Active » Closed (fixed)

This is a support issue related to your web server, not a code error. Please find support in the support forums.

mairav’s picture

I don't allow anonymous users to buy products, just register ones. When this blank page come, the operation is confirmed, but it doesn't tell the user they have confirmed it.

rszrama, I could't find in the support forums anything that would give me a clue to solve this problem.

I administer the server where the site is running along with some more servers with more than 2000 sites, and I can tell there is no problem with the server itself. Tell me where do you know the problem is (be specifi) so I can check it, but as I can see, there must be a code problem and your answer is not giving much of a clue. (and sorry for my english, I'm a bit rusty).

ilakshmir’s picture

I want to share my experience with fixing the 500 internal error issue on checkout on godaddy shared account.

I did not have a store name and store email id set up when I tested my payment gateway with paypal. Everything went fine until the checkout completion. When paypal redirected the buyer to my site, I got the error.

Finally after I entered a store name and email id, the problem got resolved. It may help if Ubercart mentions that these fields are required for proper functioning (may be required only on some servers).

Hope this helps someone.

Regards
Iyer

mairav’s picture

Sorry for the delay, I just got saw your message.

Thanks for sharing your experience, but sadly it didn't help. I'm using the other payment method for now, but made a modification to say Bank deposit or wire transfer, and add the bank accounts to the email notification.

I went to Stre administration > Configuration > Store Settings > Contact settings... I checked and I have a Sotre name and an Email address. I don't know if that is what you said, but i couldn't finde and "email id", i guess that is for pay pal.

I don't know what else to do, cause there is no problem in the server side as they told before... In some days I have to launch the site and have no solution yet. :(

mairav’s picture

After upgrading to RC3 the error was still a 500 server error, but the logs showed the following:

[Thu May 14 15:43:39 2009] [error] [client 111.111.22.111] malformed header from script. Bad header=/home/adminuser/dead.letter..: php-script, referer: http://www.domain.com/cart/checkout/review

I did several things to try to fix it, but I think the one that did it was something with the mail. The email assigned at Site Configuration > Site information was and external email, and it was different from the one assigned to the store. I made both of them internal mails and it stopped giving the 500 server error at /cart/checkout/review

This may not be something related with Ubercart, but maybe it helps someone with the same problem.

mittalpatel’s picture

Thanks a lot ilakshmir, You saved hours and hours of mine. I am happy to find your comment on very first attempt to solve this error.
I filled up all the details in Store Configuration (Store name, Store owner, E-mail address, Phone number, fax number, street address, city, state country and postal code. ) After saving Store configuration I submitted the order and my error got solved. I could see order completed confirmation....

Many thanks

@mairav Hope you will find the solution soon :)

mairav’s picture

@mittalpatel all my details where complete, that was not the problem. Maybe I didn't write it well, sorry for my english. I've already solved it, with the solution I posted in #13. I think it's because I had an external mail assigned to the site and store. I made both of them internal, I mean, a mail from the same domain and it stopped saying the 500 internal error.

I'm happy you solved it too :D

jgarbe’s picture

Yeah, this would have cost me hours to figure out. Thank you, ilakshmir!

estone’s picture

Great!
I didn't have the emailadres of the shop filled in. Did just that and voila... error fixed.

Many thanks.

damien tournoud’s picture

Category: bug » support

Requalifying. There might be a bug somewhere, but the error 500 is definitely a server configuration issue.

videographics’s picture

Version: 6.x-2.x-dev » 6.x-2.4
Category: support » bug
Status: Closed (fixed) » Active

I switched from a host running Apache 1.3 to Apache 2.2 and this problem went away.

How many hosts still run Apache 1.3? Is this worth putting any effort fixing this?

Maybe this should just be posted as a known issue.

tr’s picture

Version: 6.x-2.4 » 6.x-2.x-dev
Category: bug » support
Status: Active » Closed (fixed)
caitiff’s picture

Hello,

i have the same error, mairav on #15 have the right solution. Not only need to put all the info in your store information, your email need to be in the same domian of the shop.

exemple

shop => www.coolweb.com
store email => coolweb@gmail.com

WRONG, internal 500 error

shop => www.coolweb.com
store email => info@coolweb.com

RIGHT! this rules.

(obiously dont know WHY)

thanks for all mariav!

barber75’s picture

Guys i'm having issues with this also, and have tried changing the email address of the store to reflect my email set at site configuration->site information. Also set the store name, and set domain for my store, however still having issues.

I'm wondering whether it is something to do having the domain module installed. Any of you guys solved this issue with the domain module installed? The reason i'm asking is that although i have set my store domain and email to domain.com and hello@domain.com. I'm actually getting my error when trying to use the store on http://subdomain.domain.com. Could this be why i'm still having issues?

The Store administration->Configuration->store settings page is domain specific, so too is the configuration->site information.

So do i need to make each one different on both sections for each domain? or make it general for both?!

The errors i'm getting on my server log are as follows:

[Tue Jan 04 00:10:39 2011] [error] [client 62.255.127.142] malformed header from script. Bad header=/home/sites/domain.co.uk: index.php, referer: http://subdomain.domain.co.uk/drupal/cart/checkout/review
[Tue Jan 04 00:11:03 2011] [error] [client 216.113.191.33] client denied by server configuration: /home/sites/domain.co.uk/public_html/drupal/uc_paypal

ahhhh someone help me! wasted so much time on this blasted error!

thanks in advance

Craig

asb’s picture

We are experiencing this issue with Ubercart on 6.x-2.4 on some shared hosting on "Godaddy", probably running CentOS with Apache 1.3. The shop e-mail matches the domain name.

What is the recommened action to take? Upgrade to the current 6.x-2.x-dev release?

Thanks, -asb

paulgemini’s picture

i'm experiencing this on godaddy non-shared server. First of all - I recommend that everyone here run away from Godaddy. They stink for Drupal sites. I have no choice but to use them right now.

I'm trying the fix in #13. Will let you know if it works. I'm using the latest dev of Ubercart.

A few more things that people should try (if they're using Godaddy):

Turn off FASTCGI...
Check your HTACCESS file. If you've updated drupal you might have overwritten it
If you're in a subdirectory, there are some other issues that can cause 500 errors...google that.

paulgemini’s picture

nope - didn't work.