Replies: 4 comments 4 replies
-
I am having the same issue, not sure where I am going wrong here. Nothing in the log file |
Beta Was this translation helpful? Give feedback.
-
How many RAM and processors are in the server? |
Beta Was this translation helpful? Give feedback.
-
I resolved this issue by updating the composer and node packages; the path to the puppeteer executable wasn't correct it was using a different version path to the one that was installed on my server. |
Beta Was this translation helpful? Give feedback.
-
I'm still getting this error. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
I've installed the spatie/laravel-pdf package in my application, and it works fine locally. However, when I deploy it to a live server (Linux) and install all the required dependencies, attempting to generate a PDF results in an attached file of zero bytes.
test.pdf
How to reproduce the bug
use function Spatie\LaravelPdf\Support\pdf;
return pdf()
->html('
Hello world!!
')->name('test.pdf')
->download('test.pdf');
Package Version
1.1
PHP Version
8.2
Laravel Version
10.3.2
Which operating systems does with happen with?
Linux
Notes
No response
Beta Was this translation helpful? Give feedback.
All reactions