Resolved
Reported for: WPML Multilingual CMS 4.5.2
Resolved in: 4.5.9
Overview of the issue
If you try to set a language mapping at WPML → Languages → Site Languages for Chinese or Portuguese, you will see that when you click on the Save button, nothing happens. Furthermore, there is a JavaScript error in the browser console.
TypeError: Cannot read properties of undefined (reading ‘nonce’)
This issue happens only when you have enabled the Translate Everything mode.
Workaround
- Go to WPML → Settings.
- Look for the Translation Mode section and temporarily switch to Translate Some.
- Then go to WPML → Languages page, click on the Edit Languages link and set the mapping.
- Go back to WPML → Settings page and witch to Translate Everything again.