xiaohutai / jsonapi

[Bolt Extension] JSON API for Bolt CMS
https://market.bolt.cm/view/bolt/jsonapi
MIT License
55 stars 18 forks source link

Call to a member function format() on a non-object #8

Closed AdriaanTV closed 8 years ago

AdriaanTV commented 8 years ago

If you use a field with a date type in your contenttypes.yml, and I access the data through /json/{ct} it throws an error:

There is a fatal error in the 'bolt/jsonapi' extension loaded on your Bolt Installation. Error: Call to a member function format() on a non-object File: extensions/vendor/bolt/jsonapi/Extension.php Line: 992

Possible trouble: in jsonapi.bolt.yml there's value date-iso-8601: true, if I set it to false, the error disappears.

Raistlfiren commented 8 years ago

This should be fixed in the latest update with V3. I am closing this issue, please reopen this if it is still a problem.