Google says bad format file when sending sitemap.
Trying to load the sitemap file, I get this instead of the actual sitemap:
—————–
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.
—————–
If I open the sitemap. the fist 18 lines have this:
—————–
<br />
<b>Warning</b>: htmlspecialchars() expects parameter 1 to be string, object given in <b>/home/site/public_html/wp-content/plugins/geodir_location_manager/geodir_location_functions.php</b> on line <b>3659</b><br />
<br />
<b>Warning</b>: htmlspecialchars() expects parameter 1 to be string, object given in <b>/home/site/public_html/wp-content/plugins/geodir_location_manager/geodir_location_functions.php</b> on line <b>3659</b><br />
<br />
<b>Warning</b>: htmlspecialchars() expects parameter 1 to be string, object given in <b>/home/site/public_html/wp-content/plugins/geodir_location_manager/geodir_location_functions.php</b> on line <b>3659</b><br />
<br />
<b>Warning</b>: htmlspecialchars() expects parameter 1 to be string, object given in <b>/home/site/public_html/wp-content/plugins/geodir_location_manager/geodir_location_functions.php</b> on line <b>3891</b><br />
<br />
<b>Warning</b>: htmlspecialchars() expects parameter 1 to be string, object given in <b>/home/site/public_html/wp-content/plugins/geodir_location_manager/geodir_location_functions.php</b> on line <b>3911</b><br />
<br />
<b>Warning</b>: htmlspecialchars() expects parameter 1 to be string, object given in <b>/home/site/public_html/wp-content/plugins/geodir_location_manager/geodir_location_functions.php</b> on line <b>3891</b><br />
<br />
<b>Warning</b>: htmlspecialchars() expects parameter 1 to be string, object given in <b>/home/site/public_html/wp-content/plugins/geodir_location_manager/geodir_location_functions.php</b> on line <b>3911</b><br />
<br />
<b>Warning</b>: htmlspecialchars() expects parameter 1 to be string, object given in <b>/home/site/public_html/wp-content/plugins/geodir_location_manager/geodir_location_functions.php</b> on line <b>3891</b><br />
<br />
<b>Warning</b>: htmlspecialchars() expects parameter 1 to be string, object given in <b>/home/site/public_html/wp-content/plugins/geodir_location_manager/geodir_location_functions.php</b> on line <b>3911</b><br />
—————–
So the sitemap is not working because of this.
How can I fix it ?
Thank you.