Details
-
Bug
-
Resolution: Fixed
-
None
-
High
-
Custom error message when uploading larger files as allowed in instant-translate.
-
Empty show more show less
Description
problem
Uploading a file in InstantTranslate bigger as post_max_size or upload_max_filesize does not print a error message usable for the user nor a usable error message in system log, just:
ERROR in core: E9999 - Path cannot be empty
#0 /var/www/translate5/application/modules/editor/Plugins/InstantTranslate/Filetranslationhelper.php(461): file_get_contents() #1 /var/www/translate5/application/modules/editor/Plugins/InstantTranslate/Filetranslationhelper.php(223): editor_Plugins_InstantTranslate_Filetranslationhelper->translate5Request() #2 /var/www/translate5/application/modules/editor/Plugins/InstantTranslate/Filetranslationhelper.php(131): editor_Plugins_InstantTranslate_Filetranslationhelper->prepareTaskImport()
solution
This must be changed, so that the error message for the user and for admins are useful, still the error may be different: for the end user: File to big, for the admin, file is bigger as X config.