PHOTO-2022-08-06-13-39-03

Yoast WordPress SEO Bug Creates Duplicate Sitemaps – Search Engine Journal

Yoast confirmed a bug that causes WordPress to generate duplicate sitemaps and is said to be working on a fix
A sharp-eyed search marketer noticed that Yoast was generating duplicate sitemaps. It’s not known how long this has been happening, but the head of SEO at Yoast acknowledged the bug and noted that Yoast is aware of the problem and says it is working on a fix.
Once this duplicate sitemap bug was discovered however, checking on other SEO plugins revealed that a similar issue was happening to other plugins as well, but that it wasn’t endemic to all SEO plugins.
Brenda Malone (@_brendamalone) discovered the bug and tweeted to Yoast about it:
@yoast @jonoalderson Is there a way to turn off the duplicate xml sitemaps that Yoast is creating?
page .com/page-sitemap.xml and
page .com/page-sitemap1.xml
Is there a specific reason why these are being created? Thanks.
— Brenda Malone, Triple-Vaxxed and Still Masking (@_brendamalone) March 21, 2022
Someone from Yoast responded that they know about the bug and have flagged it internally for fixing it:
Hey @_brendamalone, the easiest fix for now might be to set up redirect for the ‘1’ version to the plain version (for each post type affected).
In the meantime, I’ve definitely seen a ticket in our internal tracker to address this, so I’ll see if I can find it and dust it off.
— Jono Alderson (@jonoalderson) March 21, 2022
The Yoast SEO sitemap feature automatically generates a sitemap for different post types.
For example, a site with a sitemap for pages will publish a sitemap URL like this:
A site that doesn’t have thousands of posts will have a post sitemap like this:
A site with a lot of posts may publish sitemaps that look like this:
What was discovered is that Yoast is also generating duplicate sitemaps.
A site that only has a single sitemap for “pages” will have the following sitemaps:
Original “Page” Sitemap:
Duplicate “Page” Sitemaps:
A site that only has a single sitemap for posts will have the following sitemap:
Original “Post” Sitemap:
Duplicate “Post” Sitemaps:
A site with multiple sitemaps for posts manifests the bug in a different way.
For example, if a site has thousands of posts and requires three sitemaps, their  sitemaps may look like this:
Original “Posts” Sitemaps:
But with the Yoast sitemap bug, they now have two extra sitemaps that are duplicates of the first site map.
So in the above example, this is the first sitemap: /post-sitemap1.xml
These are the duplicates sitemaps of the original first sitemap:
The bug can be seen on any site that uses the Yoast SEO WordPress plugin, including on Yoast itself.
These URLs lead to identical Yoast XML sitemaps:
What’s really weird is that this sitemap bug is not limited to Yoast.
A similar bug can be found in many other SEO plugins (but not in all of them).
It’s kind of weird that several SEO plugins would exhibit similar behavior with regards to a bug.
Something to consider is that plugin makers are bound by the WordPress open source license that dictates that plugins and themes for WordPress are considered derivative works. This is a longstanding issue that at one point was clarified by Matt Mullenweg himself in 2015.
Matt wrote:
“WordPress is under a license called the GPL, which basically says you can do whatever you like with the software, but if you distribute changes or create derivative works they also need to be under the GPL. Think of it like a Creative Commons Sharealike license.
In the past people weren’t sure if themes for WordPress were derivative works and needed to be GPL. In 2009 we got an outside legal opinion that cleared up the matter saying that the PHP in themes definitely had to be GPL, and for CSS and images it was optional. Basically everyone in the WP community went fully GPL, sometimes called 100% GPL, for all the files required to run their theme (PHP, JS, CSS, artwork).”
So it could be that certain approaches toward generating a sitemap may themselves be open source and available to all the SEO plugin companies to use and this may explain why other SEO plugins contain the same or similar bug to the one that Yoast has.
This sitemap bug doesn’t just affect Yoast and Rank Math. It affects other SEO plugins, too.
This bug has been confirmed on the following SEO Plugins:
If your SEOPress sitemap for “posts” starts like this:
There are duplicates that are generated on these URLs:
If your AIOSEO plugin generates this URL for the “posts” sitemaps:
It also generates these:
The above is true for Rank Math plugin as well.
Brenda Malone researched this issue and shared that some SEO Plugins appear to not contain this bug.
The following SEO Plugins generate sitemaps correctly:
The best practice for SEO is to make things easy for search engines.
The more errors are introduced the likelier it is that the search engine bots may start tripping over the mistakes and generating unforeseen issues, especially if this issue is compound by other errors on a site.
The meaning of SEO is search engine optimization. The easier you make it for the search engine to crawl and discover web pages the better it is for SEO.
Mistakes are the opposite of optimizing. The more mistakes are generated by a website the less optimized a site is.
In terms of SEO, an argument can be made to minimize the effect of these errors and say that yes, the site can keep on limping and perform normally despite these errors.
But mistakes are still the opposite of SEO.
Get our daily newsletter from SEJ’s Founder Loren Baker about the latest news in the industry!
Roger Montti is a search marketer with over 20 years experience. I offer site audits, phone consultations and content and … [Read full bio]
Subscribe to our daily newsletter to get the latest industry news.
Subscribe to our daily newsletter to get the latest industry news.

source

Leave a Reply

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