Resolved
Resolved in: 4.5.6
Overview of the issue
When adding a new custom language to the site there is a JS error in the browser console:
Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘value’)
The issue only occurs if your site is registered with a Multilingual Blog license.
Workaround
Our team is already working on the fix. Meanwhile, please follow these steps.
- Please make sure you have a complete backup of the site.
- Add this code to the theme’s functions.php:
12345
add_action(
'init'
,
function
(){
$wpml_setting
= get_option(
'WPML(setup)'
);
$wpml_setting
[
'translate-everything'
] = false;
update_option(
'WPML(setup)'
,
$wpml_setting
);
});
- Visit the dashboard once then remove the code.
- Check again it should work now.