Skip to content
Advertisement

PhpSpreadsheet Reader Exception Failed to load /root_dir/public/laravel-excel-fLRGTlw9uEE2XRz0k1fXdcg2wfs2RWy7.html as a DOM Document

I have tried everything for resolving this issue but nothing worked.

php artisan cache:clear
php artisan view:clear
php artisan route:clear
php artisan config:clear

Also Updated my Dependencies

composer dump-auto -a
composer update

But Nothing of these things have helped me

Please respond some asap.

Advertisement

Answer

The Issue was that there was a Closing Anchor Tag, that was making the issue because while generating the Excel there must be no extra things or missing only Pure HTML table works for excel file generation nothing else

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement