function fails to retrieve the correct host name, rendering REST URLs generated in the CLI environment invalid. Solution: We tested the scenario using WPML version 4.5.15 with no other plugins active. We used the following code to simulate the environment and did not encounter the issue:
if (defined('WP_CLI') && WP_CLI) {<br /> class ExampleCommand extends \WP_CLI_Command {<br /> /**<br /> * @subcommand wpml-rest-api<br /> */<br /> public function wpmlRestApi() {<br /> echo get_rest_url(path: 'wp/v2') . "\n";<br /> }<br /> }<br /><br /> WP_CLI::add_command('example', ExampleCommand::class);<br />}
We recommend you provide more details or a screen recording of the issue to help us better understand and address the problem.
If this solution does not apply to your case, or if it seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the issue persists, we highly recommend opening a new support ticket at WPML support forum.
Problem: After updating Elementor Pro, both website languages were down. Disabling the WPML Multilingual CMS plugin allowed the base language (NL) to work, but the alternate language (EN) remained non-functional. Even after updating WPML to version 4.6.15, the plugin could not be activated due to a PHP Fatal error related to Elementor and WPML. Solution: To resolve this issue, follow these steps: 1. Ensure you have a full backup of your website. 2. Go to Plugins and deactivate all plugins. 3. Navigate to Plugins > Add New > Commercial, install and activate the WPML String Translation. If installation fails, download it manually from https://wpml.org and install it. 4. Reactivate the WPML Multilingual CMS plugin. 5. Reactivate all other previously active plugins.
This should resolve the issue as the missing WPML String Translation plugin was likely causing the problem.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket at WPML support forum for further assistance.
Problem: You are experiencing an issue where switching languages on a WooCommerce product page results in too many redirects. This problem began after updating WooCommerce from version 9.4.3 to 9.5.2. Changing the permalink settings from 'Shop base with category' to 'Shop base' temporarily resolves the issue, but downgrading to WooCommerce 9.4.3 also fixes it. Solution: We have identified this as a known issue with the latest WooCommerce update. While our developers are working on a permanent fix, we recommend two workarounds: 1. Disable the "Auto adjust IDs" setting in WPML > Languages. 2. Insert the following code into your theme's functions.php file:
These steps should help mitigate the problem temporarily. If these solutions do not resolve your issue or if they become irrelevant due to future updates, please check our related known issues and ensure you have the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket for further assistance.
Problème: Vous rencontrez des problèmes avec des images qui ne s'affichent pas correctement et changent de langue après quelques heures, ainsi que des ancres et des sous-sections qui ne fonctionnent pas comme prévu dans vos modèles d'article en français et en allemand. Solution: Pour résoudre ces problèmes, nous vous recommandons de suivre ces étapes : 1. Vérifiez si l'image est définie sur un widget, un modèle spécifique ou un champ ACF et si le problème se produit également avec une image ajoutée sur un simple bloc WordPress. 2. Utilisez un plugin comme Duplicate Post pour dupliquer la page et vérifier si le problème persiste sur la duplication. 3. Testez dans un environnement minimal : - Désactivez tous les plugins à l'exception des plugins WPML. - Passez temporairement à un thème WordPress par défaut, tel que Twenty Twenty-one. - Si le problème disparaît, réactivez les plugins un par un pour identifier le plugin causant l'interaction. 4. Allez dans WPML > Support > Troubleshooting, sélectionnez Media pour la synchronisation de la taxonomie et essayez tous les boutons suivants : https://prnt.sc/TC5dFJLNi8jH
Si ces étapes ne résolvent pas le problème ou si elles semblent obsolètes ou inapplicables à votre cas, nous vous recommandons vivement de vérifier les problèmes connus sur https://wpml.org/known-issues/, de vérifier la version du correctif permanent et de confirmer que vous avez installé les dernières versions des thèmes et plugins. Si le problème persiste, n'hésitez pas à ouvrir un nouveau ticket de support sur notre forum de support.
Problem: You are trying to change the WPML URL structure from query parameter URLs (e.g., ?lang=en) to subdirectory URLs (e.g., /en/), but are experiencing issues with broken links leading to 404 errors or incorrect redirections. Solution: If you're experiencing this issue, we recommend you first make a full website backup. Then, follow these steps: 1. Navigate to WPML > Settings. 2. At the bottom of the page, click on Translate link targets. This should update all internal links to translated pages in EN on your website.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/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 persists, please open a new support ticket at our support forum for further assistance.
If you're experiencing a 404 error when a non-admin user tries to access a resume in a different language on your site using WP Job Manager's Resume Manager, it might be due to the translation of the resume post type's slug. Admin users do not face this issue because they bypass certain permission checks.
Solution:
We recommend following these steps to resolve the issue:
4) Go to WPML>>Settings>>Slug translations and ensure that "Translate custom post and taxonomy base slugs (via WPML String Translation)." option is selected. 5) In the "Post Types Translation" section, translate the Resumes Post Type slugs. 6) Navigate to Settings>>Permalinks and resave the settings.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket.