Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / 500: internal error with Authorize.net final checkout

500: internal error with Authorize.net final checkout

Locked

Views: 10,869

Results 1 to 20 of 27
This thread is locked. New replies are disabled.
21 Jul 2007, 1:40 AM
#1
swortis avatar

swortis

New Zenner

Join Date:
Mar 2007
Location:
Cambridge, MA
Posts:
59
Plugin Contributions:
0

500: internal error with Authorize.net final checkout

Wondering if anyone can suggest a way of troubleshoot an authorize.net AIM setup. I'm getting a 500 (internal error) on the final step of checkout (Testing Mode). Server logs don't shed any light at all on the problem.

How can I troubleshoot this issue?

Thanks!

21 Jul 2007, 4:28 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 500: internal error with Authorize.net final checkout

500 (internal error)
How can I troubleshoot this issue?
Talk to you host about this as there is little you can do about it even if you can determine what it is.

21 Jul 2007, 9:25 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: 500: internal error with Authorize.net final checkout

What version of Zen Cart?
What patches have you installed?
What addons/contributions have you installed?
Who is your host?
If you switch to a different payment module, does this same problem continue?

23 Jul 2007, 12:53 PM
#4
swortis avatar

swortis

New Zenner

Join Date:
Mar 2007
Location:
Cambridge, MA
Posts:
59
Plugin Contributions:
0

Re: 500: internal error with Authorize.net final checkout

**Version: **ZC 1.3.7 - patched through the equiv. of 1.3.7.1

**Addons: **Super Orders, ImageHandler, IntegratedCOWOA

Host: InMotionHosting.com

Error does not occur with other payment options (such as COD)

Thanks for the help!

23 Jul 2007, 6:04 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: 500: internal error with Authorize.net final checkout

Ask your host whether your hosting account supports CURL, and whether any proxy is required.

23 Jul 2007, 6:14 PM
#6
swortis avatar

swortis

New Zenner

Join Date:
Mar 2007
Location:
Cambridge, MA
Posts:
59
Plugin Contributions:
0

Re: 500: internal error with Authorize.net final checkout

CURL is supported. The binary is located at /usr/bin/curl

23 Jul 2007, 6:36 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: 500: internal error with Authorize.net final checkout

If you're using Zen Cart v1.3.7, go to this post and grab the updated AIM module code I posted there.
http://www.zen-cart.com/forum/showpost.php?p=310464&postcount=45

Install it, turn on Debug Logging to file, and test again.

If it doesn't work, post the log for analysis. It'll be in the /cache folder.

23 Jul 2007, 7:12 PM
#8
swortis avatar

swortis

New Zenner

Join Date:
Mar 2007
Location:
Cambridge, MA
Posts:
59
Plugin Contributions:
0

Re: 500: internal error with Authorize.net final checkout

Still getting an 500 internal error. However, not seeing anything in /cache (unless you mean a different cache directory not at root?)

Tried setting the error log to "Log File" and "Log and Email" - neither appeared to create a log file

25 Jul 2007, 12:23 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: 500: internal error with Authorize.net final checkout

I meant the 'cache' folder at the root of your zen cart install ... perhaps "public_html/cache" for you ?
In order to write the logs, the folder needs to be read-write .. ie: chmod 777

25 Jul 2007, 12:46 AM
#10
kgooding avatar

kgooding

New Zenner

Join Date:
Feb 2006
Posts:
12
Plugin Contributions:
0

Re: 500: internal error with Authorize.net final checkout

shot in the dark.. does it require mod_rewrite?

25 Jul 2007, 1:20 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: 500: internal error with Authorize.net final checkout

The authorize.net AIM module shouldn't have any connection with nor be impacted by any mod_rewrite settings.

25 Jul 2007, 1:19 PM
#12
swortis avatar

swortis

New Zenner

Join Date:
Mar 2007
Location:
Cambridge, MA
Posts:
59
Plugin Contributions:
0

Re: 500: internal error with Authorize.net final checkout

This is getting seriously frustrating...

Still nothing being written to the cache folder (which is at the root of the zen cart install and chmod 777..) There's an .htaccess file in there and an index.php file as well. Should there be?

Still getting the 500 internal server error.....

DrByte:

I meant the 'cache' folder at the root of your zen cart install ... perhaps "public_html/cache" for you ?
In order to write the logs, the folder needs to be read-write .. ie: chmod 777

25 Jul 2007, 5:11 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: 500: internal error with Authorize.net final checkout

You can test CURL on your server using the following script

Please unzip this curltest.zip file , and upload the curltest.php file to your server ... into the public_html folder.

Then point your browser to www.your_domain.com/curltest.php

If uploading the unzipped file to your server and running it via your browser doesn't bring back a Success message, then CURL support is not operating properly.

By default it tests non-SSL mode. To test in SSL mode, add ?ssl=1 to the URL when running it via your browser.

You can test connection to various services by adding various parameters:
?linkpoint=1
?authnet=1
?paypal=1

If you can share your URL on the forum, we may be able to help diagnose the limitations further.


NOTE: In v1.3.9, you'll find a newer version of this file in your /extras/ folder as /extras/curltester.php
You DO NOT need to download THIS one if you've got that one in your 1.3.9 site already.

26 Jul 2007, 1:51 AM
#14
swortis avatar

swortis

New Zenner

Join Date:
Mar 2007
Location:
Cambridge, MA
Posts:
59
Plugin Contributions:
0

Re: 500: internal error with Authorize.net final checkout

*** url removed ****

26 Jul 2007, 4:16 AM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: 500: internal error with Authorize.net final checkout

Okay, the problem is using CURL to talk to SSL URLs, ie: https:// addresses, which authorize.net requires.

It seems your host doesn't support SSL with their CURL setup ... it gives the 500 INTERNAL SERVER ERROR when testing SSL destinations.

You'll need to talk to your host about that.

26 Jul 2007, 7:15 PM
#16
swortis avatar

swortis

New Zenner

Join Date:
Mar 2007
Location:
Cambridge, MA
Posts:
59
Plugin Contributions:
0

Re: 500: internal error with Authorize.net final checkout

The host is claiming that cURL w/SSL support is already enabled and compiled. What are you seeing in those test results that I can report to them to demonstrate it is not working correctly?

Thanks!

26 Jul 2007, 7:20 PM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: 500: internal error with Authorize.net final checkout

If you run it regularly, without parameters, you get good results.

If you run it pointing to an SSL address, you get the 500 INTERNAL SERVER ERROR:
<snip>
same if you point it to the authnet server:
<snip>

But if you do the same from the Zen Cart server, where CURL is configured to use SSL when requested, it works fine.
<snip>
(ie: in this case it gives an HTTP Response 200 ("ok"), and provides the feedback from auth-net that the test parameters didn't include a username/password (which is of course intentional since all we're testing is communications, not authentication).

27 Jul 2007, 2:31 PM
#18
swortis avatar

swortis

New Zenner

Join Date:
Mar 2007
Location:
Cambridge, MA
Posts:
59
Plugin Contributions:
0

Re: 500: internal error with Authorize.net final checkout

Ok - it appears the problem is 'php suexec' which is running on the server. If they recompile php on the server without suexec the curl test works fine, but everything else seems to break (including WordPress, and other php heavy apps)

Can the payment module be adjusted to work php suexec?

27 Jul 2007, 8:18 PM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: 500: internal error with Authorize.net final checkout

I don't see why suexec would have any influence on CURL making an external SSL call.

27 Jul 2007, 8:24 PM
#20
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: 500: internal error with Authorize.net final checkout

We use phpsuexec on several servers and cURL works just fine,

make sure that when they recompile php using phpsuexec that they include cURL in the compile