WordPress Sitemap Errors in Search Console: Fix Order
Wordpress sitemap error search console: sitemap cannot be fetched, is empty, or lists the wrong URLs? Learn what each Search Console status means and fix the source.
A wordpress sitemap error search console flags usually points at one file, not the whole site.
Search Console flags your sitemap: “Couldn’t fetch”, “Sitemap is empty”, or “Sitemap contains URLs which are blocked”. Many site owners install another sitemap plugin and register several at once. The warning stays, and now two files compete with each other.
A sitemap is an XML file listing URLs you want search engines to know about. It does not guarantee indexing, and a sitemap error rarely means the site is in serious trouble. But the warning is useful: it points at something worth inspecting.
Short answer: identify the warning type first. If it cannot be fetched, check that the file exists and is not blocked. If it is empty, check plugin settings or filtering rules. If it lists the wrong URLs, check the site address and publication status.
Warning types and what they mean
Each message points at a different problem, and treating them all the same wastes time:
Couldn’t fetch means Google failed to retrieve the file. It may not exist, may be blocked, or the server may refuse requests from Googlebot.
Sitemap is empty means the file was read but contains no URLs. Usually a plugin setting, or genuinely no eligible content.
Sitemap contains URLs which are blocked means the contents contradict robots.txt. The sitemap lists URLs that crawling rules forbid.
Sitemap has errors points at invalid XML, sometimes from unescaped characters or output mixed with HTML.
Prefix not allowed means the sitemap is registered for a domain you have not verified in that property.
Distinguishing these five is the first step. After that, the checks become targeted.
Make sure the file actually exists
Before blaming Google, open the sitemap in a browser directly. Common WordPress locations:
/sitemap.xmlfor sites without a sitemap plugin, often generated by core./sitemap_index.xmlfor sites running a popular SEO plugin./wp-sitemap.xmlfor recent WordPress versions with the built-in sitemap.
If the address registered in Search Console returns 404—the same class of problem as 404 after changing permalinks— there are two possibilities: a plugin change moved the sitemap, or a redirect rule altered the address without updating the registration.
Also check whether the sitemap is reachable without signing in. Sites in “coming soon” mode or behind password protection block Googlebot too, and that looks exactly like a fetch failure.
Blocks from robots.txt and firewalls
A frequent mistake: robots.txt blocks the sitemap itself, or blocks the directory it lives in. Open robots.txt and look for rules closing /wp-sitemap.xml, /sitemap_index.xml, or /*.xml.
Beyond robots.txt, two layers can refuse the request:
- A web application firewall (WAF) that treats Googlebot as a bot and blocks it.
- Host security rules restricting requests from certain IP ranges.
To test this, use the URL inspection tool in Search Console to see the response Google receives. If browser requests succeed and Google’s fail, the cause sits in the filtering layer—not in WordPress.
If you run bot-challenge protection, make sure Googlebot is excluded. Blocking crawlers means the sitemap is never read, no matter how often you regenerate it.
Wordpress sitemap error search console: Empty sitemap despite published posts
If the file is readable but empty, the cause is usually configuration rather than breakage:
- SEO plugin settings excluding certain content types.
- All posts are drafts, or their publication dates are in the future.
- A brand new site with no public content yet.
- Custom filters limiting the number of URLs or post types.
- A caching plugin serving an empty version.
For WordPress’s built-in sitemap, also check Settings → Reading to see whether search engines are discouraged from indexing the site. That option adds noindex and can affect sitemap behaviour.
A quick confirmation: open the sitemap in incognito and compare the URL count with the number of posts actually published today. A large gap means settings need adjusting.
Sitemaps listing the wrong things
Sitemaps containing odd URLs also generate warnings. Common patterns:
Old domain URLs. Leftovers from a migration where the site address was not fully updated. Check siteurl and home, then replace remaining URLs in the database.
URLs with parameters. The sitemap includes variants such as ?utm_source= or filter parameters, producing thousands of duplicate pages. This burdens crawling with no benefit.
Internal pages. Thank-you pages, empty carts, or search results get listed. All should be excluded.
Draft or protected post URLs. If the sitemap is generated by a query that does not filter status, URLs that are not ready can slip in.
Each pattern needs a different fix, but the principle is the same: the sitemap should reflect public pages you actually want discovered.
One sitemap, not five
Panicked sites often register several sitemaps from different plugins. The result:
- Google fetches multiple files with overlapping content.
- Warnings appear from files no longer in use.
- Settings changes become hard to trace.
Pick a single sitemap source—WordPress core or one SEO plugin—then remove registrations you no longer need in Search Console. Removing a registration does not remove URLs from the index; it merely stops reporting on a file that is irrelevant.
Then resubmit the correct sitemap and wait for processing. Changes are not always visible immediately; some statuses take days.
Sitemaps and indexing
The most common misunderstanding: “the sitemap is correct, why is the page not indexed?” A sitemap only helps discovery. Indexing decisions depend on quality, uniqueness, and other signals.
What matters more:
- Content valuable enough and not a duplicate of another page.
- The page is accessible, including not being blocked by
noindex. - Internal linking that makes the page easy to find.
- Reasonable speed and user experience.
- No manual actions or other quality issues.
If the sitemap is correct but pages stay unindexed, examine those factors as laid out in website not showing on Google. Adding another sitemap will not change the outcome.
Cache and CDN on sitemaps
Sitemaps can also be served in an old version because of caching. If you just published an article and the sitemap does not include it, check in order:
- Plugin cache—is the sitemap excluded from page caching?
- Object cache—is the URL list stored there?
- CDN—most likely to hold a sitemap for a long time.
- The SEO plugin’s own cache, if it has one.
Clearing caches and reloading the sitemap in a browser usually shows the current version. If a CDN holds it for a long time, consider excluding sitemaps from caching so they stay fresh.
When to edit robots.txt
robots.txt is useful but easy to break. Some practical rules:
- Do not block all of
/wp-content/, since images and assets get blocked too and can affect how results display. - Block internal pages you do not want crawled, not entire directories.
- Always declare the sitemap location on a
Sitemap:line. - Test after every change, because one wrong character can close off the whole site.
When unsure, keep robots.txt minimal. Many crawl problems come from rules added without testing.
A routine check that is enough
To keep a sitemap healthy without excess work:
- Review status in Search Console monthly, not daily.
- Open the sitemap in a browser after publishing important articles.
- Confirm no two plugins generate sitemaps at once.
- Compare URL counts against the number of public items.
- Test after major changes such as a migration, a theme switch, or a security plugin installation.
That routine catches problems before they grow.
Wordpress sitemap error search console: what matters first
Search Console statuses describe different problems: could not fetch, fetched but empty, or fetched with URLs that should not be there. Check in order: the file really exists, robots.txt does not block it, cache or a firewall is not intercepting, then the content makes sense. Plugin is usually the first place that gives a clue. Leave time to check Search Console before calling wordpress sitemap error search console done.
Frequently asked questions
Is a sitemap mandatory? Not mandatory, but it helps discovery, especially for new sites or after structural changes.
Why does my sitemap contain unknown URLs? Possibly parameters, archives, or internal pages included by default. Review the sitemap plugin settings.
Does removing a sitemap from Search Console hurt? Not directly. You remove the status report, not the pages from the index.
How long until sitemap changes show up? Usually a few days, depending on how often Google fetches the file. Avoid editing it repeatedly every day.
If sitemap warnings arrive alongside other problems—error pages, broken links, or a traffic drop—review the whole site rather than the sitemap file alone. A free audit maps technical health in one pass, and monthly website care keeps checks like this running. For a site that is down, website emergency support is the fastest route.
Read next: WordPress Keeps Logging You Out: Why Sessions End, Site Broken After a PHP Update: Finding the Cause, WordPress Comments Not Showing: Check in This Order.
Does any of this look like your website?
Tell us on WhatsApp. We look first, explain what needs fixing, then you decide. For a fuller picture, request the free audit.
Related articles.
WordPress Keeps Logging You Out: Why Sessions End
Wordpress keeps logging out: session ends mid-article? Here is why WordPress logs you out unexpectedly and how to test each cause instead of guessing.
Site Broken After a PHP Update: Finding the Cause
Wordpress broken after php update: white screen, errors, or dead plugins after raising the PHP version?
WordPress Comments Not Showing: Check in This Order
Wordpress comments not showing: comments missing, stuck in moderation, or invisible to readers?. Panduan praktis yang bisa dipakai hari ini.