Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default UPS php_network_getaddresses: getaddrinfo failed: Name or service not known

    Zencart 1.5.6
    php 7.3

    I updated my ups module from
    https://www.zen-cart.com/downloads.php?do=file&id=1293.

    It seems to work fine. But every so often i get these errors. Can someone assist me or lead me in the right direction on solving this issue. It seems to be very random when this happens.



    HTML Code:
    [03-Jul-2020 07:14:26 America/New_York] PHP Warning:  file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/inverter/public_html/includes/modules/shipping/ups.php on line 433
    [03-Jul-2020 07:14:26 America/New_York] PHP Warning:  file_get_contents(https://www.ups.com/using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action=4&13_product=GNDRES&14_origCountry=US&15_origPostal=33411&19_destPostal=&22_destCountry=US&23_weight=2.73&47_rate_chart=Regular+Daily+Pickup&48_container=00&49_residential=1): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/inverter/public_html/includes/modules/shipping/ups.php on line 433
    [03-Jul-2020 07:14:26 America/New_York] PHP Warning:  file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/inverter/public_html/includes/modules/shipping/ups.php on line 436
    [03-Jul-2020 07:14:26 America/New_York] PHP Warning:  file_get_contents(http://www.ups.com/using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action=4&13_product=GNDRES&14_origCountry=US&15_origPostal=33411&19_destPostal=&22_destCountry=US&23_weight=2.73&47_rate_chart=Regular+Daily+Pickup&48_container=00&49_residential=1): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/inverter/public_html/includes/modules/shipping/ups.php on line 436
    [03-Jul-2020 07:33:32 America/New_York] PHP Warning:  file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/inverter/public_html/includes/modules/shipping/ups.php on line 433
    [03-Jul-2020 07:33:32 America/New_York] PHP Warning:  file_get_contents(https://www.ups.com/using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action=4&13_product=GNDRES&14_origCountry=US&15_origPostal=33411&19_destPostal=21037&22_destCountry=US&23_weight=1&47_rate_chart=Regular+Daily+Pickup&48_container=00&49_residential=1): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/inverter/public_html/includes/modules/shipping/ups.php on line 433
    [03-Jul-2020 10:20:38 America/New_York] PHP Warning:  file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/inverter/public_html/includes/modules/shipping/ups.php on line 433
    [03-Jul-2020 10:20:38 America/New_York] PHP Warning:  file_get_contents(https://www.ups.com/using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action=4&13_product=GNDRES&14_origCountry=US&15_origPostal=33411&19_destPostal=&22_destCountry=US&23_weight=83&47_rate_chart=Regular+Daily+Pickup&48_container=00&49_residential=1): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/inverter/public_html/includes/modules/shipping/ups.php on line 433
    [03-Jul-2020 10:20:38 America/New_York] PHP Warning:  file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/inverter/public_html/includes/modules/shipping/ups.php on line 436
    [03-Jul-2020 10:20:38 America/New_York] PHP Warning:  file_get_contents(http://www.ups.com/using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action=4&13_product=GNDRES&14_origCountry=US&15_origPostal=33411&19_destPostal=&22_destCountry=US&23_weight=83&47_rate_chart=Regular+Daily+Pickup&48_container=00&49_residential=1): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/inverter/public_html/includes/modules/shipping/ups.php on line 436
    [03-Jul-2020 10:20:41 America/New_York] PHP Warning:  file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/inverter/public_html/includes/modules/shipping/ups.php on line 433
    [03-Jul-2020 10:20:41 America/New_York] PHP Warning:  file_get_contents(https://www.ups.com/using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action=4&13_product=GNDRES&14_origCountry=US&15_origPostal=33411&19_destPostal=&22_destCountry=US&23_weight=83&47_rate_chart=Regular+Daily+Pickup&48_container=00&49_residential=1): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/inverter/public_html/includes/modules/shipping/ups.php on line 433
    [03-Jul-2020 10:20:41 America/New_York] PHP Warning:  file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/inverter/public_html/includes/modules/shipping/ups.php on line 436
    [03-Jul-2020 10:20:41 America/New_York] PHP Warning:  file_get_contents(http://www.ups.com/using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action=4&13_product=GNDRES&14_origCountry=US&15_origPostal=33411&19_destPostal=&22_destCountry=US&23_weight=83&47_rate_chart=Regular+Daily+Pickup&48_container=00&49_residential=1): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/inverter/public_html/includes/modules/shipping/ups.php on line 436

  2. #2
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default Re: UPS php_network_getaddresses: getaddrinfo failed: Name or service not known

    PHP 7.4
    zencart 1.5.7

    If I enable FedEx Web Services Shipping I get no errors. Everything works fine.

    When I enable the UPS module I get the error above.


    On my server I have -- allow_url_fopen is On.

    Is there another setting I might be missing causing this issue.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: UPS php_network_getaddresses: getaddrinfo failed: Name or service not known

    I think the FedEx module uses CURL instead of file_get_contents.
    Maybe it'd be useful to rewrite the communications logic?
    .

    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
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default Re: UPS php_network_getaddresses: getaddrinfo failed: Name or service not known

    Quote Originally Posted by DrByte View Post
    I think the FedEx module uses CURL instead of file_get_contents.
    Maybe it'd be useful to rewrite the communications logic?
    hmm how would i go about doing that....

 

 

Similar Threads

  1. php_network_getaddresses: getaddrinfo failed
    By harry2cool in forum General Questions
    Replies: 14
    Last Post: 30 Nov 2015, 04:41 PM
  2. v151 UPS united parcel service
    By vadamalaivasu in forum Addon Shipping Modules
    Replies: 15
    Last Post: 7 Mar 2014, 01:32 AM
  3. Replies: 3
    Last Post: 10 Feb 2013, 07:23 PM
  4. Replies: 8
    Last Post: 14 Sep 2011, 11:23 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