Support » Plugin: AmazonSimpleAdmin » Error in Server Log Every Second

  • I am getting the below error every second on my server logs. I am novice so this may as well be a foreign language. Can anyone offer any fix to clean out my server logs?

    #3 /wp-content/plugins/amazonsimpleadmin/AsaCustomerReviews.php(55): AsaCustomerReviews->_grabReview()
    #4 /wp-content/plugins/amazonsimpleadmin/AsaCore.php(1660): AsaCustomerReviews->__construct( in /wp-content/plugins/amazonsimpleadmin/lib/AsaZend/Http/Client/Adapter/Socket.php on line 235PHP Fatal error:  Uncaught exception 'AsaZend_Http_Client_Adapter_Exception' with message 'Unable to Connect to tcp:// Error #0: php_network_getaddresses: getaddrinfo failed: Name or service not known' in /wp-content/plugins/amazonsimpleadmin/lib/AsaZend/Http/Client/Adapter/Socket.php:235
    Stack trace:
    #0 /wp-content/plugins/amazonsimpleadmin/lib/AsaZend/Http/Client.php(973): AsaZend_Http_Client_Adapter_Socket->connect('', 80, false)
    #1 /wp-content/plugins/amazonsimpleadmin/AsaCustomerReviews.php(131): AsaZend_Http_Client->request('GET')
    #2 /wp-content/plugins/amazonsimpleadmin/AsaCustomerReviews.php(82): AsaCustomerReviews->_getIframeContents()
    #3/wp-content/plugins/amazonsimpleadmin/AsaCustomerReviews.php(55): AsaCustomerReviews->_grabReview()
    #4 /wp-content/plugins/amazonsimpleadmin/AsaCore.php(1660): AsaCustomerReviews->__construct( in /home2/doityov6/public_html/wp-content/plugins/amazonsimpleadmin/lib/AsaZend/Http/Client/Adapter/Socket.php on line 235

    My Site:

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Timo Reith


    Seems like your server can’t connect to the amazon webservice. You should ask your hoster to allow that.

    Hi Timo,

    Thank you very much for replying. I think your plugin is great, I just hate to see these constant errors. I went ahead and contacted my host about it and here was the response:

    If they could give us details about the sequence of things that need to happen to use the amazon web servicewe may be able to help further. I can tell you based on a curl to that simply accessing works
    brings up the contents of their front page.

    which is what the exception says that its trying to do when it says that its trying to make a tcp:// connection to on port 80

    but it may be trying to do something else (web service) related then it gets there, which may be what is actually failing.

    This is the section of that plugin that makes a connection to the amazon service (and normally probably connects to something more involved than retrieving the front page). It gives the option to connect to particular ports,
    /wp-content/plugins/amazonsimpleadmin/AsaCore.php(2345): AsaCustomerReviews->__construct(‘B0028W4P18’, ‘http://www.amaz…’, Object(AsaZen in /wp-content/plugins/amazonsimpleadmin/lib/AsaZend/Http/Client/Adapter/Socket.php on line 235

    What ports does it need to connect on? If it is something more than port 80 there may be a block on the firewall.

    Thank you,
    Level II Site/Script Compatibility

    When you find the time could you try to sort through this? I am sure other folks on shared hosting may benefit.


    Plugin Author Timo Reith


    The mentioned section does not connect to the webservice but to the customer ratings page. But regardless, the plugin only makes connections on port 80. For the webservice on host tcp:// and for the customer ratings page on host tcp://

    In the initial error message it says: “Unable to Connect to tcp://”
    That means, the server can not connect to tcp:// on port 80 and that’s the problem.

    If you google for the PHP error “php_network_getaddresses: getaddrinfo failed: Name or service not known” you will find something like this:
    what suggests that it is an issue of server configuration.

    If it would be a general problem/bug, every user of the plugin would have this error.

    If your hoster thinks something else gets blocked by the firewall, I think it would be best if they look into their firewall logs and check out what it is, because I can not imagine what it could be. The above mentioned hosts on port 80 are the only connections the plugin requests.

    I hope we can solve this…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error in Server Log Every Second’ is closed to new replies.