Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+03:00)

Tagged: ,

This topic contains 5 replies, has 0 voices.

Last updated by Itamar 1 day, 23 hours ago.

Assisted by: Itamar.

Author Posts
August 1, 2025 at 1:30 pm #17288509

poM

Background of the issue:
I am trying to add a translation in Spanish to a product created in English. This product has Toolset relationships with other custom post types. The issue can be seen at the following link: hidden link

Symptoms:
I expected to see the Spanish translation created, but instead, I got a PHP Fatal error: There has been a critical error on this website. The error message is:
Fatal error: Uncaught InvalidArgumentException in /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/m2m/DatabaseLayer/RelationshipQuery/Condition/type.php:28 Stack trace: #0 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/m2m/DatabaseLayer/RelationshipQuery/condition_factory.php(88): Toolset_Relationship_Query_Condition_Type->__construct() #1 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/m2m/DatabaseLayer/RelationshipQuery/RelationshipQuery.php(439): Toolset_Relationship_Query_Condition_Factory->has_type() #2 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/m2m/DatabaseLayer/RelationshipQuery/RelationshipQuery.php(425): OTGSToolsetCommonRelationshipsDatabaseLayerRelationshipQueryRelationshipQuery->has_domain_and_type() #3 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/m2m/DatabaseLayer/Version2/Persistence/WpmlTranslationUpdate/WpmlTranslationUpdateHandler.php(186): OTGSToolsetCommonRelationshipsDatabaseLayerRelationshipQueryRelationshipQuery->has_domain_and_type() #4 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/m2m/DatabaseLayer/Version2/Persistence/WpmlTranslationUpdate/WpmlTranslationUpdateHandler.php(105): OTGSToolsetCommonRelationshipsDatabaseLayerVersion2PersistenceWpmlTranslationUpdateWpmlTranslationUpdateHandler->one_element_action() #5 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/m2m/MainController.php(377): OTGSToolsetCommonRelationshipsDatabaseLayerVersion2PersistenceWpmlTranslationUpdateWpmlTranslationUpdateHandler->on_wpml_translation_update() #6 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-includes/class-wp-hook.php(324): OTGSToolsetCommonRelationshipsMainController->{closure:OTGSToolsetCommonRelationshipsMainController::add_hooks_when_active():369}() #7 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #8 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-includes/plugin.php(517): WP_Hook->do_action() #9 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php(190): do_action() #10 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php(79): WPML_Set_Language->change_translation_of() #11 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(1533): WPML_Set_Language->set() #12 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php(1414): SitePress->set_element_language_details() #13 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/sitepress-multilingual-cms/classes/class-wpml-translation-job-factory.php(112): TranslationManagement->send_jobs() #14 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/sitepress-multilingual-cms/classes/jobs/Manual.php(164): WPML_Translation_Job_Factory->create_local_job() #15 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/sitepress-multilingual-cms/classes/jobs/Manual.php(43): WPMLTMJobsManual->createLocalJob() #16 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(207): WPMLTMJobsManual->createOrReuse() #17 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/sitepress-multilingual-cms/classes/editor/Editor.php(103): WPMLFPRight->map() #18 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-queue/class-wpml-translations-queue.php(52): WPMLTMEditorEditor->open() #19 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-includes/class-wp-hook.php(324): WPML_Translations_Queue->load() #20 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #21 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-includes/plugin.php(517): WP_Hook->do_action() #22 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-admin/includes/class-wp-screen.php(424): do_action() #23 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen() #24 /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-admin/admin.php(213): set_current_screen() #25 {main} thrown in /var/www/vhosts/sadev.com/httpdocs/www.sadev.com/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/m2m/DatabaseLayer/RelationshipQuery/Condition/type.php on line 28

Questions:
How can I resolve the PHP Fatal error when adding a translation in Spanish?
Is there a compatibility issue between WPML and Toolset CRED forms?

August 4, 2025 at 2:28 pm #17293487

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Could you please ensure that the Toolset Forms plugin, as well as the WPML plugins, are in their latest versions?

If not, please update all of our plugins and see if that resolves the issue.
If it doesn't help, after consulting our second-tier supporter about it, we also want you to check if the problem persists when temporarily deactivating the Toolser Forms plugin. Does the error occur when the Toolset Forms plugin is deactivated?

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****

If you still need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Regards,
Itamar.

August 6, 2025 at 9:06 am #17298895

poM

Hi,
We have upgraded all the plugins, themes and WordPress to their latest versions and it hasn't fixed the issue.
Cheers.

August 6, 2025 at 8:26 pm #17300799

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Thanks for trying my suggestion and sharing the access to your site. However, it is unclear to me if you have tried the suggestion to temporarily deactivate the Toolset Forms plugin and check if the fatal error still occurs. While I'm waiting for your answer, I'm also consulting our second-tier supporters about this problem. I'll update you once I get a reply from them.

Regards,
Itamar.

August 7, 2025 at 9:23 am #17301882

poM

Hi,
I can't disable the Toolset Forms plugin on this production website without removing important functionalities.
Cheers.

August 7, 2025 at 5:16 pm #17303558

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

OK, I understand. Please allow me to take a copy of your site. For this, I must install a plugin like Duplicator or All In One Migration. Please let me know if you agree.

Please note that my weekend hours are Friday to Saturday. If you need further assistance, I'll be available to continue checking this issue and helping you next week.

Regards,
Itamar.