Support » Plugin: Post State Tags » php error

  • [21-Jul-2021 12:45:17 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Post_State_Tags::manage_post_columns(), 1 passed in /www/doc/www.xxx.org/www/wordpress/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /www/doc/www.xxx.org/www/wordpress/wp-content/plugins/post-state-tags/post-state-tags.php:931
    Stack trace:
    #0 /www/doc/www.xxx.org/www/wordpress/wp-includes/class-wp-hook.php(287): Post_State_Tags->manage_post_columns(Array)
    #1 /www/doc/www.xxx.org/www/wordpress/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
    #2 /www/doc/www.xxx.org/www/wordpress/wp-admin/includes/screen.php(39): apply_filters(‘manage_post_col…’, Array)
    #3 /www/doc/www.xxx.org/www/wordpress/wp-admin/includes/class-wp-screen.php(995): get_column_headers(Object(WP_Screen))
    #4 /www/doc/www.xxx.org/www/wordpress/wp-admin/includes/class-wp-screen.php(956): WP_Screen->show_screen_options()
    #5 /www/doc/www.xxx.org/www/wordpress/wp-admin/admin-header.php(259): WP_Screen->render_screen_meta()
    #6 /www/doc/w in /www/doc/www.xxx.org/www/wordpress/wp-content/plugins/post-state-tags/post-state-tags.php on line 931

    solution
    post-state-tags.php line #931
    public function manage_post_columns( $post_columns, $post_type = ” ) {

Viewing 2 replies - 1 through 2 (of 2 total)
  • I can confirm that this modification does fix the issue I was having with the WP post editor not loading, when this plugin is activated. Please consider updating your plugin with this change.

    Plugin Author John Brand

    (@brandbrilliance)

    I’ve corrected this error.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.