Title: Issue with XML-sitemap
Last modified: November 8, 2016

---

# Issue with XML-sitemap

 *  [datavalue](https://wordpress.org/support/users/datavalue/)
 * (@datavalue)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/issue-with-xml-sitemap/)
 * Hello,
 * I encounter an issue with XML-sitemap after activating Wordfence.
 * Here is the error in sitemap.xml:
    Erreur d’analyse XML : mal formé Numéro de
   ligne 972, Colonne 91 : string(119) “select IP from xxxx_wfLockedOut where IP
   =’\0\0\0\0\0\0\0\0\0\0￿�N�k�’ and blockedTime + ‘5184000’ > unix_timestamp()”——————————————————————————————
   ^
 * Thank you very much for your help.
 * Best regards,
 * Cédric

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/issue-with-xml-sitemap/#post-8414331)
 * Hi Cédric,
    Getting this kind of warnings/errors thrown in sitemap.xml is most
   probably because you have [WP_DEBUG](https://codex.wordpress.org/Debugging_in_WordPress#WP_DEBUG)
   constant set to “true” in wp-config.php file.
 * I recommend hiding these messages from the front-end of your website and log 
   them into a separate log file, you can do that by defining these constants in
   wp-config.php file:
 *     ```
       define('WP_DEBUG', true);
       define('WP_DEBUG_LOG', true);
       define('WP_DEBUG_DISPLAY', false);
       ```
   
 * Hopefully, this shouldn’t display any of these warnings/errors in sitemap.xml
   file, instead they will be logged into (wp-content/debug.log) file, after doing
   that could you please share the full error message reported there that is related
   to Wordfence?
 * Thanks.
 *  Thread Starter [datavalue](https://wordpress.org/support/users/datavalue/)
 * (@datavalue)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/issue-with-xml-sitemap/#post-8415404)
 * Hi Wfalaa,
 * You’re right, when turning WP_DEBUG to “false”, the error disappears.
 * Unfortunately, the 3 constants in wp-config.php are already set as recommended…
 * Thanks,
 * Cédric
 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/issue-with-xml-sitemap/#post-8418174)
 * Then I suggest getting in contact with your web host, maybe they set custom configuration
   regarding [PHP error reporting](http://php.net/manual/en/function.error-reporting.php).
 * Again, aside from the error being reported in sitemap.xml file or not, you can
   share a [screenshot](https://docs.wordfence.com/en/I&apos;m_sorry._I&apos;m_not_very_technical._How_do_I_take_a_screenshot%3F)
   showing this error in the file or just share the full error message here to let
   us take a closer look.
 * Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Issue with XML-sitemap’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/issue-with-xml-sitemap/#post-8418174)
 * Status: not resolved