Title: PHP Startup: php_network_getaddresses: getaddrinfo failed
Last modified: April 29, 2020

---

# PHP Startup: php_network_getaddresses: getaddrinfo failed

 *  Resolved [rares13](https://wordpress.org/support/users/rares13/)
 * (@rares13)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-startup-php_network_getaddresses-getaddrinfo-failed/)
 * Hi team,
 * After installing the plugin I get the error below:
 * Warning: PHP Startup: php_network_getaddresses: getaddrinfo failed: Name or service
   not known in /wp-content/plugins/waterwoo-pdf/inc/tcpdi/tcpdi.php on line 112
 * Warning: PHP Startup: failed to open stream: php_network_getaddresses: getaddrinfo
   failed: Name or service not known in /wp-content/plugins/waterwoo-pdf/inc/tcpdi/
   tcpdi.php on line 112
    Unable to watermark this file for download. Please notify
   site administrator.TCPDF_PARSER ERROR: PDF data was not read, either because 
   the file doesn’t exist, is corrupted, or transfer timed out.
 * I have checked all settings and everythings is as per documentation but still
   not working. Any idea?
 * Many thanks

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Little Package](https://wordpress.org/support/users/littlepackage/)
 * (@littlepackage)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-startup-php_network_getaddresses-getaddrinfo-failed/#post-12751220)
 * Hello!
 * That’s a really unusual error coming from the TCPDI library, one _we haven’t 
   seen before_.
 * Basically, file_get_contents() is failing on your PDF. Your PDF must be on the
   same domain as your WP installation, uploaded using the Woo product uploader (
   options for external file hosting are in the premium version). Can you please
   confirm your PDF was uploaded this way, to your own site?
 * Thank you.
 *  Thread Starter [rares13](https://wordpress.org/support/users/rares13/)
 * (@rares13)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-startup-php_network_getaddresses-getaddrinfo-failed/#post-12752020)
 * Hi, thank you for your prompt response. Not sure what do you mean by Woo product
   uploader – is this a dedicated plugin?
 * I have uploaded the pdf towards a product that exists in woocommerce. See screenshot
   here: [https://prnt.sc/s82fd5](https://prnt.sc/s82fd5)
 * Is there a different way to uplaod the pdf?
 * Thanks again!
 *  Plugin Author [Little Package](https://wordpress.org/support/users/littlepackage/)
 * (@littlepackage)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-startup-php_network_getaddresses-getaddrinfo-failed/#post-12752062)
 * No looks like you’re doing it correctly. That is what I meant.
 * What you’re running into is a problem with file_get_contents() inside a third-
   party library (TCPDI), not my code. The fact your server is coming up with
 * `PHP Startup: php_network_getaddresses: getaddrinfo failed: Name or service not
   known`
 * on a call to function file_get_contents() (assuming the file is on the same server
   as your WP installation, which you didn’t address) warrants a support call to
   your host. Have they implemented some security measure to prevent that function
   from running? If you web-search that error you will find some suggestions, but
   they are all for changes to be made at the server level (not at the plugin level).
   Again, I have not encountered this before, but I believe I’m pointing you in 
   the right direction.
 *  Thread Starter [rares13](https://wordpress.org/support/users/rares13/)
 * (@rares13)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-startup-php_network_getaddresses-getaddrinfo-failed/#post-12756367)
 * Yes, files are hosted on the same server. I will reach out to the hosting company
   to see what is their fb on this. Thank you
 *  Plugin Author [Little Package](https://wordpress.org/support/users/littlepackage/)
 * (@littlepackage)
 * [6 years ago](https://wordpress.org/support/topic/php-startup-php_network_getaddresses-getaddrinfo-failed/#post-12889771)
 * [@rares13](https://wordpress.org/support/users/rares13/) It’s been a while and
   I haven’t heard back from you about this. I’m going to close this topic, but 
   if you still have an issue feel free to open a new ticket. Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP Startup: php_network_getaddresses: getaddrinfo failed’ is closed 
to new replies.

 * ![](https://ps.w.org/waterwoo-pdf/assets/icon.svg?rev=3301838)
 * [PDF Ink Lite - Free PDF Watermark & Password Protection](https://wordpress.org/plugins/waterwoo-pdf/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/waterwoo-pdf/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/waterwoo-pdf/)
 * [Active Topics](https://wordpress.org/support/plugin/waterwoo-pdf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/waterwoo-pdf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/waterwoo-pdf/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Little Package](https://wordpress.org/support/users/littlepackage/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/php-startup-php_network_getaddresses-getaddrinfo-failed/#post-12889771)
 * Status: resolved