- I modified my existing custom taxonomy's slug, and it causes errors on admin area.
This Custom taxonomy's name is Brand Sectors (slug changed: brand-sector --> sector)
Since that, when I check like this: hidden link
I got this error:
Recoverable fatal error: Object of class WP_Error could not be converted to string in /home/*****/public_html/*****/wp-includes/kses.php on line 1272
I got the exact same error when I want to edit one of my Elementor template with Elementor (but I could edit it without Elementor...)
- I had another issue before this previous one: when I wanted to save a custom post type created with Toolset, I had 3 warnings (but the modifications were saved correctly, so I didn't report it), and these are Toolset related warnings:
Warning: explode(): Empty delimiter in /home/*****/public_html/*****/wp-content/plugins/types/vendor/toolset/toolset-common/utility/utils.php on line 266
Warning: Cannot modify header information - headers already sent by (output started at /home/*****/public_html/*****/wp-content/plugins/types/vendor/toolset/toolset-common/utility/utils.php:266) in /home/*****/public_html/*****/wp-admin/post.php on line 203
Warning: Cannot modify header information - headers already sent by (output started at /home/*****/public_html/*****/wp-content/plugins/types/vendor/toolset/toolset-common/utility/utils.php:266) in /home/*****/public_html/*****/wp-includes/pluggable.php on line 1223
So I think we have at least 2 issues:
1) issue caused by changing custom taxonomy slug
2) WP 5.0 and/or Elementor compatibility with Toolset.
Pls. note I got warning or errors also on another sites related to this
"plugins/types/vendor/***"
path (before WP 5)
I played around on a local test site, but was unable to reproduce any of the errors or warnings you report, including after changing the slug of a custom taxonomy and visiting the taxonomy archives on the front end, and editing Elementor Templates for custom post types created with Types.
That is with current Types, Elementor, and Elementor Pro, and twentyseventeen theme.
Could you please try with the same? (That is, disable all other plugins and switch theme.)
If you no longer see the errors you can use a process of elimination to determine what else is required to reproduce the problem.
let me confirm that ALL the issues still exist even ONLY with:
WP 5.0
2017 theme (also with 2019)
latest Types, Elementor, and Elementor Pro is used!
Even after logging out and in again, or being logged out.
Pls. note I didn't referred to a CPT or taxonomy archive, I referred to a specific instance of the CPT (brand): hidden link
or hidden link
I tested this one on new browsers, even in Chrome Incognito, and server side caches are disabled!
OK, in that case I will need a copy of your site to see if I can spot some particular settings responsible and, if needs be, pass it to my colleagues for further examination.
hidden link
Before creating a duplicate, could you also quickly confirm that you have re-saved permalinks after changing the taxonomy slug, and can you also see if you still have errors relating to the changed slug reported if you disable the Elementor plugins, too?
I'll mark your next reply as private for you to share the copy of your site.
I checked your site and could see the error when trying to edit that particular Elementor template. I couldn't see what is in the template, because of being unable to edit it.
So I renamed the taxonomy slug back to the previous brand-sector and was able to edit the template, where I see that you are using term meta as dynamic sources for some of the Elementor modules.
That is evidently why the error is occurring: Elementor templates do not anticipate that the taxonomy slug may be changed after creating the template.
You should be able to confirm that by manually registering a taxonomy in your theme's functions.php file, adding term meta, then creating an Elementor template similar to the current problematic one. Then edit the code that registers the custom taxonomy to change the slug and test editing the Elementor template; I expect you will encounter the same problem.
The solution would be to delete the problem template, settle on what taxonomy slugs you are going to use, and only then create a new Elementor template.
I finally removed from E. template that E. widget, containing the modified slug, saved the template, changed custom taxonomy's slug to short and added back the widget again (as new), so it works now properly,
thank you!
A small improvement suggestion:
in dynamic link type selector this Toolset custom taxonomy should be added as "Post / Post Terms", so it was not easy to find, when there is a block named "Toolset", containing only: "Toolset Field" and "Toolset Date Field" options, so that would be great to find all Toolset related items there in one place.