Skip Navigation

[Resolved] Fatal error: Uncaught ArgumentCountError: array_merge() does not accept unknown

This support ticket is created 2 years, 11 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 dougB-2 2 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#2371899

I am trying to: View a custom view

Link to a page where the issue can be seen: hidden link

I expected to see: a listing of the custom type ebook (this happens on all the custom types).
You should know that my site was hacked and all files deleted, so I am working from an 8 month old archive of the site. Everything else seems to be working...

Instead, I got:
Fatal error: Uncaught ArgumentCountError:
array_merge() does not accept unknown named parameters in
/bitnami/wordpress/wp-content/plugins/wp-views/embedded/inc/classes/wpv-cache.class.php:358

Stack trace:
#0 /bitnami/wordpress/wp-content/plugins/wp-views/embedded/inc/classes/wpv-cache.class.php(358): array_merge()
#1 /bitnami/wordpress/wp-content/plugins/wp-views/embedded/inc/classes/wpv-cache.class.php(580): WPV_Cache::generate_post_data_cache()
#2 /bitnami/wordpress/wp-content/plugins/wp-views/embedded/inc/wpv-archive-loop.php(866): WPV_Cache::generate_native_cache()
#3 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(307): WPV_WordPress_Archive_Frontend::extend_archive_query_for_parametric_and_counters()
#4 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#5 /opt/bitnami/wordpress/wp-includes/plugin.php(476): WP_Hook->do_action()
#6 /bitnami/wordpress/wp-content/plugins/wp-views/embedded/inc/wpv-archive-loop.php(1058): do_action()
#7 /bitnami/wordpress/wp-content/plugins/wp-views/embedded/inc/wpv-archive-loop.php(2123): WPV_WordPress_Archive_Frontend->initialize_archive_loop()
#8 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(307): WPV_WordPress_Archive_Frontend->wpv_initialize_wordpress_archive_for_archive_loop()
#9 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#10 /opt/bitnami/wordpress/wp-includes/plugin.php(476): WP_Hook->do_action()
#11 /bitnami/wordpress/wp-content/plugins/layouts/inc/cell_types/wpddl.cell_views_loop.class.php(38): do_action()
#12 /bitnami/wordpress/wp-content/plugins/layouts/classes-auto/wpddl.layout.class.php(1011): WPDD_layout_loop_views_cell->frontend_render_cell_content()
#13 /bitnami/wordpress/wp-content/plugins/layouts/classes-auto/wpddl.layout.class.php(604): WPDD_layout_cell->frontend_render()
#14 /bitnami/wordpress/wp-content/plugins/layouts/classes-auto/wpddl.layout.class.php(91): WPDD_layout_row->frontend_render()
#15 /bitnami/wordpress/wp-content/plugins/layouts/classes-auto/wpddl.layout-render.class.php(137): WPDD_layout->frontend_render()
#16 /bitnami/wordpress/wp-content/plugins/layouts/classes-auto/wpddl.layout-render.class.php(135): WPDD_layout_render->render_to_html()
#17 /bitnami/wordpress/wp-content/plugins/layouts/classes-auto/wpddl.layout-render.class.php(453): WPDD_layout_render->render_to_html()
#18 /bitnami/wordpress/wp-content/plugins/layouts/classes-auto/wpddl.layouts.render.manager.class.php(574): WPDD_layout_render->render()
#19 /bitnami/wordpress/wp-content/plugins/layouts/classes-auto/wpddl.layouts.render.manager.class.php(556): WPDD_Layouts_RenderManager->get_rendered_layout_content()
#20 /bitnami/wordpress/wp-content/plugins/layouts/classes/wpddl.class.php(1449): WPDD_Layouts_RenderManager->get_layout_content_for_render()
#21 /bitnami/wordpress/wp-content/plugins/layouts/inc/api/ddl-theme-api.php(47): WPDD_Layouts->get_layout_content_for_render()
#22 /bitnami/wordpress/wp-content/plugins/layouts/inc/api/ddl-theme-api.php(13): get_the_ddlayout()
#23 /bitnami/wordpress/wp-content/themes/toolset-starter/index.php(5): the_ddlayout()
#24 /opt/bitnami/wordpress/wp-includes/template-loader.php(106): include('...')
#25 /opt/bitnami/wordpress/wp-blog-header.php(19): require_once('...')
#26 /opt/bitnami/wordpress/index.php(17): require('...')
#27 {main} thrown in /bitnami/wordpress/wp-content/plugins/wp-views/embedded/inc/classes/wpv-cache.class.php on line 358

#2371983

Shane
Supporter

Languages: English (English )

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

Hi Doug,

Thank you for getting in touch. This is a known issue with our Views plugin and php version 8.

We have since updated our Toolset plugins to be compatible with PHP 8 so I recommend downloading the latest version of our plugins at the link below.
https://toolset.com/account/downloads/

Thanks,
Shane

#2371993

My issue is resolved now. Thank you!