pdf-l4 icon indicating copy to clipboard operation
pdf-l4 copied to clipboard

Internal Server Error 500

Open TechKat opened this issue 10 years ago • 2 comments

I've done everything the installation has asked but I get a Internal Server Error 500.

return dd(PDF::load($html, 'A4', 'portrait')->output());

The code is within a controller that a route uses. The page is just blank, but Inspect Element comes up with error 500.

TechKat avatar Sep 12 '14 19:09 TechKat

I got the same error and when checked apache error logs, I saw:

PHP Fatal error:  Call to undefined method Thujohn\\Pdf\\PdfFacade::load()

azamat-sharapov avatar Oct 23 '14 09:10 azamat-sharapov

I found my mistake. In my case, I had app/config/local/app.php with custom providers array. That array was overriding my changes with providers array in app/config/app.php (including new PDF service provider). So I wrapped array in local config with append_config(). Hope it helps somebody.

azamat-sharapov avatar Oct 25 '14 07:10 azamat-sharapov