Hello All,I can’t seem to export a PDF with PHPMaker 2021 it just seems to hang when I try to export any PDF anywhere. All my permissions seem correct but I have an Apache error (see below)–[Mon Jul 26 14:00:07.235836 2021] [proxy_fcgi:error] [pid 587:tid 140562770245376] [client 172.21.128.45:55449] AH01071: Got error ‘PHP message: PHP Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /opt/bitnami/apache/htdocs/src/ExportPdf.php on line 101PHP message: PHP Warning: file_get_contents(https://website/css/ewpdf.css): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /opt/bitnami/apache/htdocs/src/ExportPdf.php on line 101’, referer: https://website/AccountCustomerListThank You Very Much.
studiobfd wrote:
PHP Warning: file_get_contents(> https://website/css/ewpdf.css> ): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
Are you sure your testing site (https://website/) support HTTPS?
This is an engineering site for development behind my vpn, this site is not an https site. If it would export to PDF work?
If your site does not support HTTPS, just test with HTTP. Export to PDF does not require HTTPS, but the URL (http:// or https://) must be correct according to what your site supports.If it is behind VPN, the PHP function file_get_contents() may not be able to access the file. It is recommended that you test/develop on a local web server on your PC first.Also check allow_url_fopen in your php.ini, if it is disabled, you may enable it and try again.
Thank You, export to pdf still hangs I see this message in the browser:ew.js:3998 Uncaught TypeError: Failed to execute ‘createObjectURL’ on ‘URL’: Overload resolution failed.
at Object. (ew.js:3998)
at c (jquery-3.6.0.min.js:2)
at Object.fireWith [as resolveWith] (jquery-3.6.0.min.js:2)
at l (jquery-3.6.0.min.js:2)
at XMLHttpRequest. (jquery-3.6.0.min.js:2)All other exports work perfectly word, excel, email etc.Thanks
You may check the HTTP response from the server, see https://discourse.hkvstore.com/t/check-http-response/3213/1