Passer la navigation

[Closed] php 8.0 generating this error, works fine in php 7.4 ???

This support ticket is created Il y a 2 years, 8 months. 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.

Ce sujet contient 1 reply, a 2 voix.

Dernière mise à jour par Nigel Il y a 2 years, 8 months.

Auteur
Publications
#2638919

lien caché


Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class WpFluent\QueryBuilder\QueryBuilderHandler does not have a method "value" in /home/prenet5/staging.prenetworking.net/wp-content/plugins/wsdesk-premium/includes/wp-fluent/src/AliasFacade.php:24 Stack trace: #0 /home/prenet5/staging.prenetworking.net/wp-content/plugins/wsdesk-premium/includes/wp-fluent/src/AliasFacade.php(24): call_user_func_array(Array, Array) #1 /home/prenet5/staging.prenetworking.net/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/utility/utils.php(708): WpFluent\AliasFacade::__callStatic('value', Array) #2 /home/prenet5/staging.prenetworking.net/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/field/type/definition.php(286): toolset_getarr(Array, 'display', 'db', Array) #3 /home/prenet5/staging.prenetworking.net/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/field/type/definition/checkbox.php(33): Toolset_Field_Type_Definition->sanitize_element_isset(Array, 'display', 'db', Array, 'data') #4 /home/prenet5/staging.prenetworking.net/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/field/type/definition.php(233): Toolset_Field_Type_Definition_Checkbox->sanitize_field_definition_array_type_specific(Array) #5 /home/prenet5/staging.prenetworking.net/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/field/definition.php(100): Toolset_Field_Type_Definition->sanitize_field_definition_array(Array) #6 /home/prenet5/staging.prenetworking.net/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/field/definition_factory.php(149): Toolset_Field_Definition->__construct(Object(Toolset_Field_Type_Definition_Checkbox), Array, Object(Toolset_Field_Definition_Factory_Post)) #7 /home/prenet5/staging.prenetworking.net/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/field/definition_factory.php(95): Toolset_Field_Definition_Factory->load_field_definition_from_database('inactive') #8 /home/prenet5/staging.prenetworking.net/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/field/group.php(322): Toolset_Field_Definition_Factory->load_field_definition('inactive') #9 /home/prenet5/staging.prenetworking.net/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/ToolsetSources/CustomFieldService.php(100): Toolset_Field_Group->get_field_definitions() #10 /home/prenet5/staging.prenetworking.net/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/ToolsetSources/DynamicSourceFactory.php(40): Toolset\DynamicSources\ToolsetSources\CustomFieldService->create_group_model('membergroup') #11 /home/prenet5/staging.prenetworking.net/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/ToolsetSources/Main.php(71): Toolset\DynamicSources\ToolsetSources\DynamicSourceFactory->get_sources(Array) #12 /home/prenet5/staging.prenetworking.net/wp-includes/class-wp-hook.php(310): Toolset\DynamicSources\ToolsetSources\Main->Toolset\DynamicSources\ToolsetSources\{closure}(Array, Array) #13 /home/prenet5/staging.prenetworking.net/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #14 /home/prenet5/staging.prenetworking.net/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(455): apply_filters('toolset/dynamic...', Array, Array) #15 /home/prenet5/staging.prenetworking.net/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(399): Toolset\DynamicSources\DynamicSources->register_data_sources(Array) #16 /home/prenet5/staging.prenetworking.net/wp-includes/class-wp-hook.php(310): Toolset\DynamicSources\DynamicSources->register_sources('') #17 /home/prenet5/staging.prenetworking.net/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) #18 /home/prenet5/staging.prenetworking.net/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #19 /home/prenet5/staging.prenetworking.net/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(775): do_action('toolset/dynamic...') #20 /home/prenet5/staging.prenetworking.net/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(744): Toolset\DynamicSources\DynamicSources->get_shortcode_content(Array) #21 /home/prenet5/staging.prenetworking.net/wp-includes/shortcodes.php(395): Toolset\DynamicSources\DynamicSources->dynamic_shortcode_render(Array, '', 'tb-dynamic') #22 [internal function]: do_shortcode_tag(Array) #23 /home/prenet5/staging.prenetworking.net/wp-includes/shortcodes.php(235): preg_replace_callback('/\\[(\\[?)(tb\\-dy...', 'do_shortcode_ta...', '[tb-dynamic pro...') #24 /home/prenet5/staging.prenetworking.net/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(920): do_shortcode('[tb-dynamic pro...') #25 [internal function]: Toolset\DynamicSources\DynamicSources->Toolset\DynamicSources\{closure}(Array) #26 /home/prenet5/staging.prenetworking.net/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(919): preg_replace_callback('#(\\[tb-dynamic\\...', Object(Closure), '<!-- wp:toolset...') #27 /home/prenet5/staging.prenetworking.net/wp-includes/class-wp-hook.php(312): Toolset\DynamicSources\DynamicSources->shortcode_render('<!-- wp:toolset...') #28 /home/prenet5/staging.prenetworking.net/wp-includes/plugin.php(205): WP_Hook->apply_filters('<!-- wp:toolset...', Array) #29 /home/prenet5/staging.prenetworking.net/wp-content/plugins/toolset-blocks/embedded/inc/views-templates/wpv-template.class.php(955): apply_filters('wpv_filter_cont...', '<!-- wp:toolset...', 1698, 462, 'single-chapter') #30 /home/prenet5/staging.prenetworking.net/wp-includes/class-wp-hook.php(310): WPV_template->the_content('<!-- wp:toolset...') #31 /home/prenet5/staging.prenetworking.net/wp-includes/plugin.php(205): WP_Hook->apply_filters('Professional Re...', Array) #32 /home/prenet5/staging.prenetworking.net/wp-includes/post-template.php(256): apply_filters('the_content', 'Professional Re...') #33 /home/prenet5/staging.prenetworking.net/wp-content/themes/astra/template-parts/single/single-layout.php(47): the_content() #34 /home/prenet5/staging.prenetworking.net/wp-includes/template.php(787): require('/home/prenet5/s...') #35 /home/prenet5/staging.prenetworking.net/wp-includes/template.php(720): load_template('/home/prenet5/s...', false, Array) #36 /home/prenet5/staging.prenetworking.net/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #37 /home/prenet5/staging.prenetworking.net/wp-content/themes/astra/inc/template-parts.php(265): get_template_part('template-parts/...') #38 /home/prenet5/staging.prenetworking.net/wp-includes/class-wp-hook.php(310): astra_entry_content_single_template('') #39 /home/prenet5/staging.prenetworking.net/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) #40 /home/prenet5/staging.prenetworking.net/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #41 /home/prenet5/staging.prenetworking.net/wp-content/themes/astra/inc/core/theme-hooks.php(443): do_action('astra_entry_con...') #42 /home/prenet5/staging.prenetworking.net/wp-content/themes/astra/template-parts/content-single.php(29): astra_entry_content_single() #43 /home/prenet5/staging.prenetworking.net/wp-includes/template.php(787): require('/home/prenet5/s...') #44 /home/prenet5/staging.prenetworking.net/wp-includes/template.php(720): load_template('/home/prenet5/s...', false, Array) #45 /home/prenet5/staging.prenetworking.net/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #46 /home/prenet5/staging.prenetworking.net/wp-content/themes/astra/inc/class-astra-loop.php(120): get_template_part('template-parts/...', 'single') #47 /home/prenet5/staging.prenetworking.net/wp-includes/class-wp-hook.php(310): Astra_Loop->template_parts_post('') #48 /home/prenet5/staging.prenetworking.net/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) #49 /home/prenet5/staging.prenetworking.net/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #50 /home/prenet5/staging.prenetworking.net/wp-content/themes/astra/inc/class-astra-loop.php(199): do_action('astra_template_...') #51 /home/prenet5/staging.prenetworking.net/wp-includes/class-wp-hook.php(310): Astra_Loop->loop_markup('') #52 /home/prenet5/staging.prenetworking.net/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) #53 /home/prenet5/staging.prenetworking.net/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #54 /home/prenet5/staging.prenetworking.net/wp-content/themes/astra/inc/core/theme-hooks.php(258): do_action('astra_content_l...') #55 /home/prenet5/staging.prenetworking.net/wp-content/themes/astra/single.php(27): astra_content_loop() #56 /home/prenet5/staging.prenetworking.net/wp-includes/template-loader.php(106): include('/home/prenet5/s...') #57 /home/prenet5/staging.prenetworking.net/wp-blog-header.php(19): require_once('/home/prenet5/s...') #58 /home/prenet5/staging.prenetworking.net/index.php(17): require('/home/prenet5/s...') #59 {main} thrown in /home/prenet5/staging.prenetworking.net/wp-content/plugins/wsdesk-premium/includes/wp-fluent/src/AliasFacade.php on line 24

#2639317

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+01:00)

Hi there

From the error message you shared it looks like it comes from the plugin WS Desk. Would that be this?

lien caché

To investigate we'd need access to your site if that's okay.

What more information do you have about the error? We would be looking to identify the steps or set-up that triggers the error, to see if we can reproduce it on a test site.

From your link URL (I can't visit the link itself) it looks like this could be a post "reading" of a custom post type "chapter", would that be right?

Let me mark your next reply as private so that we can get log-in credentials from you—you may want to create a temporary admin user for us to use that you can later delete. And be sure to have a current backup of your site.

The topic ‘[Closed] php 8.0 generating this error, works fine in php 7.4 ???’ is closed to new replies.