Fixed TypeError: Argument 1 passed to XF\Repository\User::getUsersByNames() must be of the type array

Affected version
2.0.2

gotski

Active member
#1
  • TypeError: Argument 1 passed to XF\Repository\User::getUsersByNames() must be of the type array, null given, called in /var/www/ftp0/data/www/domainname.net/src/addons/XFMG/Service/Album/SharedUserManager.php on line 47
  • src/XF/Repository/User.php:207


Stack trace
#0 src/addons/XFMG/Service/Album/SharedUserManager.php(47): XF\Repository\User->getUsersByNames(NULL, NULL, Array)
#1 src/addons/XFMG/Service/Album/SharedUserManager.php(29): XFMG\Service\Album\SharedUserManager->prepareUsers(NULL)
#2 src/XF/Container.php(276): XFMG\Service\Album\SharedUserManager->__construct(Object(XF\Pub\App), Object(XFMG\Entity\Album), NULL, 'add')
#3 src/XF/App.php(1322): XF\Container->createObject('XFMG\\Service\\Al...', Array)
#4 src/XF/Container.php(228): XF\App->XF\{closure}('XFMG\\Service\\Al...', Array, Object(XF\Container))
#5 src/XF/App.php(2466): XF\Container->create('service', 'XFMG:Album\\Shar...', Array)
#6 [internal function]: XF\App->service('XFMG:Album\\Shar...', Object(XFMG\Entity\Album), NULL, 'add')
#7 src/XF/Service/AbstractService.php(77): call_user_func_array(Array, Array)
#8 src/addons/XFMG/Service/Album/Editor.php(118): XF\Service\AbstractService->service('XFMG:Album\\Shar...', Object(XFMG\Entity\Album), NULL, 'add')
#9 src/XF/Service/ValidateAndSavableTrait.php(40): XFMG\Service\Album\Editor->_save()
#10 src/addons/XFMG/InlineMod/Album/ChangePrivacy.php(44): XFMG\Service\Album\Editor->save()
#11 src/XF/InlineMod/AbstractAction.php(87): XFMG\InlineMod\Album\ChangePrivacy->applyToEntity(Object(XFMG\Entity\Album), Array)
#12 src/XF/InlineMod/AbstractAction.php(80): XF\InlineMod\AbstractAction->applyInternal(Object(XF\Mvc\Entity\ArrayCollection), Array)
#13 src/XF/Pub/Controller/InlineMod.php(131): XF\InlineMod\AbstractAction->apply(Object(XF\Mvc\Entity\ArrayCollection), Array)
#14 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\InlineMod->actionPerform(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:InlineMod', 'Perform', 'json', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\InlineMod), Object(XF\Mvc\Reply\Reroute))
#16 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#17 src/XF/App.php(1889): XF\Mvc\Dispatcher->run()
#18 src/XF.php(328): XF\App->run()
#19 index.php(13): XF::runApp('XF\\Pub\\App')
#20 {main}
 
Top