Hi, I recently updated all my plugins and theme on my site and when the WP Widget is activated, I am getting frontend display issues and this error below in the logs.
03-Apr-2024 20:24:30 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed in /home/concretesealer/public_html/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /home/concretesealer/public_html/wp-content/themes/soledad/inc/template-function.php:1115
Stack trace:
#0 /home/concretesealer/public_html/wp-includes/class-wp-hook.php(324): {closure}('Best Brick Pave...')
#1 /home/concretesealer/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('Best Brick Pave...', Array)
#2 /home/concretesealer/public_html/wp-content/plugins/wpdiscuz-widgets/tabs/popular-post-by-comment.php(51): apply_filters('the_title', 'Best Brick Pave...')
#3 /home/concretesealer/public_html/wp-content/plugins/wpdiscuz-widgets/wpdiscuz-widgets-class.php(447): include('/home/concretes...')
#4 /home/concretesealer/public_html/wp-includes/class-wp-widget.php(394): wpDiscuzWidgetsClass->widget(Array, Array)
#5 /home/concretesealer/public_html/wp-includes/widgets.php(837): WP_Widget->display_callback(Array, Array)
#6 /home/concretesealer/public_html/wp-content/themes/soledad/sidebar.php(98): dynamic_sidebar('main-sidebar')
#7 /home/concretesealer/public_html/wp-includes/template.php(790): require_once('/home/concretes...')
#8 /home/concretesealer/public_html/wp-includes/template.php(725): load_template('/home/concretes...', true, Array)
#9 /home/concretesealer/public_html/wp-includes/general-template.php(136): locate_template(Array, true, true, Array)
#10 /home/concretesealer/public_html/wp-content/themes/soledad/template-parts/single-sidebar.php(18): get_sidebar()
#11 /home/concretesealer/public_html/wp-includes/template.php(792): require('/home/concretes...')
#12 /home/concretesealer/public_html/wp-includes/template.php(725): load_template('/home/concretes...', false, Array)
#13 /home/concretesealer/public_html/wp-includes/general-template.php(206): locate_template(Array, true, false, Array)
#14 /home/concretesealer/public_html/wp-content/themes/soledad/single.php(166): get_template_part('template-parts/...', 'sidebar')
#15 /home/concretesealer/public_html/wp-includes/template-loader.php(106): include('/home/concretes...')
#16 /home/concretesealer/public_html/wp-blog-header.php(19): require_once('/home/concretes...')
#17 /home/concretesealer/public_html/index.php(17): require('/home/concretes...')
#18 {main}