[wp-trac] [WordPress Trac] #39293: WordPress REST API warnings
WordPress Trac
noreply at wordpress.org
Thu Dec 15 10:21:33 UTC 2016
#39293: WordPress REST API warnings
--------------------------+-----------------------------
Reporter: dreamon11 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7
Severity: normal | Keywords:
Focuses: rest-api |
--------------------------+-----------------------------
Hello everybody,
A simple get request to wp-json/wp/v2/posts (or anything get request) give
me these warnings:
{{{
( ! ) Warning: array_values() expects parameter 1 to be array, null given
in /srv/www/lecrabeinfo.fr/current/web/wp/wp-includes/rest-api/endpoints
/class-wp-rest-posts-controller.php on line 1925
( ! ) Warning: array_merge(): Argument #2 is not an array in
/srv/www/xxx.fr/current/web/wp/wp-includes/rest-api/endpoints/class-wp-
rest-posts-controller.php on line 1925
( ! ) Warning: array_values() expects parameter 1 to be array, null given
in /srv/www/xxx.fr/current/web/wp/wp-includes/rest-api/endpoints/class-wp-
rest-posts-controller.php on line 1925
( ! ) Warning: array_merge(): Argument #2 is not an array in
/srv/www/xxx.fr/current/web/wp/wp-includes/rest-api/endpoints/class-wp-
rest-posts-controller.php on line 1925
( ! ) Warning: array_values() expects parameter 1 to be array, null given
in /srv/www/xxx.fr/current/web/wp/wp-includes/rest-api/endpoints/class-wp-
rest-posts-controller.php on line 1925
( ! ) Warning: Cannot modify header information - headers already sent by
(output started at /srv/www/xxx.fr/current/web/wp/wp-includes/rest-
api/endpoints/class-wp-rest-posts-controller.php:1925) in
/srv/www/xxx.fr/current/web/wp/wp-includes/rest-api/class-wp-rest-
server.php on line 1244
}}}
At the end, expected result is here but warnings prevent software whichi
make get request to retrieve it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39293>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list