Skip Navigation

[Closed] Fatal error: Uncaught Error: Call to a member function get_value_filtered()

This support ticket is created 4 years, 4 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Shane 4 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#2002029

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] =>
)

[submit-key] => hidden
[disabled_by_type] => 0
)

[meta_key] => wpcf-hidden
[meta_type] => postmeta
[repeatable] =>
)

)

[params:protected] => Array
(
)

[decorators:protected] => Array
(
)

[output_decorator_added:Types_Field_Type_View_Frontend_Abstract:private] =>
)

Which I think means it is the hidded checkbox which is failing...

If so how do I resave the hidden field?

I have used a custom import module to import values into a taxonomy, but i can't see how this is affecting a completely diferent field.
thanks
Dave

#2002251

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Dave,

Thank you for getting in touch.

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

#2004287

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi David,

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.

Can you provide a copy of the site with the issue replicated. To provide the copy please follow the instructions in the link below.
https://toolset.com/faq/provide-supporters-copy-site/

Thanks,
Shane

The topic ‘[Closed] Fatal error: Uncaught Error: Call to a member function get_value_filtered()’ is closed to new replies.