Recommended
| Joomap error at line 88 foreach() |
|
|
|
| Articles - Technology | |||
| Friday, 18 January 2008 13:16 | |||
|
I encountered a rather annoying error message in this CMS when I wanted to add a Sitemap component called joomap XML Parsing Error: junk after document element This was a problem because it was stopping Google indexing the sitemap. So I decided to dust off my PHP and tackle the problem head on... The problem was that there was no checking on the results of the SQL query before trying to break out an array of objects from the returned query. Well I did a var_dump on the result and it showed me: NULL So I decided the simple thing to do was to detect if there was a null before going into the foreach(): if(!is_null($items)) {and this has now solved the problem, for now. Although who knows what else is lurking in there! blog comments powered by Disqus
|



