• Resolved rares13

    (@rares13)


    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

    (@littlepackage)

    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

    (@rares13)

    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

    Is there a different way to uplaod the pdf?

    Thanks again!

    Plugin Author Little Package

    (@littlepackage)

    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

    (@rares13)

    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

    (@littlepackage)

    @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.