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