Export PDF not working
-
I get the following warning from TCPDF when trying to export a PDF from a job posting (PHP 7.2.19):
Warning: Illegal string offset ‘url’ in …/wp-content/plugins/job-postings/tcpdf/tcpdf.php on line 18807
Warning: Cannot modify header information – headers already sent by (output started at …/wp-content/plugins/job-postings/tcpdf/tcpdf.php:18807) in …/wp-content/plugins/job-postings/tcpdf/tcpdf.php on line 7645
TCPDF ERROR: Some data has already been output to browser, can’t send PDF fileI suggest that in TCPDF there is something a string what should be an array and could not be accessed. Because the warning is sent the PDF couldn’t be rendered.
On my local development environment (PHP 7.3.1) I get another warning:
Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in …/wp-content/plugins/job-postings/tcpdf/tcpdf.php on line 17778
TCPDF ERROR: Some data has already been output, can’t send PDF fileThere the pdf couldn’t be rendered, too.
In my case disabling the warnings via Code or php.ini is not an option (this is what would work for the moment).
The question is will you fix these warnings in TCPDF, which seems to not longer be maintained, so that we can get a working pdf export functionality via an update of the plugin? Or are you going to implement an more up-to-date solution in the near future?
- The topic ‘Export PDF not working’ is closed to new replies.