wordpress-plugin-scalable-vector-graphics icon indicating copy to clipboard operation
wordpress-plugin-scalable-vector-graphics copied to clipboard

simplexml_load_file() parse Error

Open DanAlipes opened this issue 6 years ago • 1 comments

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);

DanAlipes avatar Sep 06 '18 14:09 DanAlipes

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?

grok avatar Sep 07 '18 17:09 grok