• Resolved Charlie L

    (@charlielivingston)


    When I activate this plugin and go to edit a post, I get this error:

    An error of type E_ERROR was caused in line 359 of the file /www//public/wp-content/plugins/revisionary/rvy_init.php. Error message: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed in /www//public/wp-includes/class-wp-hook.php on line 292 and exactly 2 expected in /www//public/wp-content/plugins/revisionary/rvy_init.php:359
    Stack trace:
    #0 /www//public/wp-includes/class-wp-hook.php(292): {closure}(Array)
    #1 /www//public/wp-includes/plugin.php(212): WP_Hook->apply_filters(Array, Array)
    #2 /www//public/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php(589): apply_filters('rest_themes_col...', Array)
    #3 /www//public/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php(45): WP_REST_Themes_Controller->get_collection_params()
    #4 /www//public/wp-includes/rest-api.php(310): WP_REST_Themes_Controller->register_routes()
    #5 /www//public/wp-includes/class-wp-hook.php(292): create_initial_rest_routes(Object(WP_REST_Server))
    #6 /www//public/wp-inclu
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Kevin Behrens

    (@kevinb)

    @charlielivingston What version of Revisions are you running? That line number does not match up to a function call in the current release.

    Please also try to paste a complete stack trace. This one is cut off in the middle of line 6.

    Thread Starter Charlie L

    (@charlielivingston)

    Running 2.5.3

    I can’t seem to provoke WP to send me another email with error details, even though I get the error whenever I try to open a post.

    Thread Starter Charlie L

    (@charlielivingston)

    So is there any way we can debug this or?

    Plugin Author Kevin Behrens

    (@kevinb)

    @charlielivingston You should look into configuring PHP error logging on that site, instead of relying on an email function:

    https://www.a2hosting.com/kb/developer-corner/php/using-php.ini-directives/php-error-log

    Plugin Author Steve Burge

    (@stevejburge)

    Hi @charlielivingston

    If you’re having difficulty getting the error message, this guide can help: https://publishpress.com/knowledge-base/solve-errors-plugins/

    Thread Starter Charlie L

    (@charlielivingston)

    I did some more work on this and now have this error message:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed in /www/athemesnewgc_726/public/wp-includes/class-wp-hook.php on line 292 and exactly 2 expected in /www/athemesnewgc_726/public/wp-content/plugins/revisionary/rvy_init.php:361 Stack trace: #0 /www/athemesnewgc_726/public/wp-includes/class-wp-hook.php(292): {closure}(Array) #1 /www/athemesnewgc_726/public/wp-includes/plugin.php(212): WP_Hook->apply_filters(Array, Array) #2 /www/athemesnewgc_726/public/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php(589): apply_filters('rest_themes_col...', Array) #3 /www/athemesnewgc_726/public/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php(45): WP_REST_Themes_Controller->get_collection_params() #4 /www/athemesnewgc_726/public/wp-includes/rest-api.php(310): WP_REST_Themes_Controller->register_routes() #5 /www/athemesnewgc_726/public/wp-includes/class-wp-hook.php(292): create_initial_rest_routes(Object(WP_REST_Server)) #6 /www/athemesnewgc_726/public/wp-inclu in /www/athemesnewgc_726/public/wp-content/plugins/revisionary/rvy_init.php on line 361

    Plugin Author Kevin Behrens

    (@kevinb)

    @charlielivingston Please find a workaround for this issue in the newly updated development version (2.5.5-beta). This change will also be included in the next release.

    https://downloads.wordpress.org/plugin/revisionary.zip

    • Fixed : Fatal error in post editor on sites that apply filter “rest_{$post_type}_collection_params” incorrectly (Uncaught ArgumentCountError: Too few arguments to function)
Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Error’ is closed to new replies.