You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, warning produces an exception and script fails during loading the file by phpword.
I tried to analyze what is going on, if this helps, this is an XML (simplified, full is inside attached docx) that is being processed during the failure:
Uh oh!
There was an error while loading. Please reload this page.
Describe the Bug
When the doc has an image as OLEObject, opening such document with
phpword
leads to warning:It fails here:
PHPWord/src/PhpWord/Shared/XMLReader.php
Line 107 in aca1078
and this function is called from:
PHPWord/src/PhpWord/Reader/Word2007/AbstractPart.php
Line 284 in aca1078
Steps to Reproduce
broken.docx
Expected Behavior
No errors are thrown.
Current Behavior
Currently, warning produces an exception and script fails during loading the file by
phpword
.I tried to analyze what is going on, if this helps, this is an XML (simplified, full is inside attached docx) that is being processed during the failure:
When
phpword
tries to geto:OLEObject
insidew:object
tag, it fails with the warningWarning: DOMXPapth::query(): Undefined namespace prefix
Context
8.0.10
0.18.2
The text was updated successfully, but these errors were encountered: