Jump to content

Fatal error: php_network_getaddresses


Wairds

Recommended Posts

I am receiving the following error when trying to access a specific category on my website:

Fatal error: php_network_getaddresses: getaddrinfo failed: Name or service not known in /vhost/vhost16/l/i/f/lifecovers.co.uk/www/classes/db/mysqli.class.php on line 38

The category in question is: https://www.lifecovers.co.uk/coin-purses/clasp-purses.html

I can access the items within the category without an issue.

I am baffled as to why I receive this error as it appears generic but is affecting one particular category?

Can anybody advise?

Link to comment
Share on other sites

From my shallow research on the error message, I wonder if:
1. Your hosting server connects to a database server farm with a load balancer
2. The designated server for that specific query has been cached (not by CubeCart)
3. That designated server no longer exists

The above is just a shot into the absurd.

Here's hoping a support ticket to your hosting provider provides an answer.

Link to comment
Share on other sites

I have contacted my hosting service and their response is that they believe it to be a coding error. My response to them was that if it was a coding error I would have expected it to be consistent and reproducible. Which it is not and is borne out by the fact it appears to have gone.

Thanks once again for your response.

Link to comment
Share on other sites

What version of CubeCart are you running and have you made any changes to core code at all.  What plugins are you using ?  Any that affect category functionality especially any non-CubeCart developed ones ?

Is this consistently happening with that one category but no others or is it intermittent.

Extremely unlikely to be a "coding error" but unfortunately that is the typical response you get from 99% of hosting companies !

Ian

Link to comment
Share on other sites

Ian,

Thank you for taking an interest. The only add-in which possibly may have an impact is Add-this but there again it has been in for a while. I have carried out no recent maintenance on the website.

It was intermittent with other categories and the one category which was acting up is now fine.

Link to comment
Share on other sites

The database access info is located in /includes/global.inc.php.

The actual PHP code that requests the connection (using the access user/pass above) is located as a class in /classes/db/mysqli.class.php (or mysql.class.php if using that method).

The actual code that establishes the connection is PHP's MySQLi extension (installed alongside PHP when PHP was installed).

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...