-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Is an Invalid HTML file. #4066
Comments
According to DOMDocument your blade file generates an invalid html file which cannot be parsed. |
Yes, I understand that but how can it work sometimes and then fail in that way. |
Probably because of the data you insert in the blade view. |
I’m trying to use the DOMDocument to do some test but I’m not getting any errors. code:
output:
|
hi @patrickbrouwers , |
Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?
What version of Laravel Excel are you using?
3.1.51
What version of Laravel are you using?
10
What version of PHP are you using?
8.3
Describe your issue
I’m trying to export using a view as shown in the docs:
https://docs.laravel-excel.com/3.1/exports/from-view.html
But I’m getting the following error:
/usr/share/nginx/html/storage/framework/cache/laravel-excel/laravel-excel-cmLajutqx0y2EVRxDuzB4Xd7S4gch52T.html is an Invalid HTML file.
This is my code:
web.php
UsersExport
invoices.blade.php
Error file
How can the issue be reproduced?
I just do 3 or 4 export and I get this error.
What should be the expected behaviour?
My web browser should download the XLSX file without changing the view.
The text was updated successfully, but these errors were encountered: