PHP notice breaks customize panel when using Xdebug and WP_DEBUG is on
-
I have a custom image control in the theme customizer and when I assign an SVG to it, the JSON that the customizer uses is broken due to PHP notice output. I’m using Xdebug so there is an HTML table with details.
The error comes from
simplexml_load_file()in yourbodhi_svgs_get_dimensions()function. I believe its complaining about a missing xml declaration, which isn’t needed for SVGs.I’ve found that using
@error suppression makes it work again.My setup:
– WP 4.9
– PHP 7.1
– WP_DEBUG=true
– Xdebug extension
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘PHP notice breaks customize panel when using Xdebug and WP_DEBUG is on’ is closed to new replies.