-
Hi there,
I am using Oxygen Builder for my WordPress website, which I am making multilingual with WPML. After installing RankMath, I noticed that a page appears duplicated in the pages sitemap.
I’ve included a link to the sitemap in the sensitive data field for your reference.
Could you please advise on how I can resolve this issue?
Thank you for your help!
-
Hello,
We apologize for the issue you are facing with duplicated pages in your sitemap while using Oxygen Builder and WPML with Rank Math. This can sometimes occur due to how the sitemap is generated or conflicts with other plugins.
To resolve this issue, you can try the following steps:
-
Check for Custom Canonicals: If you have set custom canonical URLs for your pages, it may cause them not to appear correctly in the sitemap. Ensure that you remove any custom canonicals and let Rank Math generate them automatically.
-
Disable Caching: If you are using a caching plugin, it might be serving an outdated version of your sitemap. You can disable caching temporarily to see if that resolves the issue.
-
Add a Filter: If the above steps do not help, you can add a filter to your theme’s
rank-math.php
file to disable caching for the sitemap. Here’s the code you can add:add_filter( 'rank_math/sitemap/enable_caching', '__return_false' );
Make sure to take a backup of your website’s file and database before making any changes to the code.
-
Check for Plugin Conflicts: Sometimes, other plugins can conflict with Rank Math. You can use the Health Check plugin to identify if there are any conflicts.
-
Regenerate Sitemap: After making these changes, regenerate your sitemap by going to Rank Math > Sitemap Settings and clicking on the "Save Changes" button.
If the problem persists after trying these solutions, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.
Thank you for raising this concern!
Hello,
Thank you for your query and we are so sorry about the trouble this must have caused.
Your page sitemap is currently throwing a critical error.
Please share your website’s recent error logs so we can determine what’s causing the issue.
You can follow this guide to enable debugging in WordPress
https://wordpress.org/support/article/debugging-in-wordpress/ or you can get in touch with your web host, they will help you locate the log file.Also, as an initial troubleshooting steps, please check if there are other plugins that may be causing an issue with your page sitemap. To determine which plugin, please refer to this guide: https://rankmath.com/kb/check-plugin-conflicts/
Only the site admin would know and your users won’t be affected by this troubleshooting.
Looking forward to helping you.
Hi,
Thank you for your reply!
Unfortunately the debug mode only shows a deprecated function on the sitemap page. This should not cause a critical error, right? I have updated the sensitive data with a image of the problem. Can you please check further?
Thank you.
Hello,
Please ensure that your Rank Math and WPML plugins have been updated to the latest version.
If the issue still persists, please install and activate the WPML SEO glue plugin that helps WPML and Rank Math integration (if not yet).
You can check this article for how to do that:
https://wpml.org/compatibility/2021/04/wpml-seo-plugin-better-integration-with-seo-plugins/Once done, please follow these steps to flush your sitemap cache:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/3. Disable the transient cache for the sitemap by applying this filter. This will make sure that your XML sitemap always reflects the latest changes on your site:
/** * Filter if XML sitemap transient cache is enabled. * * @param boolean $unsigned Enable cache or not, defaults to true */ add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
If you’re not sure how to add this code, you can follow this guide:
https://rankmath.com/kb/wordpress-hooks-actions-filters/Let us know how this goes.
Hi there,
I did everything you suggested, but after clearing the cache of the sitemap I’m receiving a critical error. Once I deactivate the Oxygen plugin the error is gonem, but the problem of duplicated pages is not fixed.
Hello,
Please share your website’s recent error logs so we can determine what’s causing the issue.
You can follow this guide to enable debugging in WordPress
https://wordpress.org/support/article/debugging-in-wordpress/ or you can get in touch with your web host, they will help you locate the log file.If you prefer, we can check the issue on your WP dashboard. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
Your sitemap is currently showing a critical error.
Regarding the duplicate issue, we may need to investigate it further on your site.
Please add the logins in the sensitive data section as instructed above.
Looking forward to helping you.
Hello,
The critical error appears to be caused by the Oxygen Builder. However, even after removing the duplicated page from the sitemap, the issue persists. I have updated the sensitive data as requested. Could you please investigate further?
Thank you.
Hello,
We would like to investigate this issue further. Can you please share your website’s FTP login in the sensitive data section of this ticket as well
Looking forward to helping you.
Hi Jeremy,
I cannot give you access to our FTP for security reasons. However, you can use the ‘File Explorer’ plugin, which is already installed on the website, to view the files and logs.
Hello,
When we switch to troubleshooting mode and activate only Rank Math we can see that the sitemap works correctly.
We can also see duplicate pages when in troubleshooting mode. You might have used the Duplicate Pages plugin to do this in the past. Please review and delete the multiple duplicate pages as that is likely the source of the error since those pages have the same URL and likely the same ID.
Please see the screencast shared in the sensitive data section.
Let us know how it goes. Looking forward to helping you.
Hi Ike,
There were some duplicate pages that did not appear unless troubleshooting mode was active. I have deleted them, thanks! However, there is still a critical error in the pages sitemap. The error is caused on the homepage by a custom sorting function. I am currently trying to determine exactly what is causing the error in the function.
Hi,
I have removed the PHP function from the page and placed it in the Code Snippets plugin. Next to that I renamed the function to somegting else. Now it seems to be working accordingly. Thank you for the support.
Hello,
We are glad that the issue has been sorted out.
Please feel free to reach out to us again in case you need any other assistance.
We are here to help.
Thank you.
-
The ticket ‘Duplicated pages in sitemap (Oxygen Builder & WPML)’ is closed to new replies.