Site layout breaks under X 9.X.X

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.

Hi @BenjaminBarnett,

Could you try deactivating the category-wise-search plugin? I suspect they might be manipulating the search form in a way that isn’t compatible with changes we made in X and Pro.

If you find that to be the case, you might want to reach out to the plugin developers to have a look at what’s going on there. I checked on our end, and we’re adding a filter to get_search_form but it is done in the way WordPress would expect.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.