Fixed Invalid target album for URL

Affected version
2

gotski

Active member
#1
InvalidArgumentException: Invalid target album for URL. src/addons/XFMG/InlineMod/Media/Move.php:279
Generated by: Member Dec 11, 2017 at 11:30 AM
Stack trace
#0 src/addons/XFMG/InlineMod/Media/Move.php(76): XFMG\InlineMod\Media\Move->getTargetAlbum(Array)
#1 src/XF/InlineMod/AbstractAction.php(57): XFMG\InlineMod\Media\Move->canApplyInternal(Object(XF\Mvc\Entity\ArrayCollection), Array, NULL)
#2 src/XF/Pub/Controller/InlineMod.php(111): XF\InlineMod\AbstractAction->canApply(Object(XF\Mvc\Entity\ArrayCollection), Array, NULL)
#3 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\InlineMod->actionPerform(Object(XF\Mvc\ParameterBag))
#4 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))
#5 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#7 src/XF.php(328): XF\App->run()
#8 index.php(13): XF::runApp('XF\\Pub\\App')
#9 {main}
Request state
array(4) {
["url"] => string(12) "/inline-mod/"
["referrer"] => string(56) "https://www.sitename.net/media/users/shaun45.100653/"
["_GET"] => array(0) {
}
["_POST"] => array(12) {
["target_type"] => string(5) "album"
["album_type"] => string(8) "existing"
["album_url"] => string(60) ""
["ids"] => array(5) {
[0] => string(5) "76327"
[1] => string(5) "76328"
[2] => string(5) "76329"
[3] => string(5) "76330"
[4] => string(5) "76331"
}
["type"] => string(10) "xfmg_media"
["action"] => string(4) "move"
["confirmed"] => string(1) "1"
["_xfRedirect"] => string(56) "https://www.sitename.net/media/users/shaun45.100653/"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(28) "/media/users/shaun45.100653/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 
Last edited by a moderator:
Top