barryvdh / laravel-dompdf

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

Dompdf\\Options::validateArtifactPath(): Argument #1 ($path) must be of type string, null given, #1042

Closed RizalFIrdaus closed 3 months ago

RizalFIrdaus commented 3 months ago

After update laravel 10 and upgrade new version dompdf, we got error like this :

Dompdf\Options::validateArtifactPath(): Argument #1 ($path) must be of type string, null given,

if you have any solution, please reply this issues, thanks

jason-nabooki commented 3 months ago

It looks like a bug in dompdf/dompdf. There's a PR for it - https://github.com/dompdf/dompdf/pull/3433

ericamigo commented 3 months ago

ran into the same problem.

for the mean time, you can use the v2.0.4 of dompdf until this one has been sorted out.

composer require dompdf/dompdf:2.0.4

moingeek commented 3 months ago

I ran into the same issue. But post downgrading to 2.0.4 version. It got sorted out.

MitchGTV commented 3 months ago

I can confirm that downgrading to v2.0.4 has resolved this temporarily until the PR mentioned above is merged.

jsncrdnl commented 3 months ago

🎊 You saved my day, thanks !

ogrosko commented 2 months ago

Already fixed see https://github.com/dompdf/dompdf/pull/3433