Skip Navigation

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 0 voices.

Last updated by Andrey 3 months, 1 week ago.

Author Posts
February 21, 2025 at 3:09 pm #16734255

sharonB-13

Background of the issue:
I am trying to save a draft or post on my site hidden link. I encountered an error related to WPML while working with taxonomy term translations. The error occurs in the file wpml-term-translations.class.php on line 641.

Symptoms:
Uncaught Error: Cannot use object of type WP_Error as array in /home/proguide/domains/proguides.co.il/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/taxonomy-term-translation/wpml-term-translations.class.php on line 641.

Questions:
Uncaught Error: Cannot use object of type WP_Error as array
in /home/proguide/domains/proguides.co.il/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/taxonomy-term-translation/wpml-term-translations.class.php on line 641

Call stack:

WPML_Terms_Translations::{closure}()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Logic.php:40
WPMLFPLogic::WPMLFP{closure}()
call_user_func_array()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php:154
WPMLFP{closure}()
array_map()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php:603
WPMLCSCollection::map()
wp-content/plugins/sitepress-multilingual-cms/inc/taxonomy-term-translation/wpml-term-translations.class.php:558
WPML_Terms_Translations::quick_edited_post_terms()
wp-content/plugins/sitepress-multilingual-cms/inc/taxonomy-term-translation/wpml-term-translations.class.php:508
WPML_Terms_Translations::set_tags_in_proper_language()
wp-content/plugins/sitepress-multilingual-cms/inc/taxonomy-term-translation/wpml-term-translations.class.php:486
WPML_Terms_Translations::set_object_terms_action()
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-includes/taxonomy.php:2955
wp_set_object_terms()
wp-includes/post.php:5604
wp_set_post_terms()
wp-includes/post.php:4880
wp_insert_post()
wp-includes/post.php:5162
wp_update_post()
wp-admin/includes/post.php:453
edit_post()
wp-admin/post.php:227

February 23, 2025 at 4:28 pm #16738291

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

While one of my teammates takes care of your ticket, I will provide you with the first debugging steps.

Please update your WPML plugin and add-ons to the latest version, 4.7.0, to benefit from the latest bug fixes and improvements. This may not necessarily resolve your problem; however, we need to work on the newest code available to troubleshoot the issue best.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

If you do not see the updates, you might need to click the Check for updates button in the Plugins → Add New Plugin → Commercial tab.

Please remember to backup your database before you proceed.

Let us know if the issue persists after an update has been done.

The topic ‘[Closed] Got ERROR when Save Draft / Post’ is closed to new replies.