Dompdf not working in php
Error 500 internal Server Error showing.
Pls help
Enable errors and reload
When trying to access your website, you may see a page which returns the status code “500”. In Google Chrome, you’ll see a page with the error code HTTP ERROR 500.
There are typically two reasons which can cause this error:
The PHP code has crashed.
The .htaccess file contains invalid rules.
Here are some things you can try to debug and fix this.
Fixing crashing PHP code
A HTTP ERROR 500 simply tells you that the PHP code has crashed, but gives no information as to why it has crashed.
Gett…
In the future, please fill out the template. Thanks
6 Likes
Useless forum, no solution getting from forum,
Useless post, no info given in post.
Please provide your website’s URL and the issues you’re facing. Screenshots and a clear description would help.
7 Likes
If you don’t provide us any information besides a very generic error message, we can’t provide you anything other then a generic support article.
If you don’t help us, we can’t help you
7 Likes
I had another look at your post and saw you mentioned Dompdf, an HTML to PDF converter.
If it’s attempting to store the generated PDF file in our servers, you may be hitting this limitation:
The file type is not allowed
Certain file types, like .exe
and .pdf
files, are blocked on InfinityFree for security and fair usage limitations. Regular website files are allowed, but other files may be blocked.
Looking up “Dompdf” on the forum I could find one other thread where this was the cause and other alternatives, such as storing content on PNG images, were discussed:
I have an invoicing system with php and when I go to print a pdf invoice with Dompdf on my local network (before uploading the page) it works fine but when I upload the page to this server and I click my print button it does not generate me the pdf instead the page falls and shows me this error
guayogas.epizy.com can’t currently handle this request.
HTTP ERROR 500
I repeat, locally it works well for me. when I give my button that is responsible for calling the file that generates the pdf … it…
7 Likes
system
Closed
October 13, 2023, 2:37pm
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.