[wp-trac] [WordPress Trac] #55777: Undefined index: type in /wp-includes/rest-api.php

WordPress Trac noreply at wordpress.org
Thu May 19 10:02:05 UTC 2022


#55777: Undefined index: type in /wp-includes/rest-api.php
--------------------------+-----------------------------
 Reporter:  Mte90         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:
 Severity:  normal        |   Keywords:
  Focuses:  rest-api      |
--------------------------+-----------------------------
 I am getting this errors in the PHP log but is not clear why they are here
 or why WordPress fails.
 I am getting them on the home page but I think that wordpress should avoid
 the undefined index issue, maybe also the notice for
 `rest_validate_value_from_schema` should inform about the rest that
 generated.

 {{{
 [19-May-2022 09:53:49 UTC] PHP Notice:  Undefined index: type in /wp-
 includes/rest-api.php on line 2095
 [19-May-2022 09:53:49 UTC] PHP Notice:  Undefined index: type in /wp-
 includes/rest-api.php on line 2110
 [19-May-2022 09:53:49 UTC] PHP Notice:  rest_validate_value_from_schema è
 stato richiamato <strong>in maniera scorretta</strong>. La parola chiave
 dello schema "tipo" per stockStatus può contenere solamente i tipi
 predefiniti: array, object, string, number, integer, boolean, e null.
 Leggi <a href="https://wordpress.org/support/article/debugging-in-
 wordpress/">Debugging in WordPress</a> per maggiori informazioni. (Questo
 messaggio è stato aggiunto nella versione 5.5.0.) in /wp-
 includes/functions.php on line 5775
 [19-May-2022 09:53:49 UTC] PHP Notice:  Undefined index: type in /wp-
 includes/rest-api.php on line 2119
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55777>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list