• Resolved lfuji

    (@lfuji)


    Hello,
    I received an email notification of an error originating from this plugin.

    WordPress version: 5.8.3
    Plugin Version: 4.3

    Details:

    エラータイプ E_ERROR が /wp-content/plugins/duplicate-post/src/ui/post-states.php ファイルの 47 行目で発生しました。 エラーメッセージ: Uncaught ArgumentCountError: Too few arguments to function Yoast\WP\Duplicate_Post\UI\Post_States::show_original_in_post_states(), 1 passed in /wp-includes/class-wp-hook.php on line 303 and exactly 2 expected in /wp-content/plugins/duplicate-post/src/ui/post-states.php:47
    Stack trace:
    #0 /wp-includes/class-wp-hook.php(303): Yoast\WP\Duplicate_Post\UI\Post_States->show_original_in_post_states(Array)
    #1 /wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array)
    #2 /wp-content/plugins/scripts-n-styles/includes/class-sns-list-usage.php(144): apply_filters('display_post_st...', Array)
    #3 /wp-content/plugins/scripts-n-styles/includes/class-sns-list-usage.php(66): SnS_List_Usage->_post_states(Object(WP_Post))
    #4 /wp-admin/includes/class-wp-list-table.php(1447): SnS_List_Usage->colu

    That’s where it cuts off in the e-mail but if you need the whole trace I can get it from the error log.
    So far the site doesn’t seem to be adversely affected but I am concerned.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Enrico Battocchi

    (@lopo)

    Hi @lfuji,
    we’re sorry to hear that.
    From what we can understand by reading the log, it seems that the Script n Styles plugin is calling the display_post_states hook without providing the $post parameter, as it’s done by WordPress itself since version 3.6.0 and as expected from our plugin.
    We see that the Script n Styles plugin hasn’t been updated in the last three years and hasn’t been tested with the latest versions of WordPress. We’d recommend to switch to an alternative which is actively maintained.

    Thread Starter lfuji

    (@lfuji)

    Thank you very much for your swift response!
    I’ll see if we can find an alternative.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncaught ArgumentCountError: Too few arguments to function’ is closed to new replies.