Fixed Error during "XFMG: Rebuild media thumbnails"

Gator

Well-known member
Affected version
2.0
I get the following error when "XFMG: Rebuild media thumbnails" :

Code:
League\Flysystem\FileNotFoundException: File not found at path: xfmg/video/5/5881-48b045ca48abba355d4f54c41444bcae.mp4 src/vendor/league/flysystem/src/Filesystem.php:385

Stack trace
#0 src/vendor/league/flysystem/src/Filesystem.php(193): League\Flysystem\Filesystem->assertPresent('xfmg/video/5/58...')
#1 [internal function]: League\Flysystem\Filesystem->readStream('xfmg/video/5/58...', Array)
#2 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(431): call_user_func_array('parent::readStr...', Array)
#3 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(395): League\Flysystem\EventableFilesystem\EventableFilesystem->callFilesystemMethod('readStream', Array)
#4 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(154): League\Flysystem\EventableFilesystem\EventableFilesystem->delegateMethodCall('readStream', Array)
#5 [internal function]: League\Flysystem\EventableFilesystem\EventableFilesystem->readStream('xfmg/video/5/58...')
#6 src/vendor/league/flysystem/src/MountManager.php(269): call_user_func_array(Array, Array)
#7 src/vendor/league/flysystem/src/MountManager.php(179): League\Flysystem\MountManager->invokePluginOnFilesystem('readStream', Array, 'data')
#8 src/XF/Util/File.php(77): League\Flysystem\MountManager->__call('readStream', Array)
#9 src/addons/XFMG/Job/MediaThumb.php(101): XF\Util\File::copyAbstractedPathToTempFile('data://xfmg/vid...')
#10 src/addons/XFMG/Job/MediaThumb.php(59): XFMG\Job\MediaThumb->rebuildImageThumb(Object(XFMG\Entity\MediaItem))
#11 src/XF/Job/Manager.php(241): XFMG\Job\MediaThumb->run(7.9999990463257)
#12 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 7.9999990463257)
#13 src/XF/Job/Manager.php(103): XF\Job\Manager->runJobEntry(Array, 7.9999990463257)
#14 src/XF/Admin/Controller/Tools.php(117): XF\Job\Manager->runByIds(Array, 8)
#15 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#16 src/XF/Mvc/Dispatcher.php(87): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', 'html', Object(XF\Mvc\ParameterBag), 'tools', Object(XF\Admin\Controller\Tools), NULL)
#17 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#18 src/XF/App.php(1831): XF\Mvc\Dispatcher->run()
#19 src/XF.php(328): XF\App->run()
#20 admin.php(13): XF::runApp('XF\\Admin\\App')
#21 {main}

Request state
array(4) {
  ["url"] => string(24) "/admin.php?tools/run-job"
  ["referrer"] => string(51) "http://www.armorygamers.com/admin.php?tools/run-job"
  ["_GET"] => array(1) {
    ["tools/run-job"] => string(0) ""
  }
  ["_POST"] => array(3) {
    ["_xfRedirect"] => string(61) "http://www.armorygamers.com/admin.php?tools/rebuild&success=1"
    ["_xfToken"] => string(8) "********"
    ["only_ids"] => string(3) "282"
  }
}
 
This should be sorted for the next release.

It does, however, mean that you have a video somewhere in your gallery which doesn't actually have a file. You may want to track this down and remove it. Do you have any idea why the file might be missing?
 
This should be sorted for the next release.

It does, however, mean that you have a video somewhere in your gallery which doesn't actually have a file. You may want to track this down and remove it. Do you have any idea why the file might be missing?

No, but I will find it if possible. I am still running a test site awaiting the final version. Once the final version is released, I will then reinstall and import my "active" IPBoard database. Thanks, Chris, for responding and fixing the issue.
 
Back
Top Bottom