• With WP 5.9.3 and forms-gutenberg 2.2.8.1, listing the available plugins (wp-cli plugin list) leads to this Fatal error:

    PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function cwp_gf_Entries_Controller::get_bar_entries_schema(), 0 passed in WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1457 and exactly 1 expected in /web/app/plugins/forms-gutenberg/controllers/entries/entries.controller.php:185
    Stack trace:
    #0 WordPress/wp-includes/rest-api/class-wp-rest-server.php(1457): cwp_gf_Entries_Controller->get_bar_entries_schema()
    #1 WordPress/wp-includes/rest-api/class-wp-rest-server.php(1398): WP_REST_Server->get_data_for_route()
    #2 WordPress/wp-includes/rest-api/class-wp-rest-server.php(1227): WP_REST_Server->get_data_for_routes()
    #3 WordPress/wp-includes/rest-api/class-wp-rest-server.php(1143): WP_REST_Server->get_index()
    #4 WordPress/wp-includes/rest-api/class-wp-rest-server.php(990): WP_REST_Server->respond_to_request()
    #5 /home/yug/.wp-cli in /web/app/plugins/forms-gutenberg/controllers/entries/entries.controller.php on line 185
    Fatal error: Uncaught ArgumentCountError: Too few arguments to function cwp_gf_Entries_Controller::get_bar_entries_schema(), 0 passed in WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1457 and exactly 1 expected in /web/app/plugins/forms-gutenberg/controllers/entries/entries.controller.php:185
    Stack trace:
    #0 WordPress/wp-includes/rest-api/class-wp-rest-server.php(1457): cwp_gf_Entries_Controller->get_bar_entries_schema()
    #1 WordPress/wp-includes/rest-api/class-wp-rest-server.php(1398): WP_REST_Server->get_data_for_route()
    #2 WordPress/wp-includes/rest-api/class-wp-rest-server.php(1227): WP_REST_Server->get_data_for_routes()
    #3 WordPress/wp-includes/rest-api/class-wp-rest-server.php(1143): WP_REST_Server->get_index()
    #4 WordPress/wp-includes/rest-api/class-wp-rest-server.php(990): WP_REST_Server->respond_to_request()
    #5 /home/yug/.wp-cli in /web/app/plugins/forms-gutenberg/controllers/entries/entries.controller.php on line 185
  • The topic ‘ArgumentCountError, FatalError’ is closed to new replies.