wordpress-plugin-scalable-vector-graphics
wordpress-plugin-scalable-vector-graphics copied to clipboard
simplexml_load_file() parse Error
After upgrading to wordpress 4.9.8 I was getting a php parse error parser error : Start tag expected, '<' not found in
to fix this I replaced $svg = simplexml_load_file( $svg );
with $svg = simplexml_load_file(html_entity_decode( $svg ), 'SimpleXMLElement', LIBXML_NOCDATA);
Thanks @DanAlipes! I am going to take a look to see what's going on. I have multiple sites hosted in various places and they have been upgraded to PHP 7.2 and WordPress 4.9.8 and they are not showing this.
Could you state what version of PHP and what hosting company you are with?