Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Mar 2006
    Posts
    191
    Plugin Contributions
    0

    Default cURL connection errors - PayPal IPN fails - on new IIS7 server

    Hi all,

    I've transferred my site from IIS6 to a new IIS 7 server and the PayPal IPN promptly failed. It still takes the money, but the orders don't have any products so I don't know what has been ordered.

    So today I decided to try installing a fresh Zen Cart just to see if it would give me any useful error messages... and it has:

    CURL problems detected: 28 => Operation timed out after 4 seconds with 0 bytes received more info...
    CURL requires SSL support. Please notify webmaster or hosting company. 28 => Operation timed out after 4 seconds with 0 bytes received more info...


    and then the same two errors again.

    Another test, the extras/curltest.php page results in a timeout.

    Then I read this thread and added ?paypal=1 to the test.

    That resulted in this:

    Array
    (
    [url] => "https://api-3t.paypal.com/nvp"
    [content_type] => text/plain; charset=utf-8
    [http_code] => 200
    [header_size] => 215
    [request_size] => 166
    [filetime] => -1
    [ssl_verify_result] => 19
    [redirect_count] => 0
    [total_time] => 2.028
    [namelookup_time] => 0.041
    [connect_time] => 0.078
    [pretransfer_time] => 1.926
    [size_upload] => 0
    [size_download] => 146
    [speed_download] => 71
    [speed_upload] => 0
    [download_content_length] => 146
    [upload_content_length] => 0
    [starttransfer_time] => 2.027
    [redirect_time] => 0
    )

    ACK=Failure&L_ERRORCODE0=81002&L_SHORTMESSAGE0=Unspecified%20Method&L_LONGMESSAG E0=Method%20Specified%20is%20not%20Supported&L_SEVERITYCODE0=ErrorEOF


    In that other thread DrByte says that this error is from paypal and is what one would want to see.

    So, if that is the case then how do I stop these cURL errors on the installer? The rest of the thread gives no further clues.

    Any advice is much appreciated.
    Rob

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: cURL connection errors - PayPal IPN fails

    Is this your server or a hosted server?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: cURL connection errors - PayPal IPN fails

    The PayPal IPN in v1.3.x doesn't use CURL for anything, so that's a red herring.

    You need to make sure your new server can receive communication from PayPal, as well as initiate it: http://www.zen-cart.com/wiki/index.php/PayPal


    As to CURL in the zc_install process, it uses the same code as curltest.php does, but without the ?paypal=1 on it.
    .

    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.

  4. #4
    Join Date
    Mar 2006
    Posts
    191
    Plugin Contributions
    0

    Default Re: cURL connection errors - PayPal IPN fails - on new IIS7 server

    DrByte,

    Just to confirm:

    If I'm only using PayPal IPN for payments then can I safely dismiss the CURL errors as causing the orders to show no products after returning from Paypal?


    And related:

    I'm still unsure if all of this means CURL is working or not.

    I read somewhere that the next ZC will require CURL. As well, I want to use the "AustPost Improved" contribution and I am of the impression that CURL is required for that.

    Therefore I sort of need to know if it is working or if not then I need to find out why and fix it.

    Thanks for any further advice on this. I'll go and run back through the Paypal connections page now as well.

    Rob

  5. #5
    Join Date
    Mar 2006
    Posts
    191
    Plugin Contributions
    0

    Default Re: cURL connection errors - PayPal IPN fails

    Quote Originally Posted by kobra View Post
    Is this your server or a hosted server?
    Hi Kobra,

    Yes, the server is mine, as in - it's a brand new fully dedicated server at Server Intellect. It's running 64 bit Server 2008 and I've installed MySQL and PHP on it to run my ZC store.

    The old IIS6 server was a VPS on Server 2003 which I have full remote desktop control over as well. That account expires in a week and I'm fast running out of options.

    I really need to find someone who is running Zen Cart with Paypal IPN successfully on IIS7... and then perhaps compare the configuration.

    Here's the PHPinfo in case anyone can spot anything obvious: http://wonderwebs.net/phpinfo.php

    Regards,
    Rob

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: cURL connection errors - PayPal IPN fails - on new IIS7 server

    Is this Dedi soley for your Zen Cart or do you have other win specific apps that require Win2003?

    If no other apps you might consider converting it to a Linux base as Zen Cart excells in that environment.

    Your phpinfo states cURL support enabled
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Mar 2006
    Posts
    191
    Plugin Contributions
    0

    Default Re: cURL connection errors - PayPal IPN fails - on new IIS7 server

    Quote Originally Posted by kobra View Post
    Is this Dedi soley for your Zen Cart or do you have other win specific apps that require Win2003?

    If no other apps you might consider converting it to a Linux base as Zen Cart excells in that environment.

    Your phpinfo states cURL support enabled
    Hi kobra,
    Yes, I primarily host Dotnetnuke systems and require the MS gear. Both Server 2003 and 2008 are fully capable of running Zen Cart however and the problem lies somewhere in a configuration option.

    I'm at least in the correct forum for it :)

    Regards,
    Rob

  8. #8
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: cURL connection errors - PayPal IPN fails - on new IIS7 server

    Using http://wonderwebs.net/zencart/extras/curltest.php, it seems your CURL support works fine to talk to paypal and authorize.net and linkpoint, but it doesn't seem to be able to reach the zen-cart.com server to get a response from a plain curl test, such as curltest.php uses without any parameters.
    I suspect your CURL functionality is probably fine. I have no idea why your server can't talk to the Zen Cart server ... unless the IP address you're on has been blocked due to excessive spam at some point. Nevertheless, CURL support appears to be active. I can't vouch for the austpost mod, as I've never used it.
    .

    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.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: cURL connection errors - PayPal IPN fails - on new IIS7 server

    Quote Originally Posted by robax View Post
    ... the PayPal IPN promptly failed. It still takes the money,
    If it's taking the money but your store is never adding the order to its database, that means that the IPN communication from PayPal's server to your server is failing.

    As is mentioned in the wiki article I posted earlier, there are all kinds of reasons for that to fail. Turn on the debug log-to-file, and post a link to a zipped copy of the logs you collect when doing a test transaction.


    Was there a PHP version difference between the old and new servers? What were the versions? How about MySQL versions?


    Quote Originally Posted by robax View Post
    ...but the orders don't have any products so I don't know what has been ordered.
    If you're referring to the PayPal email receipt, that's normal. The IPN-initiated transactions don't currently include line-item details ... by design.
    .

    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.

  10. #10
    Join Date
    Mar 2006
    Posts
    191
    Plugin Contributions
    0

    Default Re: cURL connection errors - PayPal IPN fails - on new IIS7 server

    Quote Originally Posted by DrByte View Post
    Using http://wonderwebs.net/zencart/extras/curltest.php, it seems your CURL support works fine to talk to paypal and authorize.net and linkpoint, but it doesn't seem to be able to reach the zen-cart.com server to get a response from a plain curl test, such as curltest.php uses without any parameters.
    I suspect your CURL functionality is probably fine. I have no idea why your server can't talk to the Zen Cart server ... unless the IP address you're on has been blocked due to excessive spam at some point.
    Thanks again very much for the replies.

    I'm going to put a ticket in with Server Intellect in a moment and point them to the thread.

    If the ip was blocked, would I be able to access the Zen cart site at all from the server? I have tried opening http://www.zen-cart.com/testcurl.php directlly in a browser and it loads a green page as follows:

    CURL Test Page
    This page is intended for testing CURL behaviour. You should be accessing this page via CURLTEST.PHP running on YOUR server.
    You submitted the following fields and data:
    PROBLEM: No POST data received.
    Data validation
    failed to receive expected statuskey
    Other Info
    Your server IP address is: 75.126.107.229.
    Your system identifies itself as: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; .NET CLR 3.5.30729)


    If that page is accessible from the server's web browser, then does that mean it should also work via curltest.php running off the same server/ip?

    Or is the curltest.php using a special port that I could check for. I've read that it wants 80 or 443 and as far as I can tell they are both open both ways.

    Rob

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Curl fails
    By mhess in forum General Questions
    Replies: 1
    Last Post: 14 Aug 2013, 05:04 PM
  2. Errors in Paypal IPN checkout??
    By kczm in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 19 Nov 2008, 05:14 AM
  3. Moved to a new server, and no connection.
    By birdoasis in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 4 Mar 2007, 08:08 PM
  4. PayPal IPN - SQL errors
    By tabdiggy in forum Addon Payment Modules
    Replies: 2
    Last Post: 26 Feb 2007, 07:56 PM
  5. No response to CURL from Fedex server, check CURL availability?
    By zc-newbie in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 13 Sep 2006, 07:25 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR