I’ve been patiently waiting for a version of X 9.x that doesn’t break the layout of my client https://funnytimes.com – but it’s been a few months now, we’re well into 9.1.x, and I figure it’s past time I post some error stack traces and see if you can help me with a problem I’m guessing might be peculiar to my own special snowflake, rather than a more general “This is happening to lots of sites so let’s resolve it” kind of issue.
The error asserts itself on all sub-pages of the site that use standard layout rather than the (Cornerstone-built) home page, and the stack trace looks like this:
[03-Nov-2021 18:12:47 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Themeco\Theme\Theme::{closure}(), 1 passed in /home/funnyt/public_html/wp-includes/class-wp-hook.php on line 303 and exactly 2 expected in /home/funnyt/public_html/wp-content/themes/x/framework/legacy/setup.php:55
Stack trace:
#0 /home/funnyt/public_html/wp-includes/class-wp-hook.php(303): Themeco\Theme\Theme->{closure}(’<form role="sea…’)
#1 /home/funnyt/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(’<form role="sea…’, Array)
#2 /home/funnyt/public_html/wp-content/plugins/category-wise-search/category-wise-search.php(58): apply_filters(‘get_search_form’, ‘<form role="sea…’)
#3 /home/funnyt/public_html/wp-includes/class-wp-widget.php(393): Category_Wise_Search_Widget->widget(Array, Array)
#4 /home/funnyt/public_html/wp-includes/widgets.php(831): WP_Widget->display_callback(Array, Array)
#5 /home/funnyt/public_html/wp-content/themes/x/framework/views/renew/wp-sidebar.php(15): dynamic_sidebar(‘sidebar-main’)
#6 /home/funnyt/publi in /home/funnyt/public_html/wp-content/themes/x/framework/legacy/setup.php on line 55
The error showed on basically any subpage of the site, although I’ve rolled back to X 8.3.3 so it’s not currently erring.