[FIXED] ErrorException: [E_NOTICE] Undefined index: category_id src/addons/Truonglv/Api/XFRM/Entity/Category.php:17

GameNet

Member
I am receiving number of errors in adminCP Servers logs

error code:
Code:
ErrorException: [E_NOTICE] Undefined index: category_id src/addons/Truonglv/Api/XFRM/Entity/Category.php:17
Generated by: Unknown account Sep 21, 2022 at 7:24 PM
Stack trace
#0 src/addons/Truonglv/Api/XFRM/Entity/Category.php(17): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/thkw8765/...', 17, Array)
#1 src/XF/Mvc/Entity/Entity.php(542): Truonglv\Api\XFRM\Entity\Category->setupApiResultData(Object(XF\Api\Result\EntityResult), 1, Array)
#2 src/XF/Api/Result/EntityResult.php(192): XF\Mvc\Entity\Entity->toApiResult(1, Array)
#3 src/XF/Api/Result/EntityResult.php(162): XF\Api\Result\EntityResult->castToFinalValue(Object(XFA\RMMarketplace\XFRM\Entity\Category), 1, Array)
#4 src/XF/Api/Mvc/Renderer/Api.php(129): XF\Api\Result\EntityResult->render()
#5 src/XF/Api/Mvc/Renderer/Api.php(111): XF\Api\Mvc\Renderer\Api->renderApiResultInternal(Array)
#6 src/XF/Api/Mvc/Dispatcher.php(73): XF\Api\Mvc\Renderer\Api->renderApiResult(Object(XF\Api\Result\ArrayResult))
#7 src/XF/Mvc/Dispatcher.php(402): XF\Api\Mvc\Dispatcher->renderReply(Object(Truonglv\Api\XF\Api\Mvc\Renderer\Api), Object(XF\Api\Mvc\Reply\ApiResult))
#8 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Api\Mvc\Reply\ApiResult), 'api')
#9 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#10 src/XF.php(524): XF\App->run()
#11 index.php(16): XF::runApp('XF\\Api\\App')
#12 {main}
Request state
array(4) {
  ["url"] => string(18) "/api/resources/330"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 

Attachments

  • 83C3C180-325B-4C7B-A62A-679B619EEDF1.webp
    83C3C180-325B-4C7B-A62A-679B619EEDF1.webp
    196.9 KB · Views: 154
  • BD7EF8A8-B9BF-4B74-BB5F-630923EA0BB9.webp
    BD7EF8A8-B9BF-4B74-BB5F-630923EA0BB9.webp
    142.6 KB · Views: 6
Top