Saltar navegación

[Cerrado] PHP 8 error

This support ticket is created hace 2 años, 9 meses. 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)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Waqar hace 2 años, 9 meses.

Asistido por: Waqar.

Autor
Mensajes
#2325535

I am trying to: Was testing PHP 8

Link to a page where the issue can be seen: enlace oculto

I expected to see: This was a test, as we have any sites running Toolset views - Toolset Debug info is after rolling back to PHP 7.4

Instead, I got:

[Thu Mar 24 01:45:37.230561 2022] [php:error] [pid 27625] [client 80.249.1.62:0] PHP Fatal error: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in /nas/content/live/petraoliveoil/wp-content/plugins/wp-views/embedded/inc/classes/wpv-cache.class.php:358\nStack trace:\n#0 /nas/content/live/petraoliveoil/wp-content/plugins/wp-views/embedded/inc/classes/wpv-cache.class.php(358): array_merge(post_author: Array, post_type: Array)\n#1 /nas/content/live/petraoliveoil/wp-content/plugins/wp-views/embedded/inc/classes/wpv-cache.class.php(580): WPV_Cache::generate_post_data_cache(Array, Array, Array)\n#2 /nas/content/live/petraoliveoil/wp-content/plugins/wp-views/embedded/inc/wpv-filter-query.php(220): WPV_Cache::generate_native_cache(Array, Array)\n#3 /nas/content/live/petraoliveoil/wp-includes/class-wp-hook.php(307): WPV_View_Post_Query->wpv_filter_extend_query_for_parametric_and_counters(Object(WP_Query), Array, '17152')\n#4 /nas/content/live/petraoliveoil/wp-includes/plugin.php(189): WP_Hook->apply_filters(Object(WP_Query), Array)\n#5 /nas/content/live/petraoliveoil/wp-content/plugins/wp-views/embedded/inc/wpv-filter-query.php(848): apply_filters('wpv_filter_quer...', Object(WP_Query), Array, '17152')\n#6 /nas/content/live/petraoliveoil/wp-content/plugins/wp-views/embedded/inc/wpv.class.php(2497): wpv_filter_get_posts('17152')\n#7 /nas/content/live/petraoliveoil/wp-content/plugins/wp-views/embedded/inc/wpv.class.php(2124): WP_Views->render_view('17152', 'bbb825f04816ed3...')\n#8 /nas/content/live/petraoliveoil/wp-content/plugins/wp-views/embedded/inc/wpv.class.php(639): WP_Views->render_view_ex('17152', 'bbb825f04816ed3...')\n#9 /nas/content/live/petraoliveoil/wp-includes/shortcodes.php(356): WP_Views->short_tag_wpv_view(Array, '', 'wpv-view')\n#10 [internal function]: do_shortcode_tag(Array)\n#11 /nas/content/live/petraoliveoil/wp-includes/shortcodes.php(228): preg_replace_callback('/\\\\[(\\\\[?)(wpv\\\\-v...', 'do_shortcode_ta...', '<div class="fl-...')\n#12 /nas/content/live/petraoliveoil/wp-content/plugins/bb-plugin/classes/class-fl-builder.php(1883): do_shortcode('<div class="fl-...')\n#13 /nas/content/live/petraoliveoil/wp-content/plugins/bb-plugin/classes/class-fl-builder.php(1939): FLBuilder::render_content_by_id(17147)\n#14 /nas/content/live/petraoliveoil/wp-includes/class-wp-hook.php(307): FLBuilder::render_content('\\n\\n<h1>\\n\\t\\tReview...')\n#15 /nas/content/live/petraoliveoil/wp-includes/plugin.php(189): WP_Hook->apply_filters('\\n\\n<h1>\\n\\t\\tReview...', Array)\n#16 /nas/content/live/petraoliveoil/wp-includes/post-template.php(253): apply_filters('the_content', '<!-- wp:fl-buil...')\n#17 /nas/content/live/petraoliveoil/wp-content/themes/bb-theme/content-page.php(13): the_content()\n#18 /nas/content/live/petraoliveoil/wp-includes/template.php(772): require('/nas/content/li...')\n#19 /nas/content/live/petraoliveoil/wp-includes/template.php(716): load_template('/nas/content/li...', false, Array)\n#20 /nas/content/live/petraoliveoil/wp-includes/general-template.php(204): locate_template(Array, true, false, Array)\n#21 /nas/content/live/petraoliveoil/wp-content/themes/bb-theme/page.php(10): get_template_part('content', 'page')\n#22 /nas/content/live/petraoliveoil/wp-includes/template-loader.php(106): include('/nas/content/li...')\n#23 /nas/content/live/petraoliveoil/wp-blog-header.php(19): require_once('/nas/content/li...')\n#24 /nas/content/live/petraoliveoil/index.php(17): require('/nas/content/li...')\n#25 {main}\n thrown in /nas/content/live/petraoliveoil/wp-content/plugins/wp-views/embedded/inc/classes/wpv-cache.class.php on line 358, referer: enlace oculto

#2325573

Hi,

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

The upcoming releases of Toolset plugins cover PHP 8 compatibility, which also includes a fix for this specific error.

However, this error shouldn't be appearing after switching to PHP 7.4. Can you please clear all involved caches and then check the server's error log again?

regards,
Waqar

El debate ‘[Cerrado] PHP 8 error’ está cerrado y no admite más respuestas.