Skip Navigation

[Closed] Toolset problem with WPML

This support ticket is created 3 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 3 years, 3 months ago.

Author
Posts
#2491865

Hi, I am using ToolSet on site gradskovijece.sarajevo.ba, and when I am doing update on some post I am getting this message.

I have try to remove all tables with icl_ prefix but that didn't help. Should I remove all tables with wpml_ prefix too?

Regards

Damir

Fatal error: Uncaught Error: Call to a member function get_language_for_element() on null
in /home/srajevoba/public_html/wp-content/plugins/types/vendor/toolset/types/embedded/includes/wpml.php on line 562

Call stack:

wpcf_wpml_relationship_save_post_hook()
wp-content/plugins/types/vendor/toolset/types/embedded/includes/post-relationship.php:929
wpcf_pr_admin_save_post_hook()
wp-includes/class-wp-hook.php:310
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/post.php:4717
wp_insert_post()
wp-includes/post.php:4819
wp_update_post()
wp-content/plugins/types/vendor/toolset/types/embedded/classes/relationship.php:309
WPCF_Relationship::save_child()
wp-content/plugins/types/vendor/toolset/types/embedded/classes/relationship.php:206
WPCF_Relationship::save_children()
wp-content/plugins/types/vendor/toolset/types/embedded/includes/post-relationship.php:920
wpcf_pr_admin_save_post_hook()
wp-includes/class-wp-hook.php:310
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/post.php:4717
wp_insert_post()
wp-includes/post.php:4819
wp_update_post()
wp-admin/includes/post.php:426
edit_post()
wp-admin/post.php:227
Query Monitor

#2492049

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

You should not delete the database tables, of either WPML or Toolset.

You may need to deactivate and reactivate WPML for it to recreate the missing tables, though they will be empty and you will have lost any existing translations. If you need to recover the translations, you would need to restore a backup taken before you deleted the tables.

As for the error you report, it is not known to us.

We may need a copy of your site to be able to examine the problem further to understand where the error is coming from.

Before going any further, can you please be sure to update both Toolset and WPML plugins to the latest versions.

Then, disable all plugins except for WPML and Toolset, and see if the error still occurs (we need to eliminate any possible conflicts with other plugins). Likewise, try testing again after changing theme to a standard theme such as twentytwentyone.

If the error still occurs, please provide a copy of your site, as described here: https://toolset.com/faq/provide-supporters-copy-site/

Note, when building the duplicator package you can exclude the uploads folder to reduce the package size.

I'll set a private reply so that you can share the duplicator files with us securely.

The topic ‘[Closed] Toolset problem with WPML’ is closed to new replies.