This thread is resolved. Here is a description of the problem and solution.
Problem:
Draft pages are appearing in the Language Switcher, causing 404 errors in SEO reports.
Solution:
If you're experiencing draft pages showing up in the Language Switcher, we recommend the following steps:
1. Increase the WP memory limit to at least 128MB, as this is the minimum requirement for WPML. You can do this by adding the following code to your
wp-config.php
file:
/* WP Memory Limit */ define('WP_MEMORY_LIMIT', '256M'); define('WP_MAX_MEMORY_LIMIT', '256M');
Place it just before:
/* That's all, stop editing! Happy blogging. */
If your hosting provider has set limits on these values, please contact them to make the necessary changes.
2. Update WPML and its add-ons to the latest version. First, create a full website backup, then navigate to Plugins > Add new > Commercial, check for updates, and update any outdated components.
3. Clear all caching, including local and server/CDN caching, especially if you have a caching plugin active.
After completing these steps, check if the issue with draft pages appearing in the Language Switcher persists.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem continues, please open a new support ticket with us.
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.