Skip Navigation

[Resolved] Toolset Blocks Not Compatible with PHP 8.0

This support ticket is created 3 years, 7 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Waqar 3 years, 3 months ago.

Assisted by: Waqar.

Author
Posts
#2289015

Hello, I found this support thread marked as resolved so I know the update to be compatible with PHP 8.0 is in progress - https://toolset.com/forums/topic/wp-views-incompat-with-php8/

Unfortunately, we need our site updated to PHP 8.0 by the end of the month so I need to resolve this conflict ASAP.

1. Do you have an ETA for the fix?
2. If the fix won't be available in the next couple weeks, can you provide a temporary fix for me? This is a critical issue.

Thank you,
Sidra

Error stack trace for refernce:

[10-Feb-2022 20:36:47 UTC] PHP Fatal error:  Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in /nas/content/live/wpsite/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-cache.class.php:358
Stack trace:
#0 /nas/content/live/wpsite/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-cache.class.php(358): array_merge(post_author: Array, post_type: Array)
#1 /nas/content/live/wpsite/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-cache.class.php(580): WPV_Cache::generate_post_data_cache(Array, Array, Array)
#2 /nas/content/live/wpsite/wp-content/plugins/toolset-blocks/embedded/inc/wpv-filter-query.php(220): WPV_Cache::generate_native_cache(Array, Array)
#3 /nas/content/live/wpsite/wp-includes/class-wp-hook.php(303): WPV_View_Post_Query->wpv_filter_extend_query_for_parametric_and_counters(Object(WP_Query), Array, 236684)
#4 /nas/content/live/wpsite/wp-includes/plugin.php(189): WP_Hook->apply_filters(Object(WP_Query), Array)
#5 /nas/content/live/wpsite/wp-content/plugins/toolset-blocks/embedded/inc/wpv-filter-query.php(848): apply_filters('wpv_filter_quer...', Object(WP_Query), Array, 236684)
#6 /nas/content/live/wpsite/wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php(2497): wpv_filter_get_posts(236684)
#7 /nas/content/live/wpsite/wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php(2124): WP_Views->render_view(236684, '22c44db978da788...')
#8 /nas/content/live/wpsite/wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php(639): WP_Views->render_view_ex(236684, '22c44db978da788...')
#9 /nas/content/live/wpsite/wp-includes/shortcodes.php(356): WP_Views->short_tag_wpv_view(Array, '', 'wpv-view')
#10 [internal function]: do_shortcode_tag(Array)
#11 /nas/content/live/wpsite/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(wpv\\-v...', 'do_shortcode_ta...', '[wpv-view name=...')
#12 /nas/content/live/wpsite/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(2770): do_shortcode('[wpv-view name=...')
#13 /nas/content/live/wpsite/wp-includes/shortcodes.php(356): ET_Builder_Element->_render(Array, '[wpv-view name=...', 'et_pb_text')
#14 [internal function]: do_shortcode_tag(Array)
#15 /nas/content/live/wpsite/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(wpv\\-v...', 'do_shortcode_ta...', '[et_pb_text _bu...')
#16 /nas/content/live/wpsite/wp-content/themes/Divi/includes/builder/main-structure-elements.php(3062): do_shortcode('[et_pb_text _bu...')
#17 /nas/content/live/wpsite/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3056): ET_Builder_Column->render(Array, '[et_pb_text _bu...', 'et_pb_column', '', '', '', '')
#18 /nas/content/live/wpsite/wp-includes/shortcodes.php(356): ET_Builder_Element->_render(Array, '[et_pb_text _bu...', 'et_pb_column')
#19 [internal function]: do_shortcode_tag(Array)
#20 /nas/content/live/wpsite/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(wpv\\-v...', 'do_shortcode_ta...', '[et_pb_column t...')
#21 /nas/content/live/wpsite/wp-content/themes/Divi/includes/builder/main-structure-elements.php(1885): do_shortcode('[et_pb_column t...')
#22 /nas/content/live/wpsite/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3056): ET_Builder_Row->render(Array, '[et_pb_column t...', 'et_pb_row', '', '', '', '')
#23 /nas/content/live/wpsite/wp-includes/shortcodes.php(356): ET_Builder_Element->_render(Array, '[et_pb_column t...', 'et_pb_row')
#24 [internal function]: do_shortcode_tag(Array)
#25 /nas/content/live/wpsite/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(wpv\\-v...', 'do_shortcode_ta...', '[et_pb_row _bui...')
#26 /nas/content/live/wpsite/wp-content/themes/Divi/includes/builder/main-structure-elements.php(1272): do_shortcode('[et_pb_row _bui...')
#27 /nas/content/live/wpsite/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3056): ET_Builder_Section->render(Array, '[et_pb_row _bui...', 'et_pb_section', '', '', '', '')
#28 /nas/content/live/wpsite/wp-includes/shortcodes.php(356): ET_Builder_Element->_render(Array, '[et_pb_row _bui...', 'et_pb_section')
#29 [internal function]: do_shortcode_tag(Array)
#30 /nas/content/live/wpsite/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(wpv\\-v...', 'do_shortcode_ta...', '<div id="et-boc...')
#31 /nas/content/live/wpsite/wp-includes/class-wp-hook.php(303): do_shortcode('<div id="et-boc...')
#32 /nas/content/live/wpsite/wp-includes/plugin.php(189): WP_Hook->apply_filters('<div id="et-boc...', Array)
#33 /nas/content/live/wpsite/wp-includes/post-template.php(253): apply_filters('the_content', '[et_pb_section ...')
#34 /nas/content/live/wpsite/wp-content/themes/Divi-child/page.php(46): the_content()
#35 /nas/content/live/wpsite/wp-includes/template-loader.php(106): include('/nas/content/li...')
#36 /nas/content/live/wpsite/wp-blog-header.php(19): require_once('/nas/content/li...')
#37 /nas/content/live/wpsite/index.php(17): require('/nas/content/li...')
#38 {main}
  thrown in /nas/content/live/wpsite/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-cache.class.php on line 358
#2289277

Hi Sidra,

Thank you for contacting us and I'd be happy to assist.

Your understanding is correct and PHP 8 compatibility is being worked on with a very high priority.

PHP 8 is a major update, which is why complex and rigorous testing and code review are involved across all Toolset plugins. For this reason, I'm afraid, it won't be possible to share an ETA or a safe temporary fix/patch.

I've added your voice to this matter and will update you through this ticket once PHP 8 support is official.

regards,
Waqar

#2310409

Hello Waqar,

I was hoping to get an update on this to know if there might be an ETA at this point. I realize it's a complicated update that might take a while, but just wanted to check id anything had changed.

Thanks for your help,
Sidra

#2310935

Hi Sidra,

Thanks for checking in.

I can confirm that most of the work, around PHP 8 compatibility has been completed and the upcoming release of Toolset plugins will cover this.

Although I still don't have the exact time estimate, it shouldn't take long now and you can expect these releases within a couple of weeks.

regards,
Waqar

#2310937

{ticket status updated}

#2369327

I'm happy to inform you that the PHP 8 compatibility has been included in the latest releases of the Toolset plugins.
( https://toolset.com/2022/05/toolset-1-6-3-full-compatibility-with-php-8 )

You're welcome to update the plugins and let us know if you see any other errors or warnings.