@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?
@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
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
@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.wp.xz.cn/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)