XML File does not exist
-
Hi Enzo,
many thanks for this plugin, so useful.From few days we’ve noticed an error:
the plugin cannot render the data, instead an error appears: Il file XML richiesto non è disponibile.Looking at the code, we found this “bug” at line 97 in anac-xml-render.php.
$file_host = parse_url(stripslashes($xml_url));
$file_host
should return the host, so a string. Instead it returns an array.
This is what we found from PHP manual: https://php.net/manual/en/function.parse-url.phpWe changed this line to:
$file_host = parse_url(stripslashes($xml_url), PHP_URL_HOST);
and the plugin is working.Do you think is the right approach?
If yes, could you please patch the plugin?
All the best,Leonardo
- The topic ‘XML File does not exist’ is closed to new replies.