Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is unable to access WPML>>Settings>>Taxonomies Translation due to a fatal error indicating a type mismatch in WPML_WP_Roles::get_highest_level().
Solution:
We recommend logging in as a different admin user to verify if the issue persists. Additionally, it's crucial to perform a full site backup before attempting any fixes. You may also want to try the workaround suggested in a related support ticket, which can be found here: related support ticket.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please open a new support ticket. 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.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Bigul 3 months, 3 weeks ago.

Assisted by: Bigul.

Author Posts
August 11, 2024 at 9:34 am #16059161

michelR-20

Hello Bigul,

Thanks for your reply about my issue.

But I can not access WPML>>Settings>>Taxonomies Translation

When I do I get the following FATAL ERROR:

Fatal error: Uncaught Error: WPML_WP_Roles::get_highest_level(): Argument #1 ($capabilities) must be of type array, bool given, called in /home/wordpress/doc_root/wp-content/plugins/sitepress-multilingual-cms/classes/wpml-wp/class-wpml-wp-roles.php on line 94
in /home/wordpress/doc_root/wp-content/plugins/sitepress-multilingual-cms/classes/wpml-wp/class-wpml-wp-roles.php on line 56

Call stack:

WPML_WP_Roles::get_highest_level()
wp-content/plugins/sitepress-multilingual-cms/classes/wpml-wp/class-wpml-wp-roles.php:94
WPML_WP_Roles::{closure}()
array_filter()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Arr.php:504
WPMLCSArr::where()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php:282
WPMLCSCollection::filter()
wp-content/plugins/sitepress-multilingual-cms/classes/wpml-wp/class-wpml-wp-roles.php:98
WPML_WP_Roles::get_roles_with_max_level()
wp-content/plugins/sitepress-multilingual-cms/classes/wpml-wp/class-wpml-wp-roles.php:44
WPML_WP_Roles::get_roles_up_to_user_level()
wp-content/plugins/sitepress-multilingual-cms/classes/translation-roles/UI/Initializer.php:77
WPMLTUInitializer::getTranslationData()
wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-method/TranslationMethodSettings.php:88
WPMLTMTTranslationMethodSettings::localize()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php:207
WPMLFPRight::map()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php:257
WPMLFPRight::chain()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php:24
WPMLFPPromise::resolve()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wp/classes/Hooks.php:50
WPMLLWHooks::WPMLLW{closure}()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-admin/admin-header.php:118
require_once()
wp-admin/admin.php:239

Can you help with this?

August 11, 2024 at 9:48 am #16059184

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

Please login as a different admin user and make sure the bug exists or not.

This may be related to the following ticket. Please try the workaround suggested there after a full site backup and make sure the problem remains or not.

https://wpml.org/forums/topic/error-in-translation-roles-tab/#post-8213219

--
Thanks!

Bigul