barryvdh / laravel-dompdf

A DOMPDF Wrapper for Laravel
MIT License
6.62k stars 965 forks source link

Typed property DOMDocument::$documentElement must not be accessed before initialization #994

Open Arjanshr opened 1 year ago

Arjanshr commented 1 year ago

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.

parallels999 commented 11 months ago

Seems like a question for https://github.com/dompdf/dompdf, this is only a wrapper