13 replies [Last post]
gmitchel850's picture
Offline
Joined: 07/22/2008
Juice: 51
Was this information Helpful?

I am using Microsoft IIS 7 with the new rewrite module. I have CleanURLs enabled, etc.

When I tested everything in the sandbox on the development machine, everything worked fine.

On the production machine, I get a Server 500 error. I understand this is likely a rights issue. However, IIS 7 does not use a .htaccess file. By default, IIS makes folders read-only, and I'm guess this is the issue.

Which directories in UC do I have to go and enable write access for UCC to function properly. Right now, I can create shopping cart entries. Any attempt to checkout generates the 500 server error.

Thanks,

Mitch

myke@drupal.org's picture
Offline
Joined: 04/12/2008
Juice: 189
gmitchel850 wrote:I am using
gmitchel850 wrote:

I am using Microsoft IIS 7 with the new rewrite module. I have CleanURLs enabled, etc.

When I tested everything in the sandbox on the development machine, everything worked fine.

On the production machine, I get a Server 500 error. I understand this is likely a rights issue. However, IIS 7 does not use a .htaccess file. By default, IIS makes folders read-only, and I'm guess this is the issue.

Which directories in UC do I have to go and enable write access for UCC to function properly. Right now, I can create shopping cart entries. Any attempt to checkout generates the 500 server error.

Thanks,

Mitch

Using a Linux server would make it easier.. =)

-Myke

gmitchel850's picture
Offline
Joined: 07/22/2008
Juice: 51
Re: gmitchel850 wrote:I am using

And if frogs had wings . . . Eye-wink

I own the server. It has Windows 2008 Server Web Edition running on it. So that's the environment.

So, back to my question. Which UC folders needd write access? Ot is there some other reason for the 500 Server error?

Cheers,

Mitch

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: gmitchel850 wrote:I am using

Hey Mitch, this sounds like more of a general Drupal question. Ubercart itself doesn't write anywhere, but Drupal needs access to a tmp folder and a files folder, and Imagecache needs access to subdirectories in your files folder where it saves images resized for display at various places on the site.

gmitchel850's picture
Offline
Joined: 07/22/2008
Juice: 51
Re: Re: Re: gmitchel850 wrote:I am using

Thanks, Ryan. It has access already to temporary files directories, a directory for UC to use for electronic downloads, and ImageCache already works fine. I use ImageCache on every page with an image, which is most of my content.

Any idea why this happens when a user clicks the checkout button for the shopping cart? What sort of directory access would be required for that. I'm using Paypal standard to process payments, if that helps.

I'm going to go over to the ISP to check the MySQL database files for UC to make sure there's not something lurking there that points to the development server. I have found with a couple of other modules that configuration settings in MySQL were pointing to the development machine, which uses url.local via the hosts file rather than www.url.com

Mitch

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: Re: gmitchel850 wrote:I am using

You shouldn't need any sort of special access to get to /cart/checkout... it's just another page on the Drupal site. I don't know how you're configuring HTTPS for checkout, but that could have something to do with it. Puzzled

gmitchel850's picture
Offline
Joined: 07/22/2008
Juice: 51
Re: Re: Re: Re: Re: gmitchel850 wrote:I am using

I wasn't using https. I was using http. Hmm. I wonder if I need to open up https through the firewall. Probably so, eh?

Mitch

gmitchel850's picture
Offline
Joined: 07/22/2008
Juice: 51
Re: Re: Re: Re: Re: Re: gmitchel850 wrote:I am using

It makes the shopping cart page. For example, I have a test with a $1 donation still pending. Hit the button to checkout and that's when the Server 500 error occurs.

Mitch

gmitchel850's picture
Offline
Joined: 07/22/2008
Juice: 51
Re: Re: Re: Re: Re: Re: Re: gmitchel850 wrote:I am using

I was able to get to Paypal using HTTPS. So, again, any ideas on the 500 server error?

The pain with 500 errors is that they do not generate log entries.

I'll upgrade tomorrow to 1.5 and see if that helps.

Mitch

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: Re: Re: Re: Re: Re: Re: Re: gmitchel850 wrote:I am using

Have you searched on iis.net for your answer? A 500 error is a server error; IMO it's highly unlikely that Ubercart is doing anything to cause this. A permission problem would give you an access denied or a file not found - NOT a 500 error. I could tell you what a few of the common causes are in Apache (for example, a syntax error in .htaccess) but I don't know about IIS. However, a quick search on the above site tells me you can turn on "failed-request tracing" to give you detailed logs for 500 errors - you should try that out.

<tr>.
gmitchel850's picture
Offline
Joined: 07/22/2008
Juice: 51
Discounts Module

I decided to try turning off UC features one by one, hoping to isolate the problem.

It appears that the Discounts module is the culprit. When I turned it off, the server 500 error disappeared and the checkout page displays.

Any idea what the issue is with the Discounts module?

At least I'll be able to continue with Ubercart.

Mitch

P.S. If anyone wants to see the site, it is www.thelightsright.com

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Discounts Module

I think people had problems in the past with modules making invalid AHAH requests... it might be a compatibility issue of the Javascript in that module. You might want to check out the issue tracker for the module at http://drupal.org/project/issues/uc_discounts.

Cool site, btw! Smiling

dwightaspinwall's picture
Offline
Joined: 04/05/2010
Juice: 30
Re: gmitchel850 wrote:I am using

I realize this post is old, but in a situation like this it's helpful to check your php error log. I had the same symptom and found the problem there -- in our case a call to an undefined function.

gmitchel850's picture
Offline
Joined: 07/22/2008
Juice: 51
Re: Server 500 Error on Checkout

I upgraded Ubercart today. That did not fix the problem.

I have failed request logging turned on. That is no help in solving this. These server 500 errors do not log for some reason, although any other server 500 error does. I generated 3 just to be sure.

I have assumed all along it was a rights issue, especially because IIS 7 makes files read-only by default in the folders underneath a Web site. I have to change the ownership to get files to be read-write.

What files or directories does UC need to write to?

I'm about to just go ahead and put Paypal icons back on the site and drop UC altogether. I cannot sit here for weeks and make multiple trips to the ISP randomly trying this and that.

Thanks for trying to help.

Mitch