Resolved
Reported for: WPML Multilingual CMS 4.4.10
Resolved in: 4.4.11
Overview of the issue
If you go to your WordPress site’s user profile, WPML enables the option to Set admin language as editing language .
However, if you select this option but you also select the All languages from the top bar language switcher you will get this error:
Uncaught TypeError: Argument 1 passed to WPML\Element\API\Languages::WPML\Element\API\{closure}() must be of the type array, bool given in /wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/core-api/core/Languages.php:205
Workaround
Please edit your site’s user profile and uncheck the Set admin language as editing language option.
Hello, any news about a solution in a particular upgrade
Hello Dave,
Yes, this issue will be solved in a next release, however we can’t confirm you so far when that it will be.
By the moment, you can use the workaround discussed in the erratum.
Thank you for your understanding.
Workaround doesn’t solve the issue.
Hello Soufiane,
If this workaround does not help, please, don’t hesitate to open a ticket in our support forum so we can investigate your particular situation.
https://wpml.org/forums/forum/english-support/
Regards
I am having this and I don’t find the way to open a ticket .
Si vous cherchez de l’aide pour ce problème, les informations suivantes pourraient vous être demandées :
WordPress version 5.7.2
Thème actuel : Salient Child Theme (version 0.1)
Extension actuelle : WPML Multilingual CMS (version 4.4.10)
PHP version 7.2.34
Détails de l’erreur
======================
Une erreur de type E_ERROR a été causée dans la ligne 205 du fichier /home/auyantit/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/core-api/core/Languages.php. Message d’erreur : Uncaught TypeError: Argument 1 passed to WPML\Element\API\Languages::WPML\Element\API\{closure}() must be of the type array, boolean given in /home/auyantit/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/core-api/core/Languages.php:205
Stack trace:
#0 [internal function]: WPML\Element\API\Languages::WPML\Element\API\{closure}(false)
#1 /home/auyantit/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(152): call_user_func_array(Object(Closure), Array)
#2 [internal function]: WPML\Element\API\Languages::WPML\FP\{closure}(false)
#3 /home/auyantit/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array)
#4 /home/auyantit/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/user-language/class-wpml-user-language.php(200): WPML\Element\API\Languages::__callStatic(‘getWPLocale’, Array)
#5 /home/auyantit/public_html/wp-includes/
Hello there,
You can open a ticket in our support visiting the following link. You need to use your WPML credentials and follow the instructions there presented:
https://wpml.org/forums/forum/english-support/
In the meantime, you can use the workaround suggested.
Why was the previous thread closed when it was never resolved?
https://wpml.org/forums/topic/reset-cache-wp-rocket-all-languages-fatal-error/
Hello there,
This issue is still open and will be solved in a next release. However that thread was closed because the original user never returned.
By the moment, you can use the workaround discussed in the erratum.
Regards
Hello Andrés,
When will this next release launch?
You first said “in next release” april 20, and now again on June 7.
We have the issue when trying to clear WP Rocket cache for all languages, as was referenced here
Kind regards
I totally understand you, however it depends on the developers and their roadmap, that’s why we can’t provide you a release date.
I will update here as soon as I have any news.
Thank you for your understanding.
Hey everyone,
This issue should have been solved with our latest release WPML 4.4.11.