Fixed [XF Demo] Media Gallery Error

  • Thread starter Thread starter Deleted member 88796
  • Start date Start date
D

Deleted member 88796

Guest
Affected version
XenForo Demo (XenForo Media Gallery 2.0.3)
Hi, I was trying out the media gallery on the XenForo Demo Installations and I got an error with the custom thumbnails.

  • ErrorException: [E_RECOVERABLE_ERROR] Argument 1 passed to XFMG\Service\Media\ThumbnailChanger::setThumbnailFromUpload() must be an instance of XF\Http\Upload, boolean given, called in /home/xfdemo/www/204/src/addons/XFMG/Pub/Controller/Media.php on line 1375 and defined
  • src/addons/XFMG/Service/Media/ThumbnailChanger.php:95

Stack trace
#0 src/addons/XFMG/Service/Media/ThumbnailChanger.php(95): XF::handlePhpError(4096, 'Argument 1 pass...', '/home/xfdemo/ww...', 95, Array)
#1 src/addons/XFMG/Pub/Controller/Media.php(1375): XFMG\Service\Media\ThumbnailChanger->setThumbnailFromUpload(false)
#2 src/XF/Mvc/Dispatcher.php(249): XFMG\Pub\Controller\Media->actionChangeThumbnail(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(89): XF\Mvc\Dispatcher->dispatchClass('XFMG:Media', 'change-thumbnai...', 'json', Object(XF\Mvc\ParameterBag), 'xfmg', Object(XFMG\Pub\Controller\Media), NULL)
#4 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#6 src/XF.php(328): XF\App->run()
#7 index.php(13): XF::runApp('XF\\Pub\\App')
#8 {main}

array(4) {
["url"] => string(70) "/204/index.php?media/obliviousness-tracer-highlight.1/change-thumbnail"
["referrer"] => string(94) "http://776fd9861feacd0f.demo-xenforo.com/204/index.php?media/obliviousness-tracer-highlight.1/"
["_GET"] => array(1) {
["media/obliviousness-tracer-highlight_1/change-thumbnail"] => string(0) ""
}
["_POST"] => array(5) {
["thumbnail_type"] => string(6) "custom"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(54) "/204/index.php?media/obliviousness-tracer-highlight.1/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 
Back
Top Bottom