laravel-dompdf
laravel-dompdf copied to clipboard
Typed property DOMDocument::$documentElement must not be accessed before initialization
I am getting an error when my code is deployed in cPanel hosting server with php 8.1.21 in PDF::loadView() function. Error is shown in the title. This is the error share link(without data arguements), link2(with data arguements). I have no problem in while testing in local environment with php 8.1.2 and php 8.2 but only in cPanel hosting server. I don't know if this is cPanel issue or dom-pdf issue.
Seems like a question for https://github.com/dompdf/dompdf, this is only a wrapper