• Timothy Jacobs

    (@timothyblynjacobs)


    When running a WP-CLI command, I get the following warning.

    Warning: call_user_func() expects parameter 1 to be a valid callback, class 'ClientDash_REST_Customizations_Controller' does not have a method 'get_item_schema' in /sites/amburrito/wp-includes/rest-api/class-wp-rest-server.php on line 1170

Viewing 1 replies (of 1 total)
  • Plugin Author d4mation

    (@d4mation)

    @timothyblynjacobs

    Thank you for pointing this out! I’m going to log this to be fixed for our next release.

    In the meantime, if you comment out 'schema' => array( $this, 'get_item_schema' ), in /core/api/class-clientdash-rest-customizations-controller.php at line 71 that should remedy this. It seems that at some point including a Schema was planned, but was never completed. I’m going to look into adding the Schema.

Viewing 1 replies (of 1 total)
  • The topic ‘Warning during WP-CLI’ is closed to new replies.