We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Error syncing an image directory: ExpressionEngine\Dependency\League\Flysystem\CorruptedPathDetected

How Do I?

From EE Slack's avatar
From EE Slack
185 posts
about 2 years ago
From EE Slack's avatar From EE Slack

From Slack: EE 7.3.14

I’m trying to sync an image directory that has about 3500 files in it. All the other ones are smaller, and I’ve had zero issues. I’m getting this:

ExpressionEngine\Dependency\League\Flysystem\CorruptedPathDetected Caught
Corrupted path detected: Gary_Something_File_4271.jpg
ee/vendor-build/league/flysystem/src/CorruptedPathDetected.php:14
Stack Trace: Please include when reporting this error
#0 ee/vendor-build/league/flysystem/src/Util.php(124): ExpressionEngine\Dependency\League\Flysystem\CorruptedPathDetected::forPath('Gary_Something_...')
#1 ee/vendor-build/league/flysystem/src/Util.php(93): ExpressionEngine\Dependency\League\Flysystem\Util::removeFunkyWhiteSpace('Gary_Something_...')
#2 ee/vendor-build/league/flysystem/src/Util.php(79): ExpressionEngine\Dependency\League\Flysystem\Util::normalizeRelativePath('Gary_Something_...')
#3 ee/ExpressionEngine/Library/Filesystem/Filesystem.php(1078): ExpressionEngine\Dependency\League\Flysystem\Util::normalizePath('Gary_Something_...')
#4 ee/ExpressionEngine/Library/Filesystem/Filesystem.php(705): ExpressionEngine\Library\Filesystem\Filesystem->ensurePrefixedPath('Gary_Something_...')
#5 ee/ExpressionEngine/Model/File/UploadDestination.php(407): ExpressionEngine\Library\Filesystem\Filesystem->isDir('Gary_Something_...')
#6 ee/ExpressionEngine/Controller/Files/Uploads.php(825): ExpressionEngine\Model\File\UploadDestination->getDirectoryMap()
#7 [internal function]: ExpressionEngine\Controller\Files\Uploads->sync('1')
#8 ee/ExpressionEngine/Core/Core.php(268): call_user_func_array(Array, Array)
#9 ee/ExpressionEngine/Core/Core.php(124): ExpressionEngine\Core\Core->runController(Array)
#10 ee/ExpressionEngine/Boot/boot.php(184): ExpressionEngine\Core\Core->run(Object(ExpressionEngine\Core\Request))
#11 admin.php(153): require_once('...')
#11 admin.php(153): require_once('...')

deleting the file it says has no effect. What to do?

       
From EE Slack's avatar
From EE Slack
185 posts
about 2 years ago
From EE Slack's avatar From EE Slack

Worked out in Slack discussion- the issue is a corrupted file name, typically disallowed characters. In this case, it was the left-to-right character – “““ – embedded in the filename.

Editing out those characters allowed the sync to proceed properly.

       
deanstover's avatar
deanstover
5 posts
one year ago
deanstover's avatar deanstover

Hello, as I know, the error message you’re encountering suggests that the path of the file “Gary_Something_File_4271.jpg” contains some corrupted characters or whitespace that is causing the issue. To resolve this, you can try the following steps:

I think you can try rename the problematic file or retry the sync process.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.