Skip Navigation

[Resolved] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function wpv

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 1 reply, has 2 voices.

Last updated by Waqar 1 year, 9 months ago.

Assisted by: Waqar.

Author
Posts
#2600179

When i activate toolset block the website crashes cause of the following error:

[27-Apr-2023 13:09:46 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function wpv_authenticate_errors(), 1 passed in /home/###/public_html/wp-includes/class-wp-hook.php on line 308 and exactly 2 expected in /home/###/public_html/wp-content/plugins/toolset-blocks/embedded/inc/wpv-shortcodes.php:864
Stack trace:
#0 /home/###/public_html/wp-includes/class-wp-hook.php(308): wpv_authenticate_errors('')
#1 /home/###/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('', Array)
#2 /home/###/public_html/wp-content/plugins/unyson/framework/extensions/sign-form/views/form-login.php(30): apply_filters('login_form_top', '')
#3 /home/###/public_html/wp-content/plugins/unyson/framework/helpers/general.php(743): require('/home/careercen...')
#4 /home/###/public_html/wp-content/plugins/unyson/framework/extensions/sign-form/class-fw-extension-sign-form.php(123): fw_render_view('/home/careercen...', NULL, true)
#5 /home/###/public_html/wp-content/plugins/unyson/framework/extensions/sign-form/views/form.php(107): FW_Extension_Sign_Form->get_view('form-login', Array)
#6 /home/###/public_html/wp-content/plugins/unyson/framework/helpers/general.php(743): require('/home/careercen...')
#7 /home/###/public_html/wp-content/plugins/unyson/framework/extensions/sign-form/class-fw-extension-sign-form.php(123): fw_render_view('/home/careercen...', NULL, true)
#8 /home/###/public_html/wp-content/plugins/unyson/framework/extensions/sign-form/helpers.php(62): FW_Extension_Sign_Form->get_view('form', Array)
#9 /home/###/public_html/wp-content/themes/olympus/templates/user/popup-sign.php(16): crumina_get_reg_form_html()
#10 /home/###/public_html/wp-includes/template.php(785): require('/home/careercen...')
#11 /home/###/public_html/wp-includes/template.php(718): load_template('/home/careercen...', false, Array)
#12 /home/###/public_html/wp-includes/general-template.php(204): locate_template(Array, true, false, Array)
#13 /home/###/public_html/wp-content/themes/olympus/inc/functions/template-tags.php(518): get_template_part('templates/user/...', 'sign')
#14 /home/###/public_html/wp-includes/class-wp-hook.php(308): olympus_append_login_form_to_html('')
#15 /home/###/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#16 /home/###/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#17 /home/###/public_html/wp-includes/general-template.php(3065): do_action('wp_footer')
#18 /home/###/public_html/wp-content/themes/olympus/footer.php(152): wp_footer()
#19 /home/###/public_html/wp-includes/template.php(783): require_once('/home/careercen...')
#20 /home/###/public_html/wp-includes/template.php(718): load_template('/home/careercen...', true, Array)
#21 /home/###/public_html/wp-includes/general-template.php(92): locate_template(Array, true, true, Array)
#22 /home/###/public_html/wp-content/themes/olympus/page.php(54): get_footer()
#23 /home/###/public_html/wp-includes/template-loader.php(106): include('/home/careercen...')
#24 /home/###/public_html/wp-blog-header.php(19): require_once('/home/careercen...')
#25 /home/###/public_html/index.php(17): require('/home/careercen...')
#26 {main}
thrown in /home/###/public_html/wp-content/plugins/toolset-blocks/embedded/inc/wpv-shortcodes.php on line 864

#2600667

Hi,

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

From the error, I understand there is a compatibility issue arising from the code in the 'Sign-in form extension' used by the 'Unyson' plugin.
( ref: hidden link )

This extension seems to be using the 'login_form_top' filter from WordPress, but with less number of parameters than are expected.
( ref: https://developer.wordpress.org/reference/hooks/login_form_top/ )

And since the Toolset Blocks plugin also uses it, the error is thrown, when you try to activate it.

Can you please test activating the Toolset Blocks, with this extension disabled? If the issue is fixed, you can share these findings with the 'Sign-in form extension' support team for further investigation.

I hope this helps and let me know how it goes.

regards,
Waqar