This error is encountered when upgraded PHP to 8.1
Check ( $svg_file ) if empty to avoid errors from loadXML() Function
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | svg-image-field-3337975-3.patch | 767 bytes | himanshu5050 |
This error is encountered when upgraded PHP to 8.1
Check ( $svg_file ) if empty to avoid errors from loadXML() Function
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | svg-image-field-3337975-3.patch | 767 bytes | himanshu5050 |
Comments
Comment #2
himanshu5050 commentedComment #3
himanshu5050 commentedComment #4
himanshu5050 commentedComment #6
mandclu commentedThanks for identifying this, and for providing a fix. I do sort of wonder if some of the following lines should also be brought into that new condition as operating on an empty DOMDocument doesn't seem like the intended behaviour, but that probably needs some more thinking about what should be done if the SVG file can't be loaded.
Comment #7
jwilson3This issue was reported already and was under review and testing in a separate issue #3333776: Add inline SVG support for stage_file_proxy. The scope is slightly wider on that issue but the same error message is mentioned in the IS.
@Himanshu5050: Please search the issue queue first next time.