craftcms / element-api

Create a JSON API/Feed for your elements in Craft.
MIT License
498 stars 56 forks source link

Error resolving Element API endpoint after updating to V2.8.6 #170

Closed iwe-hi closed 1 year ago

iwe-hi commented 1 year ago

Description

After updating the plugin to version 2.8.6 there are error 500's on all endpoints. The web log shows the following error:

2022-07-14 12:45:53 [-][3][-][error][craft\elementapi\controllers\DefaultController::actionIndex] Error resolving Element API endpoint: Setting unknown property: craft\elementapi\DataEvent::payload

2022-07-14 12:45:53 [-][3][-][error][yii\base\UnknownPropertyException] yii\base\UnknownPropertyException: Setting unknown property: craft\elementapi\DataEvent::payload in /Users/iw/Dev/Projects/gae/backend/craft/vendor/yiisoft/yii2/base/BaseObject.php:163

This is the same error mentioned in #169 by jorisnoo.

Steps to reproduce

  1. Update plugin to V2.8.6
  2. Fetch an endpoint

Additional info

htownson commented 1 year ago

I am also experiencing this issue.

PHP 7.4.30 Craft Pro 3.7.48 Element API 2.8.6

angrybrad commented 1 year ago

Just released 2.8.6.1 with a fix for this.