Skip Navigation

[Resolved] Toolset Blocks Error

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user was getting some errors on PHP version 8.

Solution:

We have not yet announced compatibility with php version 8 and as such I would recommend rolling back your php settings to version 7.

This support ticket is created 3 years, 5 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 Annie 3 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#2120241

When we try to view one of our archive pages we built in Toolset Blocks, it's running into this error:

Error Details
=============
An error of type E_ERROR was caused in line 358 of the file /home/painycom/domains/dev.painy.com/public_html/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-cache.class.php. Error message: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in /home/painycom/domains/dev.painy.com/public_html/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-cache.class.php:358
Stack trace:
#0 /home/painycom/domains/dev.painy.com/public_html/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-cache.class.php(358): array_merge()
#1 /home/painycom/domains/dev.painy.com/public_html/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-cache.class.php(580): WPV_Cache::generate_post_data_cache()
#2 /home/painycom/domains/dev.painy.com/public_html/wp-content/plugins/toolset-blocks/embedded/inc/wpv-filter-query.php(220): WPV_Cache::generate_native_cache()
#3 /home/painycom/domains/dev.painy.com/public_html/wp-includes/class-wp-hook.php(292): WPV_View_Post_Query->wpv_filter_extend_query_for_parametric_and_counters()
#4 /home/painycom/domains/dev.painy.com/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters()
#5 /home/painycom/domains/dev.painy.com/public_html/wp-content/plugins/toolset-blocks/embedded/inc/wpv-filter-query.php(848): apply_filters()
#6 /home/painycom/domains/dev.painy.com/public_html/wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php(2491): wpv_filter_get_posts()
#7 /home/painycom/domains/dev.painy.com/public_html/wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php(2118): WP_Views->render_view()
#8 /home/painycom/domains/dev.painy.com/public_html/wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php(632): WP_Views->render_view_ex()
#9 /home/painycom/domains/dev.painy.com/public_html/wp-includes/shortcodes.php(343): WP_Views->short_tag_wpv_view()
#10 [internal function]: do_shortcode_tag()
#11 /home/painycom/domains/dev.painy.com/public_html/wp-includes/shortcodes.php(218): preg_replace_callback()
#12 /home/painycom/domains/dev.painy.com/public_html/wp-includes/class-wp-hook.php(292): do_shortcode()
#13 /home/painycom/domains/dev.painy.com/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters()
#14 /home/painycom/domains/dev.painy.com/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1768): apply_filters()
#15 /home/painycom/domains/dev.painy.com/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(550): WP_REST_Posts_Controller->prepare_item_for_response()
#16 /home/painycom/domains/dev.painy.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(1139): WP_REST_Posts_Controller->get_item()
#17 /home/painycom/domains/dev.painy.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(985): WP_REST_Server->respond_to_request()
#18 /home/painycom/domains/dev.painy.com/public_html/wp-includes/rest-api.php(479): WP_REST_Server->dispatch()
#19 /home/painycom/domains/dev.painy.com/public_html/wp-includes/rest-api.php(2816): rest_do_request()
#20 [internal function]: rest_preload_api_request()
#21 /home/painycom/domains/dev.painy.com/public_html/wp-admin/edit-form-blocks.php(82): array_reduce()
#22 /home/painycom/domains/dev.painy.com/public_html/wp-admin/post.php(187): require('/home/painycom/...')
#23 {main}
thrown

#2120299

Shane
Supporter

Languages: English (English )

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

Hi Annie,

Thank you for getting in touch.

This issue could be stemming from the fact that you're running PHP version 8.

We have not announced compatibility with php version 8 as yet and as such I would recommend downgrading your PHP version to version 7.x.x

Please let me know if the issue still remains after this.

Thanks,
Shane

#2120461

We rolled back the PHP version and that fixed it. Thanks.