html2pdf
html2pdf copied to clipboard
Unauthorized path scheme in Parsing\Css.php
I'm getting the following error after upgrading the files that were changed 12 days ago:
\Html2Pdf.php \CssConverter.php \Parsing\Css.php
[27-Dec-2021 16:41:06 Europe/Paris] PHP Warning: copy(<span style="color: #A00; font-weight: bold;">Html2Pdf Error [1]</span><br />
Unauthorized path scheme<br />
File: <path>\html2pdf\vendor\spipu\html2pdf\src\Parsing\Css.php<br />
Line: 1768<br />
Invalid Tag: <br />
Html Line: <br />
): failed to open stream: No such file or directory in <path>\functions.php on line 1115
[27-Dec-2021 16:55:50 Europe/Paris] PHP Fatal error: Uncaught Error: Call to undefined method Spipu\Html2Pdf\Parsing\Css::checkValidPath() in <path>\html2pdf\vendor\spipu\html2pdf\src\Html2Pdf.php:1515
Stack trace:
#0 <path>\html2pdf\src\Html2Pdf.php(5778): Spipu\Html2Pdf\Html2Pdf->_drawImage()
#1 <path>\html2pdf\src\Html2Pdf.php(1440): Spipu\Html2Pdf\Html2Pdf->_tag_open_IMG()
#2 <path>\html2pdf\src\Html2Pdf.php(1408): Spipu\Html2Pdf\Html2Pdf->_executeAction()
#3 <path>\html2pdf\src\Html2Pdf.php(5598): Spipu\Html2Pdf\Html2Pdf->_makeHTMLcode()
#4 <path>\html2pdf\src\Html2Pdf.php(1440): Spipu\Html2Pdf\Html2Pdf->_tag_open_TD()
#5 <path>\html2pdf\src\Html2Pdf.php(1394): Spipu\Html2Pdf\Html2Pdf->_executeAction()
#6 <path>\html2pdf\src\Html2Pdf.php(961): Spipu\Html2P in <path>\html2pdf\src\Html2Pdf.php on line 1515
I manually updated the mentioned files. Is that what could have gone wrong?
Found the issue... apparently it's not possible any longer to insert img tags where the source is a file instead of a url? At least, the error is cause in a place where an image is inserted from the c:\ drive and when I change it to the url, the problem is gone.
Is this by design or unplanned?