Results 1 to 4 of 4
  1. #1
    Join Date
    May 2007
    Posts
    14
    Plugin Contributions
    0

    Default 500 error in checkout

    Quote Originally Posted by swortis View Post
    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!
    I am having the exact same issue... Similarly, the server logs tell me nothing. Very frustrating. This site is hosted on goDaddy and the error occurs when trying to load the last step of the checkout process...

    /store/index.php?main_page=checkout_process

    The order goes through on the zen backend but it does not reach Authorize.net for payment. I tried running the script that the good doctor uploaded. Without SSL it works. With SSL I either get a timeout or a cURL error code 7 (Failed to connect() to host or proxy.) Here's what it outputs:

    Code:
    28 connect() timed out!
    Array
    (
        [url] => "https://www.zen-cart.com/testcurl.php"
        [http_code] => 0
        [header_size] => 0
        [request_size] => 0
        [filetime] => -1
        [ssl_verify_result] => 0
        [redirect_count] => 0
        [total_time] => 0
        [namelookup_time] => 0.016
        [connect_time] => 0
        [pretransfer_time] => 0
        [size_upload] => 0
        [size_download] => 0
        [speed_download] => 0
        [speed_upload] => 0
        [download_content_length] => 0
        [upload_content_length] => 0
        [starttransfer_time] => 0
        [redirect_time] => 0
    )
    Here's the funny thing... I have another site with goDaddy that runs authorize.net AIM with the same version of zen (slightly different modules, but nothing dealing with payment), same phpinfo() settings too, but on a different server. There I get the same error code from cURL when I run DrByte's script... Here's the odd thing: authorize.net AIM works there just fine with no 500 error...



    The configure.php files are identical for both sites; ENABLE_SSL is set to false on each. openssl is enabled on both servers. Yet it works on one and not the other! Argh! What's going on?


    Thanks in advance for your assistance; you guys are awesome to help support the zen community like you have.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

    Quote Originally Posted by DarkGamer View Post
    with goDaddy
    Do you have the CURL Proxy enabled for GoDaddy?
    http://www.zen-cart.com/forum/showthread.php?t=61528
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2007
    Posts
    14
    Plugin Contributions
    0

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

    Thanks for the reply, but new evidence shows it's probably not a cURL/SSL error at all. I called goDaddy and they told me they were getting a sql error to go with my 500 error... It wasn't showing up in the logs but they e-mailed me this:

    Code:
    064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'where customers_id = '7'' at line 3
    in:
    [update customers set customers_default_address_id = '7', where customers_id = '7']
    I'm not sure why it doesn't like that syntax (tried removing the commas to no avail). I checked phpMyAdmin and all the fields are there that the query is looking for...

    When I looked for what php might be generating that SQL query, I found this:

    PHP Code:
            $sql_update "UPDATE " TABLE_CUSTOMERS " SET " zen_db_output($additional_sql) . " WHERE customers_id = " . (int)$customers_id;
            
    $db->Execute($sql_update); 
    I found this offending code in customers.php; this leads me to believe it may be related to that damn additional customer fields MOD that the author stopped supporting... and I thought I had it working... Argh!

    So, the 500 error was php not knowing how to handle a mySQL error...

    Any thoughts on how to proceed?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

    Quote Originally Posted by DarkGamer View Post
    Any thoughts on how to proceed?
    http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. HTTP 500 Error on checkout
    By bobanct in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 14 Oct 2010, 12:36 AM
  2. 1.3.8a 500 error on checkout
    By darrellonsite in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 25 Aug 2010, 09:24 PM
  3. Checkout Success - Server Error 500
    By mizliz in forum General Questions
    Replies: 1
    Last Post: 6 Jul 2010, 02:42 AM
  4. 500 Internal Server Error On Checkout
    By David Canham in forum General Questions
    Replies: 3
    Last Post: 8 Feb 2010, 09:09 PM
  5. 500 Error, Unable to checkout
    By hotjackpot in forum General Questions
    Replies: 5
    Last Post: 27 Sep 2007, 07:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg