Sitemap XML parse error
After adding the Google Sitemap extension advanced_sitemaps (version 1.0.0) and showing this page I get several errors:
XML parse error: garbage after document element Location (message in dutch: troep na documentelement Locatie): http://www.domein.nl/sitemap.xml, [^] rulenumber 2, column 1: warning: Invalid argument supplied for foreach() in /typo3/typo3_src-4.4.4/t3lib/class.t3lib_iconworks.php on line 915
In the source I see more errors, such as:
Warning in_array()[<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /typo3/typo3_src-4.4.4/t3lib/class.t3lib_iconworks.php on line 826
and so on.
Who can help me out? I suppose it has something to do with the core. I tried the same extension on different other TYPO3 instances (also v4.4.4) and got no errors at all.
I also reported this bug here: http://bugs.typo3.org/view.php?id=16620
Updated by Joost van Berckel almost 10 years ago
I tried a patch which was attached to my bug, see http://bugs.typo3.org/view.php?id=16620. Thank you Jigal.
That worked. All the garbage was gone, except one warning:
<b>Warning</b>: Invalid argument supplied for foreach() in <b>typo3conf/ext/advanced_sitemaps/pi1/class.tx_advancedsitemaps_pi1.php</b> on line <b>173</b><br />
This seems to be a real issue for advanced_sitemaps. Could you please check this bug?
Updated by Sebastiaan de Jonge almost 10 years ago
I will try to perform an update as soon as possible, however with barely any free time on my hands it might take some time to release the new version (1.1.0) of this extension. I will try to provide a patch for this ASAP though. If the rest of the output is OK you could of course (if possible) disable PHP warnings meanwhile.