Skip Navigation

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

Problem:
After upgrading the WPML plugin to version 4.6.15, the client's site experienced a critical error upon login, which was resolved by deactivating the plugin. The error was a TypeError in the WPML_Dependencies class, indicating an issue with handling expected versions of dependencies.
Solution:
The client managed to restore the site functionality after testing and reinstalling some WPML plugins and disabling others to prevent further crashes.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket.

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.

Tagged: 

This topic contains 0 reply, has 0 voices.

Last updated by zsoltF-3 5 months, 2 weeks ago.

Assisted by: Kor.

Author Posts
January 20, 2025 at 5:28 pm #16614992

zsoltF-3

Background of the issue:
After our WPML plugin automatically upgraded to version 4.6.15 our hidden link site throws critical error after the login. Now I deactivated the plugin and the wp-admin site works again. Please find below our environment and error details.

Symptoms:
WordPress version 6.6.2
Active theme: Express News (version 1.1.4) Current plugin: WPML Multilingual CMS (version 4.6.15) PHP version 8.0.30

Error Details
=============
An error of type E_ERROR was caused in line 183 of the file ../wp-content/plugins/sitepress-multilingual-cms/vendor/wpml-shared/wpml-lib-dependencies/src/dependencies/class-wpml-dependencies.php. Error message: Uncaught TypeError: WPML_Dependencies::set_expected_versions(): Argument #1 ($bundle) must be of type array, null given, called in ../wp-content/plugins/sitepress-multilingual-cms/vendor/wpml-shared/wpml-lib-dependencies/src/dependencies/class-wpml-dependencies.php on line 163 and defined in ../wp-content/plugins/sitepress-multilingual-cms/vendor/wpml-shared/wpml-lib-dependencies/src/dependencies/class-wpml-dependencies.php:183
Stack trace:
#0 ../wp-content/plugins/sitepress-multilingual-cms/vendor/wpml-shared/wpml-lib-dependencies/src/dependencies/class-wpml-dependencies.php(163): WPML_Dependencies->set_expected_versions(NULL)
#1 ../wp-content/plugins/sitepress-multilingual-cms/vendor/wpml-shared/wpml-lib-dependencies/src/dependencies/class-wpml-dependencies.php(34): WPML_Dependencies->init_bundle(Array)
#2 ../wp-content/plugins/sitepress-multilingual-cms/vendor/wpml-shared/wpml-lib-dependencies/src/dependencies/class-wpml-dependencies.php(150): WPML_Dependencies->collect_data()
#3 ../wp-content/plugins/sitepress-multilingual-cms/vendor/wpml-shared/wpml-lib-dependencies/src/dependencies/class-wpml-dependencies.php(137): WPML_Dependencies->init_plugins()
#4 ../wp-includes/class-wp-hook.php(324): WPML_Dependencies->init_plugins_action('')
#5 ../wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#6 ../wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 ../wp-settings.php(700): do_action('init')
#8 ../wp-config.php(100): require_once('/home/yarglikc/...')
#9 ../wp-load.php(50): require_once('/home/yarglikc/...')
#10 ../wp-admin/admin.php(34): require_once('/home/yarglikc/...')
#11 ../wp-admin/index.php(10): require_once('/home/yarglikc/...')
#12 {main}
thrown

Questions:
Could you please help me ASAP so we can use the WPML plugin again?
Thanks, Peter

January 20, 2025 at 5:35 pm #16615042

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Looks like we're disconnected. I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

January 27, 2025 at 7:18 am #16635988

zsoltF-3

Hi,

Thank you very much for your support.
Finally after some testing and plugin reinstalls I can restoreour websites. Also I had to disable some WPML plugins to avoid the site crash.

BR, Peter