Title: Error
Last modified: April 30, 2021

---

# Error

 *  Resolved [Charlie L](https://wordpress.org/support/users/charlielivingston/)
 * (@charlielivingston)
 * [5 years ago](https://wordpress.org/support/topic/error-1523/)
 * 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](https://wordpress.org/support/users/kevinb/)
 * (@kevinb)
 * [5 years ago](https://wordpress.org/support/topic/error-1523/#post-14386170)
 * [@charlielivingston](https://wordpress.org/support/users/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](https://wordpress.org/support/users/charlielivingston/)
 * (@charlielivingston)
 * [5 years ago](https://wordpress.org/support/topic/error-1523/#post-14387135)
 * 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](https://wordpress.org/support/users/charlielivingston/)
 * (@charlielivingston)
 * [5 years ago](https://wordpress.org/support/topic/error-1523/#post-14397744)
 * So is there any way we can debug this or?
 *  Plugin Author [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * (@kevinb)
 * [5 years ago](https://wordpress.org/support/topic/error-1523/#post-14398531)
 * [@charlielivingston](https://wordpress.org/support/users/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](https://www.a2hosting.com/kb/developer-corner/php/using-php.ini-directives/php-error-log)
 *  Plugin Author [Steve Burge](https://wordpress.org/support/users/stevejburge/)
 * (@stevejburge)
 * [5 years ago](https://wordpress.org/support/topic/error-1523/#post-14398534)
 * Hi [@charlielivingston](https://wordpress.org/support/users/charlielivingston/)
 * If you’re having difficulty getting the error message, this guide can help: [https://publishpress.com/knowledge-base/solve-errors-plugins/](https://publishpress.com/knowledge-base/solve-errors-plugins/)
 *  Thread Starter [Charlie L](https://wordpress.org/support/users/charlielivingston/)
 * (@charlielivingston)
 * [5 years ago](https://wordpress.org/support/topic/error-1523/#post-14425808)
 * 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](https://wordpress.org/support/users/kevinb/)
 * (@kevinb)
 * [5 years ago](https://wordpress.org/support/topic/error-1523/#post-14426968)
 * [@charlielivingston](https://wordpress.org/support/users/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](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.

 * ![](https://ps.w.org/revisionary/assets/icon-256x256.png?rev=3394615)
 * [PublishPress Revisions: Duplicate Posts, Submit, Approve and Schedule Content Changes](https://wordpress.org/plugins/revisionary/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/revisionary/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/revisionary/)
 * [Active Topics](https://wordpress.org/support/plugin/revisionary/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/revisionary/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/revisionary/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/error-1523/#post-14426968)
 * Status: resolved