Home › Toolset Professional Support › [Closed] PHP depreciated
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.
This topic contains 4 replies, has 2 voices.
Last updated by Christopher Amirian 8 months, 2 weeks ago.
Assisted by: Christopher Amirian.
I am trying to:
Link to a page where the issue can be seen:
hidden link
I expected to see:
Site working with 8.1-latest FPM (8.1.28)
Instead, I got:
[01-May-2024 12:02:26 UTC]
PHP Deprecated: Creation of dynamic property Toolset_Theme_Integration_Settings_Front_End_Controller_astra:
:$is_blocks_active is deprecated in /html/wordpress/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-theme-settings/compatibility-modules/controllers/toolset-theme-integration-settings-abstract-controller.php on line 56
N.B. I downgraded now WP to 6.4.4 - as mentionned in some of your support tickets - but still error on site
The critical error on Frontend disappears when I de-activate Toolset Blocks
Hi there,
The PHP Deprecation message os not a critical error and it is a notice that in the future PHP versions the function might not work, but now it works with no issues.
So you must have another issue causing a critical error which usually starts with:
PHP Fatal Error.
Would you please share that error to see what can be done about that?
Thanks.
Hello Christopher,
Thanks for coming back to me. I cleared the log, and generated a fresh one - here the details regarding the Fatal:
1 PHP Fatal Uncaught TypeError: Unsupported operand types: string - stringStack trace: #0 /wp-content/plugins/toolset-blocks/embedded/inc/wpv-user-functions.php(500): wpv_filter_parse_date('...') #1 /wp-content/plugins/toolset-blocks/embedded/inc/wpv-user-functions.php(132): wpv_apply_user_function_date_compare('...') #2 /wp-includes/class-wp-hook.php(324): wpv_filter_resolve_variable_date_timestamp('...', Array) #3 /wp-includes/plugin.php(205): WP_Hook->apply_filters('...', Array) #4 /wp-content/plugins/toolset-blocks/embedded/inc/filters/wpv-filter-meta-field-embedded.php(159): apply_filters('...', '...', Array) #5 /wp-includes/class-wp-hook.php(324): WPV_Meta_Frontend_Filter::filter_post_meta(Array, Array, '...') #6 /wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #7 /wp-content/plugins/toolset-blocks/embedded/inc/wpv-filter-query.php(818): apply_filters('...', Array, Array, '...') #8 /wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php(2546): wpv_filter_get_posts('...') #9 /wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php(2172): WP_Views->render_view('...', '...') #10 /wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php(681): WP_Views->render_view_ex('...', '...') #11 /wp-includes/shortcodes.php(433): WP_Views->short_tag_wpv_view(Array, '', '...') #12 internal function: do_shortcode_tag(Array) #13 /wp-includes/shortcodes.php(273): preg_replace_callback('...', '...', '...') #14 /wp-includes/class-wp-hook.php(324): do_shortcode('...') #15 /wp-includes/plugin.php(205): WP_Hook->apply_filters('...', Array) #16 /wp-includes/post-template.php(256): apply_filters('...', '...') #17 /wp-content/themes/astra/template-parts/single/content-header.php(33): the_content() #18 /wp-includes/template.php(792): require('...') #19 /wp-includes/template.php(725): load_template('...', false, Array) #20 /wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #21 /wp-content/themes/astra/inc/template-parts.php(376): get_template_part('...') #22 /wp-includes/class-wp-hook.php(324): astra_entry_content_single_page_template('') #23 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #24 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #25 /wp-content/themes/astra/inc/core/theme-hooks.php(452): do_action('...') #26 /wp-content/themes/astra/template-parts/content-page.php(26): astra_entry_content_single_page() #27 /wp-includes/template.php(792): require('...') #28 /wp-includes/template.php(725): load_template('...', false, Array) #29 /wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #30 /wp-content/themes/astra/inc/class-astra-loop.php(111): get_template_part('...', '...') #31 /wp-includes/class-wp-hook.php(324): Astra_Loop->template_parts_page('') #32 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #33 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #34 /wp-content/themes/astra/inc/class-astra-loop.php(199): do_action('...') #35 /wp-content/themes/astra/inc/class-astra-loop.php(176): Astra_Loop->loop_markup(true) #36 /wp-includes/class-wp-hook.php(324): Astra_Loop->loop_markup_page('') #37 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #38 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #39 /wp-content/themes/astra/inc/core/theme-hooks.php(267): do_action('...') #40 /wp-content/themes/astra/page.php(32): astra_content_page_loop() #41 /wp-includes/template-loader.php(106): include('...') #42 /wp-blog-header.php(19): require_once('...') #43 /index.php(17): require('...') #44 {main} thrown in /wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/inc/toolset.function.helpers.php on line 196Plugin: Toolset Blocks
File: /wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/inc/toolset.function.helpers.php
Line: 196
Many thanks
best regards,
Georges
Hi there,
Thank you for the details and sorry for the late reply.
I have checked and the only instance I saw is this:
https://toolset.com/forums/topic/php-fatal-error-uncaught-error-unsupported-operand-types/
It seems one of your views or archives or filters uses the datepicker in a wrong way as that is the inly instance I see an error like that might happen.
Do you know which one might be the issue? Try by removing the views added in the homepage (make sure the website has a backup) and see if it works?
See if there is any sort of custom code there added by you or your developer that might cause the issue Something related to date?
Thanks.
The topic ‘[Closed] PHP depreciated’ is closed to new replies.