rsanchez / json

Output ExpressionEngine data in JSON format.
http://devot-ee.com/add-ons/json/
100 stars 236 forks source link

PHP error with matrix field #18

Closed garabedium closed 11 years ago

garabedium commented 12 years ago

I'm using jSON 1.0.3 for categories support per this thread: https://github.com/rsanchez/json/issues/7.

I'm using a channel with a matrix field. The jSON feed validates, and the errors disappear when you log out of EE, or use a channel without a matrix field.

Template code:

{exp:json:entries channel="songs" show_categories="yes"}

Errors:

A PHP Error was encountered Severity: Notice Message: Trying to get property of non-object Filename: json/pi.json.php Line Number: 282

A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at ....system/codeigniter/system/core/Exceptions.php:170) Filename: core/Common.php Line Number: 405