I am trying to: update to PHP 8 or PHP 8.1.
Link to a page where the issue can be seen: hidden link the view is blank
I expected to see (previous PHP 7.4. version): hidden link
Instead, I got the fatal following error code:
Fatal error: Uncaught Error: array_merge() does not accept unknown named parameters
in /www/salarship_310/public/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-cache.class.php on line 358
Call stack:
array_merge()
wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-cache.class.php:358
WPV_Cache::generate_post_data_cache()
wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-cache.class.php:580
WPV_Cache::generate_native_cache()
wp-content/plugins/toolset-blocks/embedded/inc/wpv-filter-query.php:220
WPV_View_Post_Query::wpv_filter_extend_query_for_parametric_and_counters()
wp-includes/class-wp-hook.php:307
WP_Hook::apply_filters()
wp-includes/plugin.php:189
apply_filters()
wp-content/plugins/toolset-blocks/embedded/inc/wpv-filter-query.php:848
wpv_filter_get_posts()
wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php:2497
WP_Views::render_view()
wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php:2124
WP_Views::render_view_ex()
wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php:639
WP_Views::short_tag_wpv_view()
wp-includes/shortcodes.php:356
do_shortcode_tag()
preg_replace_callback()
wp-includes/shortcodes.php:228
do_shortcode()
wp-includes/class-wp-hook.php:307
WP_Hook::apply_filters()
wp-includes/plugin.php:189
apply_filters()
wp-includes/post-template.php:253
the_content()
wp-content/themes/generatepress/content-single.php:73
require()
wp-includes/template.php:772
load_template()
wp-includes/template.php:716
locate_template()
wp-includes/general-template.php:204
get_template_part()
wp-content/themes/generatepress/inc/theme-functions.php:595
generate_do_template_part()
wp-content/themes/generatepress/single.php:29
include()
wp-includes/template-loader.php:106
require_once()
wp-blog-header.php:19
require()
index.php:17
Hi there,
PHP 8 is currently not supported due to some issues. We’re working on fixing this. In the meantime, please use PHP 7 version.
For more information:
https://toolset.com/toolset-requirements/
Thank you.
Thank you, I hope you guys will find a fix because I don't really understand what's going on.
Best, Nathan
I'm getting the same error... I only upgraded to PHP 8 because Toolset sent out an email saying it's supported now. 🙂
Anyway, I reverted back to PHP 7.4 for now. But would love for y'all to fix this so I could run PHP 8! Following this thread...
An error of type E_ERROR was caused in line 358 of the file /home/zwifti5/public_html/wp-content/plugins/wp-views/embedded/inc/classes/wpv-cache.class.php. Error message: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in /home/zwifti5/public_html/wp-content/plugins/wp-views/embedded/inc/classes/wpv-cache.class.php:358
Stack trace:
#0 /home/zwifti5/public_html/wp-content/plugins/wp-views/embedded/inc/classes/wpv-cache.class.php(358): array_merge(post_author: Array, post_type: Array)
#1 /home/zwifti5/public_html/wp-content/plugins/wp-views/embedded/inc/classes/wpv-cache.class.php(580): WPV_Cache::generate_post_data_cache(Array, Array, Array)
#2 /home/zwifti5/public_html/wp-content/plugins/wp-views/embedded/inc/wpv-filter-query.php(220): WPV_Cache::generate_native_cache(Array, Array)
#3 /home/zwifti5/public_html/wp-includes/class-wp-hook.php(307): WPV_View_Post_Query->wpv_filter_extend_query_for_parametric_and_counters(Object(WP_Query), Array, '54240')
#4 /home/zwifti5/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(Object(WP_Query), Array)
#5 /home/zwifti5/public_html/wp-content/plugins/wp-views/embedded/inc/wpv-filter-query.php(848): apply_filters('wpv_filter_quer...', Object(WP_Query), Array, '54240')
#6 /home/zwifti5/public_html/wp-content/plugins/wp-views/embedded/inc/wpv.class.php(2497): wpv_filter_get_posts('54240')
#7 /home/zwifti5/public_html/wp-content/plugins/wp-views/embedded/inc/wpv.class.php(2124): WP_Views->render_view('54240', '8e722dad2cea620...')
#8 /home/zwifti5/public_html/wp-content/plugins/wp-views/embedded/inc/wpv.class.php(639): WP_Views->render_view_ex('54240', '8e722dad2cea620...')
#9 /home/zwifti5/public_html/wp-includes/shortcodes.php(356): WP_Views->short_tag_wpv_view(Array, '', 'wpv-view')
#10 [internal function]: do_shortcode_tag(Array)
#11 /home/zwifti5/public_html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(wpv\\-v...', 'do_shortcode_ta...', '\nHere is a c...')
#12 /home/zwifti5/public_html/wp-includes/class-wp-hook.php(307): do_shortcode('\nHere is a c...')
#13 /home/zwifti5/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters('\nHere is a c...', Array)
#14 /home/zwifti5/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1811): apply_filters('the_content', '