Title: Sitemap Error when EDD Installed
Last modified: December 27, 2021

---

# Sitemap Error when EDD Installed

 *  Resolved [pclweb](https://wordpress.org/support/users/pclweb/)
 * (@pclweb)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/sitemap-error-when-edd-installed/)
 * It seems WordPress SEO and Easy Digital Downloads are not playing well I’m not
   getting any sitemaps. If I deactivate EDD it’s fine but when activated I get 
   this error.
 *     ```
       XML Parsing Error: junk after document element
       Location: DOMAIN/sitemap_index.xml
       Line Number 2, Column 1:
       <b>Warning</b>:  Undefined array key 0 in <b>/www/wwwroot/DOMAIN/wp-content/plugins/wordpress-seo/inc/sitemaps/class-post-type-sitemap-provider.php</b> on line <b>142</b><br />
       ```
   
 * Using
    PHP 8.1, NGINX 1.21.4, WordPress SEO and Easy Digital Downloads

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

 *  Thread Starter [pclweb](https://wordpress.org/support/users/pclweb/)
 * (@pclweb)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/sitemap-error-when-edd-installed/#post-15198309)
 * I’ve disabled php display errors so it shows the xml sitemaps but it’s still 
   an issue just only showing in site error logs now.
 *  Plugin Support [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/sitemap-error-when-edd-installed/#post-15199924)
 * Hi [@pclweb](https://wordpress.org/support/users/pclweb/)
 * Just to clarify, do you have the latest version of WordPress 5.8.2, Yoast SEO
   17.8, and the latest version of EDD?
 * Regarding this error where the XML sitemap doesn’t display as expected (/sitemap_index.
   xml), often, we see problems occur in combination with another plugin or theme.
   The fastest way to rule out any conflict, is to **deactivate all non-Yoast plugins
   and switch to a standard theme** like [Twenty Twenty](https://wordpress.org/themes/twentytwenty/).
 * Please test this on your development or staging site, if you have one. If not,
   we recommend using the [Health Check & Troubleshooting](https://wordpress.org/plugins/health-check/)
   plugin. This plugin has a troubleshooting mode, which **does not affect normal
   visitors to your site**.
 * If you’re unfamiliar with checking for conflicts, we’d like to point you to a
   step-by-step guide that will walk you through the process: [How to check for plugin conflicts](https://yoast.com/help/how-to-check-for-plugin-conflicts/)
 * Could you check if this issue still occurs with a default WP theme (such as TwentyTwenty),
   and only Yoast SEO and EDD as the plugins enabled? Could you provide us with 
   the URL to your sitemap so we can also try and check on this further?
 *  Plugin Support [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/sitemap-error-when-edd-installed/#post-15238613)
 * Hey,
 * This thread has been marked as resolved due to lack of activity by original poster.
 * If you are not the original poster but have a similar issue, please [open a new request](https://wordpress.org/support/plugin/wordpress-seo#new-post).

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

The topic ‘Sitemap Error when EDD Installed’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/sitemap-error-when-edd-installed/#post-15238613)
 * Status: resolved