Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-2954

If Import reaches PHP max_file_uploads limit there is no understandable error message

    • Critical
    • If the amount of files reaches the configured max_file_uploads in PHP there is no understandable error message for the user what is the underlying reason why the upload is failing.

      problem

      On the server the max_file_uploads limit of PHP was set to the default of 20 files. This can easily reached now with the new project creation wizard.

      solution on the server

      Increase the limit (DONE by TL)

      solution in PHP

      • Ensure that there is an error message understandable for the user instead of
        "ERROR E9999 TypeError: editor_Models_Import_DataProvider_Project::filesMatch(): Argument #1 ($workFile) must be of type string, null given, called in /XXXX/application/modules/editor/Models/Import/DataProvider/Project.php on line 123"
      • Add a default max_file_uploads of 360 to the application/modules/editor/configs/module.ini - the memory limit is also defined there.

            aleksandar Aleksandar Mitrev
            tlauria Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: