Home›Support›English Support›[Escalated to Compatibility team] Yoast sitemap error synchronizing slug with WPML
[Escalated to Compatibility team] Yoast sitemap error synchronizing slug with WPML
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
I use Yoast for the Sitemap creating and WPML to translate the web site. I'd like to ask you who can be responsible for the listing of a wrong URL inside the sitemap in your opinion.
For example in my case /negozio is the URL for the Italian main page of my shop online and /en/shop is the correct one for English. Both URL works.
But the sitemap made by Yoast lists /en/negozio sometimes. The funny thing is that every time in the meanwhile the products page are listed correctly (for example /en/shop/product)
So now who is responsible for this issue? WPML or Yoast? Is it maybe a known issue?
Welcome to WPML Support. I'll do my best to help you solve this issue.
To be fair with you, it is hard to tell without further debugging or if the issue happens randomly.
I suggest creating a staging site and trying to see if any specific steps or actions cause the slug to be changed. Then check if the issue happens when using WP default theme and only WPML and Yoast plugins, that way we know for sure it is not caused by 3rd party plugin/code.
Otherwise, if the issue still happens in this minimal environment, it is up to us and Yoast together, since we are officially compatible. We will then check and debug your issue further in the search for a solution.
Please check, and try to see if you can get more info on the issue following my suggestion.
They still didn't suggest me to create a staging web site... but to start maybe from your side you could take a look to our sitemap. In Yoast case I preferred do not paste our web site URL on a public forum, but in this case I think that you could take a look.
Did you already check if someone had the same problem with WPML? I tried on your forum, but I didn't find anything.
I have checked the Yoast support forum and your website sitemap, it was helpful to understand the issue. The conclusion is it only happens with shop slug and in Yoast Sitemap, translations and frontend show up fine.
I have managed to find a similar if not the same report by another user, and it is already in our developer's queue for a fix in the future versions.
Please try the following workaround:
- Go to wp-content/plugins/wp-seo-multilingual/classes/class-wpml-wpseo-xml-sitemaps-filter.php
Add the following code just above line 151 (the default case):
I can not share any ETA, since it is still under development. But I will keep this ticket open with the status "Escalated to Compatibility team" and update you when the version with the fix is released. 🙂