Open gitDharani opened 5 years ago
Can you print the value of $content
, does it contain a <body>
tag?
@troosan - I'm facing a similar kind of issue and also posted the question here
https://github.com/PHPOffice/PHPWord/issues/2134
Can you please help me out? my string doesn't contain the <body>
tag.
I'm getting the below errors:
2021-08-21 07:35:18 Notice: Notice (8): Trying to get property 'nodeName' of non-object in [/var/www/html/vendor/phpoffice/phpword/src/PhpWord/Shared/Html.php, line 168]
2021-08-21 07:35:20 Notice: Notice (8): Trying to get property 'childNodes' of non-object in [/var/www/html/vendor/phpoffice/phpword/src/PhpWord/Shared/Html.php, line 208]
I am using laravel php office. i want to export word option from blade file.
Here is My Controller:
Please help me to solve this error as soon as possible i got above error ErrorException in Html.php line 168: Trying to get property of non-object