I am using wordpress 4.6 with WP REST API Controller 1.2 and got the same warning:
<br />
<b>Warning</b>: Creating default object from empty value in <b>/home/procu079/public_html/lojas/wp-content/plugins/wp-rest-api-controller/includes/class-wp-rest-api-controller.php</b> on line <b>268</b><br />
<br />
<b>Warning</b>: Cannot modify header information – headers already sent by (output started at /home/procu079/public_html/lojas/wp-content/plugins/wp-rest-api-controller/includes/class-wp-rest-api-controller.php:268) in <b>/home/procu079/public_html/lojas/wp-includes/rest-api/class-wp-rest-server.php</b> on line <b>1196</b><br />
<br />
<b>Warning</b>: Cannot modify header information – headers already sent by (output started at /home/procu079/public_html/lojas/wp-content/plugins/wp-rest-api-controller/includes/class-wp-rest-api-controller.php:268) in <b>/home/procu079/public_html/lojas/wp-includes/rest-api/class-wp-rest-server.php</b> on line <b>1196</b><br />
<br />
Hello @alexsandro86 & @gianlucadelgobbo,
Thank you for letting us know! We’ve updated the plugin to address this specific issue. You can now download the new version (1.2.1).
Please let us know if any other problems arise; we care.
I am closing this ticket.
Cheers,
Kevin.
Hi I am using 4.6.1 WP and 1.2.1 WP REST API Controller, getting this on any wp api v2 endpoint: `<b>Notice</b>: Undefined index: meta_data in
<b>/web/app/plugins/wp-rest-api-controller/includes/class-wp-rest-api-controller.php</b> on line
<b>295</b>
<br />
<br />
<b>Warning</b>: Cannot modify header information – headers already sent by (output started at /web/app/plugins/wp-rest-api-controller/includes/class-wp-rest-api-controller.php:295) in
<b>/web/wp/wp-includes/rest-api/class-wp-rest-server.php</b> on line
<b>1196</b>`
-
This reply was modified 9 years, 7 months ago by
DenisPopov.
-
This reply was modified 9 years, 7 months ago by
DenisPopov.
Hi Denis,
Thanks for the information. We’ll update this in our next release.
Kevin.