I expected to see: A page allowing me to edit / create a content template
Instead, I got: A blank page with only the heading "Edit Content Template" and a "Save all sections at once" button
I've had this problem on both an XAMPP local server and my live server, the live version was a fresh install with no plugins other than toolset and the Customizr theme, I've tried using the standard WordPress Themes and this has made no difference. I've also enabled debugging and whilst the live server doesn't show any errors the local version displayed something similar to this once but never again.
"Fatal error: Call to a member function filter() on boolean in /wp-content/plugins/wp-views/embedded/inc/classes/wpv-content-template-embedded.class.php on line 70"
It is not something I am able to reproduce and is the kind of thing we would expect to see a lot of tickets about if I were.
Couple of things. You have checked your debug logs, are you seeing any JS errors in the browser console when you try to edit a content template?
This is perhaps not relevant if you are experiencing the same thing on two different environments, but can you be sure to clear any caching you may be running on your site.
And can you clear your browser cache? (If you use Chrome then, with the browser tools open, you can long-click on the reload button and have the option to hard reload and clear caches.)
Let me know about the JS errors and if clearing caches helps. If not I may need to take a copy of your site for testing, but I'll hold off asking for site credentials until I hear back from you.
Thanks for the quick reply 🙂 As far as I know there is no caching on either servers, I've also cleared the browser cache and tried two different ones on separate computers and neither display the page correctly - Firefox does show a Java error though, I've attached a screen shot showing this.
Just a quick update - problem solved 🙂 Not sure why but updating Types to version 2.2.5 though the dashboard this morning seems to have resolved it on both the XAMPP local and live web servers.
I had this same error when trying to create a content template from the edit post screen. I had previously created a template for a post type but then deleted it. Clicked the "create content template" link at the bottom of post screen and got that same error.
When I got to the "content templates" link in the Toolset menu and click "create a new content template" I see that there is an asterisk next to the post type that gave me an error saying there is already a content template in use for that type. But it does not show up in the content template list nor is it in the trash.
My solution was to create a new template for that post type and check the option to add it to the existing list and then delete it and choose to not use any template for that post type. That cleared the asterisk from the type list and I was able to start from scratch.
I had to do this with several types that I had been experimenting with and then deleted. None of them had shown up in trash after deleting so I suspect a server hiccup or something left the delete process incomplete.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.