when i update wordpress 3.3 than the following error found plz help...
This page contains the following errors:
error on line 2 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.
http://wordpress.org/extend/plugins/google-sitemap-generator/
Also i am see on firebox and enternet explore
XML Parsing Error: junk after document element
Location: http://mukesh.co/sitemap.xml
Line Number 2, Column 1:<b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/mukeshco/public_html/wp-includes/query.php</b> on line <b>2746</b>
^
in /wp-includes/query.php change this
// Always sanitize
foreach ( $this->posts as $i => $post ) {
$this->posts[$i] = sanitize_post( $post, 'raw' );
}
to
// Sanitize before caching so it'll only get done once
for ( $i = 0; $i < $this->post_count; $i++ ) {
$this->posts[$i] = sanitize_post($this->posts[$i], 'raw');
}
Poor hack I know!
Or remove those lines it works too
Thanks Henri its... working....
Sure but don't know the collateral damages in wordpress...
Thanks arne it works perfectly!