I am trying to: Create a template
I get this error
Fatal error: Uncaught Error: Call to a member function get_value_filtered() on null in /home/baaweb/baa_website_2021/wordpress0/wordpress/wp-content/plugins/types/application/models/field/type/checkbox/view/frontend.php:33 Stack trace: #0 /home/baaweb/baa_website_2021/wordpress0/wordpress/wp-content/plugins/types/application/models/field/view.php(42): Types_Field_Type_Checkbox_View_Frontend->get_value() #1 /home/baaweb/baa_website_2021/wordpress0/wordpress/wp-content/plugins/types/application/models/field/service.php(145): Types_Field_View->render() #2 /home/baaweb/baa_website_2021/wordpress0/wordpress/wp-content/plugins/types/application/functions_public.php(58): Types_Field_Service->render_frontend() #3 /home/baaweb/baa_website_2021/wordpress0/wordpress/wp-content/plugins/types/application/functions_public.php(34): types_render_postmeta() #4 /home/baaweb/baa_website_2021/wordpress0/wordpress/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/ToolsetSources/FieldInstanceModel.php(106): types_render_f in /home/baaweb/baa_website_2021/wordpress0/wordpress/wp-content/plugins/types/application/models/field/type/checkbox/view/frontend.php on line 33
I have found other support tickets which say resave the custom field, however there aren't any in this type at the moment, and if I put a print_r statement to print out the field in question in before the bug. I get:
Types_Field_Type_Checkbox_View_Frontend Object
(
[entity:protected] => Types_Field_Type_Checkbox Object
(
[option:protected] =>
[display_mode:protected] => db
[slug:protected] => hidden
[title:protected] => Hidden
[description:protected] => If you tick this box, this page will not be visible to anyone other than yourself. Tick this box if this page is an unfinished draft, for example.
[value:protected] =>
[validations:protected] => Array
(
)
[wpml_translation_mode:protected] =>
[data:Types_Field_Abstract:private] => Array
(
[slug] => hidden
[title] => Hidden
[description] => If you tick this box, this page will not be visible to anyone other than yourself. Tick this box if this page is an unfinished draft, for example.
[value] =>
[id] => hidden
[type] => checkbox
[name] => Hidden
[data] => Array
(
[slug-pre-save] => hidden
[set_value] => 1
[save_empty] => no
[display] => db
[conditional_display] => Array
(
[relation] => AND
[custom] =>
)
Do you have any checkboxes on your site in any of your field groups ? If you go to Toolset -> Custom Fields, check which field group has a checkbox and resave that field group.
If there are no field groups please let me know and provide me with admin access so that I can have a look as well.
Thanks,
Shane
In order to pass this onto the team for further investigations I would need to have a copy of the site with the issue, so they can go through the root cause of what is causing this problem.
I recently handled a ticket with a similar issue that was resolved by resaving the field groups, however your case is different so we need to investigate it.