Discord Fixed API result rules not defined by NF\Discord:SyncLog. Override setupApiResultData()

Affected add-on version
2.7.5
A few people (myself included) have already reportedf this on the Xenforo Community Forums, but I figured it might be best to put it here as well.

Here's an example of the error as it's impacting me. I've noticed the stack traces posted by other users on the Xenforo Community Forums were a little different (theirs only had 13 lines), though I'm not sure about the reason for that.

Code:
LogicException: API result rules not defined by NF\Discord:SyncLog. Override setupApiResultData().src/XF/Mvc/Entity/Entity.php:565           

#0 src/XF/Mvc/Entity/Entity.php(542): XF\Mvc\Entity\Entity->setupApiResultData(Object(XF\Api\Result\EntityResult), 1, Array)
#1 src/XF/Api/Result/EntityResult.php(192): XF\Mvc\Entity\Entity->toApiResult(1, Array)
#2 src/XF/Api/Result/EntityResult.php(162): XF\Api\Result\EntityResult->castToFinalValue(Object(NF\Discord\Entity\SyncLog), 1, Array)
#3 src/XF/Api/Result/EntityResult.php(201): XF\Api\Result\EntityResult->render()
#4 src/XF/Api/Result/EntityResult.php(162): XF\Api\Result\EntityResult->castToFinalValue(Object(XF\Api\Result\EntityResult), 1, Array)
#5 src/XF/Api/Result/EntityResults.php(120): XF\Api\Result\EntityResult->render()
#6 src/XF/Api/Mvc/Renderer/Api.php(129): XF\Api\Result\EntityResults->render()
#7 src/XF/Api/Mvc/Renderer/Api.php(111): XF\Api\Mvc\Renderer\Api->renderApiResultInternal(Array)
#8 src/XF/Api/Mvc/Dispatcher.php(73): XF\Api\Mvc\Renderer\Api->renderApiResult(Object(XF\Api\Result\ArrayResult))
#9 src/XF/Mvc/Dispatcher.php(402): XF\Api\Mvc\Dispatcher->renderReply(Object(XF\Api\Mvc\Renderer\Api), Object(XF\Api\Mvc\Reply\ApiResult))
#10 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Api\Mvc\Reply\ApiResult), 'api')
#11 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#12 src/XF.php(524): XF\App->run()
#13 index.php(16): XF::runApp('XF\\Api\\App')
#14 {main}
 
Back
Top