Hello all!
I am having a bit of a problem when creating webhooks. I get the following error:
This occurs when I attempt to add any media to any album and this ONLY occurs when creating a webhook.
If I delete the webhook, I can add media with no problem.
For clarity, the webhook receiver is an addon from XFtoWP and BEFORE I submit a request to the dev of the add-on, I wanted to see if anyone else has received a similar issue.
Thanks in advance!
I am having a bit of a problem when creating webhooks. I get the following error:
Code:
Server error log
ErrorException: [E_WARNING] Attempt to read property "file_size" on null src/addons/XFMG/Entity/MediaItem.php:1746
Generated by: Nitorium Nov 20, 2025 at 14:59
Stack trace
#0 src/addons/XFMG/Entity/MediaItem.php(1746): XF::handlePhpError(2, '[E_WARNING] Att...', '/var/www/vhosts...', 1746)
#1 src/XF/Mvc/Entity/Entity.php(588): XFMG\Entity\MediaItem->setupApiResultData(Object(XF\Api\Result\EntityResult), 1, Array)
#2 src/XF/Repository/WebhookRepository.php(113): XF\Mvc\Entity\Entity->toWebhookResult()
#3 src/XF/Behavior/Webhook.php(34): XF\Repository\WebhookRepository->queueWebhook('xfmg_media', 8306, 'insert', Object(DBTech\SocialGroups\XFMG\Entity\MediaItem))
#4 src/XF/Mvc/Entity/Entity.php(1333): XF\Behavior\Webhook->postSave()
#5 src/addons/XFMG/Service/Media/Creator.php(273): XF\Mvc\Entity\Entity->save()
#6 src/XF/Service/ValidateAndSavableTrait.php(42): XFMG\Service\Media\Creator->_save()
#7 src/addons/XFMG/Pub/Controller/Media.php(935): XFMG\Service\Media\Creator->save()
#8 src/XF/Mvc/Dispatcher.php(362): XFMG\Pub\Controller\Media->actionSaveMedia(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XFMG:Media', 'SaveMedia', Object(XF\Mvc\RouteMatch), Object(DBTech\SocialGroups\XFMG\Pub\Controller\Media), NULL)
#10 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(DBTech\SocialGroups\XFMG\Pub\Controller\Media), NULL)
#11 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2824): XF\Mvc\Dispatcher->run()
#13 src/XF.php(806): XF\App->run()
#14 index.php(23): XF::runApp('XF\\Pub\\App')
#15 {main}
This occurs when I attempt to add any media to any album and this ONLY occurs when creating a webhook.
If I delete the webhook, I can add media with no problem.
For clarity, the webhook receiver is an addon from XFtoWP and BEFORE I submit a request to the dev of the add-on, I wanted to see if anyone else has received a similar issue.
Thanks in advance!