Skip Navigation

This topic contains 0 replies, has 0 voices.

Last updated by didacC 3 weeks, 5 days ago.

Assisted by: Christopher Amirian.

Author Posts
January 29, 2025 at 11:14 am #16645744

didacC

Background of the issue:
I'm trying to create a new term in /wp-admin/edit-tags.php?taxonomy=post_tag and I get a 500 error. This happens for tags, categories, and custom taxonomies. When I try to delete a term, I also get an error. Link to a page where the issue can be seen: hidden link

Symptoms:
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WPML_Slug_Filter::pre_term_slug_filter(), 1 passed in /home/masteringbox.com/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected. PHP Fatal error: Uncaught Error: Object of class WP_Term could not be converted to string in /home/masteringbox.com/wp-content/plugins/sitepress-multilingual-cms/classes/taxonomy-term-translation/class-wpml-term-actions.php:72

PHP message: PHP Fatal error: Uncaught Error: Object of class WP_Term could not be converted to string in /home/masteringbox.com/wp-content/plugins/sitepress-multilingual-cms/classes/taxonomy-term-translation/class-wpml-term-actions.php:72
Stack trace:
#0 /home/masteringbox.com/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(2610): WPML_Term_Actions->delete_term_actions()
#1 /home/masteringbox.com/wp-includes/class-wp-hook.php(326): SitePress->delete_term()
#2 /home/masteringbox.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#3 /home/masteringbox.com/wp-includes/plugin.php(517): WP_Hook->do_action()
#4 /home/masteringbox.com/wp-includes/taxonomy.php(2216): do_action()
#5 /home/masteringbox.com/wp-admin/includes/ajax-actions.php(804): wp_delete_term()
#6 /home/masteringbox.com/wp-includes/class-wp-hook.php(324): wp_ajax_delete_tag()
#7 /home/masteringbox.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#8 /home/masteringbox.com/wp-includes/plugin" while reading response header from upstream, client: 79.116.167.223, server: hidden link, request: "POST /wp-admin/admin-ajax.php HTTP/3.0", upstream: "hidden link;, referrer: "hidden link

Questions:
Why am I getting a 500 error when creating a new term?
Why do I get an error when trying to delete a term?