Title: PHP Error &#8211; rest_validate_value_from_schema was called incorrectly
Last modified: September 2, 2020

---

# PHP Error – rest_validate_value_from_schema was called incorrectly

 *  [Salpetriere](https://wordpress.org/support/users/salpetriere/)
 * (@salpetriere)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-error-rest_validate_value_from_schema-was-called-incorrectly/)
 * With wp_debug set to true we are receiving the following php error on the front
   end of our website when logged in.
 * `rest_validate_value_from_schema was called incorrectly. The "type" schema keyword
   for can only be one of the built-in types: array, object, string, number, integer,
   boolean, and null. Please see "Debugging in WordPress" for more information. (
   This message was added in version 5.5.0.)`
 * Can this be resolved?

The topic ‘PHP Error – rest_validate_value_from_schema was called incorrectly’ is
closed to new replies.

 * ![](https://ps.w.org/post-type-archive-mapping/assets/icon-256x256.png?rev=2474112)
 * [Custom Query Blocks](https://wordpress.org/plugins/post-type-archive-mapping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-type-archive-mapping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-type-archive-mapping/)
 * [Active Topics](https://wordpress.org/support/plugin/post-type-archive-mapping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-type-archive-mapping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-type-archive-mapping/reviews/)

## Tags

 * [cpt](https://wordpress.org/support/topic-tag/cpt/)
 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 0 replies
 * 1 participant
 * Last reply from: [Salpetriere](https://wordpress.org/support/users/salpetriere/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/php-error-rest_validate_value_from_schema-was-called-incorrectly/)
 * Status: not resolved