Bug #21836 Version Retired

File Sync with Large Numbers of Files Throws 500 Error

Version: 2.11.1 Reporter: JohnD

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

I have a customer using number of upload directories to capture field data, all valid EE mime types. Synchronising the smaller directories works fine. One of the directories contains just over 24,000 files. Syncing that directory consistently throws a 500 error, before completing the directory_files_map method in /expressionengine/libraries/Filemanager.php.

  • In /expressionengine/libraries/Filemanager.php at line 2712, if I comment-out this code, the directory_files_map method completes normally:

    $mime = ee()->mime_type->ofFile($source_dir.$file);
    
         if ($allowed_types == 'img')
         {
          $allowed = ee()->mime_type->isImage($mime);
         }
    
         if ( ! $allowed)
         {
          continue;
         }

    I have not experienced any adverse consequences from this hack - but YMMV.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases