Fixed File not found at path: image_cache

Nirjonadda

Well-known member
Affected version
2.2.4
Server error log:

Code:
League\Flysystem\FileNotFoundException: File not found at path: image_cache/95/95309-9b8dc7d0931f3c1fd2e9c640a8a16423.data src/vendor/league/flysystem/src/Filesystem.php:389

Generated by: Unknown account Mar 28, 2021 at 9:10 AM

Stack trace

#0 src/vendor/league/flysystem/src/Filesystem.php(194): League\Flysystem\Filesystem->assertPresent('image_cache/95/...')
#1 [internal function]: League\Flysystem\Filesystem->readStream('image_cache/95/...', 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 src/vendor/league/flysystem/src/MountManager.php(345): League\Flysystem\EventableFilesystem\EventableFilesystem->readStream('image_cache/95/...')
#6 src/XF/Proxy/Controller.php(169): League\Flysystem\MountManager->readStream('image_cache/95/...')
#7 proxy.php(34): XF\Proxy\Controller->outputImage('https://nirjonm...', '696db372b2b5e53...')
#8 {main}

Request state

array(4) {
  ["url"] => string(136) "/proxy.php?image=https%3A%2F%2Fmysite.net%2Fimages%2F2018%2F05%2F17%2FxtraissBangla-305-23.jpg&hash=696db372b2b5e53f3c575cfd788e8088"
  ["referrer"] => string(43) "/threads/65574/page-3"
  ["_GET"] => array(2) {
    ["image"] => string(65) "/images/2018/05/17/xtraissBangla-305-23.jpg"
    ["hash"] => string(32) "696db372b2b5e53f3c575cfd788e8088"
  }
  ["_POST"] => array(0) {
  }
}
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.7).

Change log:
Handle a race condition where proxy images get pruned in the middle of a request more gracefully
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom