This web has been migrated recently to production and there, when changing language we get error 404.
In developement we no get this error.
Additionally, in production, a message appears that the wpml plugin is not installed, but we have all the plugins as in developemnt.
We migrated to production with duplicator plugin.
Production site: hidden link
Developement site: hidden link
Thank you for contacting WPML Support, I will be happy to help you today.
1) Could you please first follow these steps to check if there is no misconfiguration due to the migration:
- go to "WPML > Settings > Language URL format", make sure that you have chosen "Different languages in directories" and resave.
- go to "Wp admin -> Settings > Permalinks" and resave your permalinks (same as on your staging site)
- check your .htaccess file for any custom rules that could interfere with WPML
2) After the migration when you logged in the WP admin, did you get any message from the WPML plugins asking you if the productions site was a copy or that it was moved?
3) Is it possible to test by deactivating and activating again the WPML plugins and see if the message error you are seeing goes away?
*Note: Please make sure you have a full backup of your site before making any changes.
It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased, WPML minimum requirement is 128M. You can increase it by adding the following code in your wp-config.php file right before the line:
Before opening this ticket we checked the first point of your response.
However, we have tried it again without different results.
After the migration we get the message about the licensing. Then we moved the developement site to production.
We have deactivated all wpml plugins and then activated again and the message about needing wpml is gone.
Now we have a message about a problem with permissions to write .mo files, so we have talked to the hosting to check this.
We will wait after the hosting changes to confirm if the issue is solved.