Notices in the wp-json endpoint
-
We updated from 2.4.2 to 2.8.0 and now see the following notices in our wp-json feed:
Warning: Invalid argument supplied for foreach() in /var/www/html/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php on line 557
Warning: Invalid argument supplied for foreach() in /var/www/html/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php on line 557
Warning: Invalid argument supplied for foreach() in /var/www/html/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php on line 557
Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php:557) in /var/www/html/wp-includes/rest-api/class-wp-rest-server.php on line 1337
Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php:557) in /var/www/html/wp-includes/rest-api/class-wp-rest-server.php on line 1337`
This is on WordPress 5.4. Disabling the plugin resolves the issue.
- The topic ‘Notices in the wp-json endpoint’ is closed to new replies.