• Home
  • About Us
  • Digital Marketing Terms
  • Free Tech Support
  • Contact Us
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

My Code Snippets

Real Answers From Real Developers

  • WordPress General
  • Divi Builder Tutorials
  • WordPress Plugins
  • Local SEO
  • Show Search
Hide Search

Yoast SEO XML Sitemap Not Working

code-admin · August 9, 2020 · Leave a Comment

The Yoast SEO XML Sitemap not working is a common occurrence that can wreak havoc on your WordPress blog.  If you see the following message the fix is rather simple.

XML Parsing Error: XML or text declaration not at start of entity
Location: https://www.bestcoffeerecipes.com/sitemap_index.xml
Line Number 3, Column 1:

The Fix!

This is not one of those crazy plugin conflicts that require you to deactivate and troubleshoot. Instead this is a white space issue in one of the following WordPress files: wp-config.php or your theme’s functions.php.

Yoast SEO XML Sitemap not working

Remove White Space From Files

To correct the Yoast SEO XML Sitemap not working issue check both of those files for white space at the top (usually before the <?php) or near the end of the file. WordPress has now included line numbers, so ultimately make sure you have no blanks lines at the beginning and end of these files.

Disable and Re-enable the Sitemap

If you find and remove white space, and the issue persists, try disabling the sitemap functionality within the plugin settings, clear your cache, and re-enable the sitemap.

Troubleshoot WordPress Plugins

Finally, if you have no success, you may need to start troubleshooting by deactivating plugins. In some occurrences plugins have been known to add white space to different areas of dynamic files, such as the index_sitemap.xml file.

We hope this blog post helps you alleviate your issue! More information can be found here.

Filed Under: WordPress Plugins, WordPress Troubleshooting

You May Also Like

The Site is Experiencing Technical Difficulties WordPress
Divi Visual Builder Not Saving Changes
How To Fix WordPress Editor Updating Failed

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • The Site is Experiencing Technical Difficulties WordPress
  • Using Flexbox CSS To Center Elements
  • Divi Header Transparent Menu
  • Divi Builder Not Working With Cloudflare CDN
  • Divi Visual Builder Not Saving Changes

Recent Comments

  • Jackie on How to Fix The Jumping Header Issue Divi Builder
  • Kate on Divi Builder Not Working With Cloudflare CDN
  • Mimi Cartee on Can’t Change The WordPress Admin Email Address

Archives

  • November 2021
  • June 2021
  • May 2021
  • March 2021
  • January 2021
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • March 2020
  • October 2019
  • September 2019
  • May 2019

Categories

  • Digital Marketing
  • Digital Marketing During Covid-19
  • Digital Technology
  • Divi Builder Resources
  • Divi Builder Tutorials
  • Gravity Forms
  • Gravity Forms Snippets
  • Local SEO
  • Social Media Marketing
  • Social Media Trends 2021
  • Uncategorized
  • WooCommerce Snippets
  • WordPress Code
  • WordPress Experts
  • WordPress Plugins
  • WordPress Technology
  • WordPress Themes
  • WordPress Troubleshooting

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 2023 · Daily Dish Pro on Genesis Framework · WordPress · Log in

Manage Cookie Consent
We use cookies to optimize our website and our service.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage vendors Read more about these purposes
Preferences
{title} {title} {title}