Too few arguments to function Classic_Editor::add_post_state()
-
There’s a conflict with the Scripts n Styles plugin, but I’m not sure which plugin is responsible between that and Classic Editor.
When viewing the “Usage” tab in Scripts n Styles, which would show posts that use the Scripts n Styles plugin, the page fails to load due to a php error related to Classic Editor:
An error of type E_ERROR was caused in line 880 of the file [root]/wp-content/plugins/classic-editor/classic-editor.php. Error message: Uncaught ArgumentCountError: Too few arguments to function Classic_Editor::add_post_state(), 1 passed in [root]/wp-includes/class-wp-hook.php on line 341 and exactly 2 expected in [root]/wp-content/plugins/classic-editor/classic-editor.php:880
Stack trace:
#0 [root]/wp-includes/class-wp-hook.php(341): Classic_Editor::add_post_state(Array)
#1 [root]/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#2 [root]/wp-content/plugins/scripts-n-styles/includes/class-sns-list-usage.php(144): apply_filters('display_post_st...', Array)
#3 [root]/wp-content/plugins/scripts-n-styles/includes/class-sns-list-usage.php(66): SnS_List_Usage->_post_states(Object(WP_Post))
#4 [root]/wp-admin/includes/class-wp-list-table.php(1796): SnS_List_Usage->column_title(Object(WP_Post))
#5 [root]/wp-admin/includes/class-wp-list-table.php(1739): WP_List_Table->single_row_columns(Object(WP_Post))
#6 [root]/wp-admin/includes/class-wp-list-table.php(1726): WP_List_Table->single_row(Object(WP_Post))
#7 [root]/wp-admin/includes/class-wp-list-table.php(1711): WP_List_Table->display_rows()
#8 [root]/wp-admin/includes/class-wp-list-table.php(1635): WP_List_Table->display_rows_or_placeholder()
#9 [root]/wp-content/plugins/scripts-n-styles/includes/class-sns-usage-page.php(87): WP_List_Table->display()
#10 [root]/wp-admin/includes/template.php(1782): SnS_Usage_Page::usage_section(Array)
#11 [root]/wp-content/plugins/scripts-n-styles/includes/class-sns-form.php(179): do_settings_sections('sns')
#12 [root]/wp-includes/class-wp-hook.php(341): SnS_Form::page('')
#13 [root]/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters('', Array)
#14 [root]/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#15 [root]/wp-admin/admin.php(264): do_action('tools_page_sns_...')
#16 [root]/wp-admin/tools.php(40): require_once('[root]/...')
#17 {main}
thrown
You must be logged in to reply to this topic.
