TypeError: XF\Mvc\Entity\AbstractCollection::toWebhookResults(): Argument #1 ($options) must be of type array, int given, called in /src/XF/Api/Result

GameNet

Active member
Affected version
XFRM 2.3.4 & XF 2.3.4
Hi

I am receiving numerous numbers of errors in my adminCP related to active webhook feature. I have tried to disable all add-ons and the error still appear

also the error didn't appear when I did the scenario test

Here my current setup:
Safari Screenshot 2024-11-17 15.26.38.webp

error code:
Code:
TypeError: XF\Mvc\Entity\AbstractCollection::toWebhookResults(): Argument #1 ($options) must be of type array, int given, called in /home/citiesmods/tyleraustins.com/src/XF/Api/Result/EntityResult.php on line 226 src/XF/Mvc/Entity/AbstractCollection.php:72
Generated by: TylerAustin Nov 17, 2024 at 3:19 PM
Stack trace
#0 src/XF/Api/Result/EntityResult.php(226): XF\Mvc\Entity\AbstractCollection->toWebhookResults(1, Array)
#1 src/XF/Api/Result/EntityResult.php(174): XF\Api\Result\EntityResult->castToFinalValue(Object(XF\Mvc\Entity\ArrayCollection), 1, Array)
#2 src/XF/Repository/WebhookRepository.php(113): XF\Api\Result\EntityResult->render()
#3 src/XF/Behavior/Webhook.php(34): XF\Repository\WebhookRepository->queueWebhook('resource_update', 143, 'update', Object(XFRM\Entity\ResourceUpdate))
#4 src/XF/Mvc/Entity/Entity.php(1327): XF\Behavior\Webhook->postSave()
#5 src/XF/Mvc/Entity/Entity.php(1318): XF\Mvc\Entity\Entity->save(true, false)
#6 src/XF/Tag/AbstractHandler.php(44): XF\Mvc\Entity\Entity->save()
#7 src/XF/Repository/TagRepository.php(406): XF\Tag\AbstractHandler->updateContentTagCache(Object(XFRM\Entity\ResourceItem), Array)
#8 src/XF/Service/Tag/ChangerService.php(326): XF\Repository\TagRepository->modifyContentTags('resource', 54, Array, Array)
#9 src/addons/XFRM/Service/ResourceItem/Create.php(317): XF\Service\Tag\ChangerService->save(true)
#10 src/XF/Service/ValidateAndSavableTrait.php(42): XFRM\Service\ResourceItem\Create->_save()
#11 src/addons/XFRM/Pub/Controller/Category.php(277): XFRM\Service\ResourceItem\Create->save()
#12 src/XF/Mvc/Dispatcher.php(362): XFRM\Pub\Controller\Category->actionAdd(Object(XF\Mvc\ParameterBag))
#13 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XFRM:Category', 'Add', Object(XF\Mvc\RouteMatch), Object(XFRM\Pub\Controller\Category), NULL)
#14 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFRM\Pub\Controller\Category), NULL)
#15 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#16 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#17 src/XF.php(806): XF\App->run()
#18 index.php(23): XF::runApp('XF\\Pub\\App')
#19 {main}
Request state
array(4) {
  ["url"] => string(49) "/resources/categories/new-applications-2-x.24/add"
  ["referrer"] => string(73) "https://tyleraustins.com/resources/categories/new-applications-2-x.24/add"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(18) {
    ["_xfToken"] => string(8) "********"
    ["prefix_id"] => string(1) "2"
    ["title"] => string(6) "Test 3"
    ["tag_line"] => string(52) "This is a test to make sure everything is working ok"
    ["resource_type"] => string(14) "download_local"
    ["version_attachment_hash"] => string(32) "6ae1857fcd62e7c5721c44314f47d414"
    ["version_attachment_hash_combined"] => string(107) "{"type":"resource_version","context":{"resource_category_id":24},"hash":"6ae1857fcd62e7c5721c44314f47d414"}"
    ["version_string"] => string(4) "v1.2"
    ["custom_fields"] => array(8) {
      ["xfrm_xf2_versions"] => array(1) {
        [0] => string(2) "04"
      }
      ["xf_additional_requirement"] => string(0) ""
      ["xfrm_license"] => string(2) "01"
      ["xf_visible_branding"] => string(2) "01"
      ["InstallationUsageProxy"] => string(0) ""
      ["xf_github_repo"] => string(0) ""
      ["xfrm_faq_html"] => string(0) ""
      ["xfrm_howtoinstall_html"] => string(0) ""
    }
    ["description_html"] => string(251) "<p>This is a test to make sure everything is working ok</p><p><br></p><p><strong>screenshot:<br></strong><img src="/attachments/1730610119487-webp.669/?hash=4bf24c374046ac863a44b3cbb654e3e4" data-attachment="full:669" alt="" class="fr-fic fr-dii"></p>"
    ["attachment_hash"] => string(32) "4bf24c374046ac863a44b3cbb654e3e4"
    ["attachment_hash_combined"] => string(106) "{"type":"resource_update","context":{"resource_category_id":24},"hash":"4bf24c374046ac863a44b3cbb654e3e4"}"
    ["tags"] => string(0) ""
    ["external_url"] => string(0) ""
    ["icon_action"] => string(6) "custom"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(49) "/resources/categories/new-applications-2-x.24/add"
  }
}
 
Back
Top Bottom