ColdTrick / file_tools

Extends the functionality of file
https://elgg.org/plugins/874513
8 stars 18 forks source link

Bulk Download broken with subfolders #35

Open NoobyNoob1966 opened 10 years ago

NoobyNoob1966 commented 10 years ago

When using "select all" and "download selected" on folder after a while it just displays white page with this url :'www.mysite.com/file/bulk_download?folder_guids[]=12198&folder_guids[]=12199&folder_guids[]=12200&folder_guids[]=10419&folder_guids[]=12201&folder_guids[]=16244" or sometimes zip would be empty.

Looking in the elggdata/file_tools/zip_temp folder I see file/zip gets created but these large ones gets saved with weird extension ( like: download_gvv1LJ.rDtboB)

When selecting only files and not folders (when there are no subfolders) it works fine and gets saved without strange extension.

jeabakker commented 7 years ago

sorry it took so long to get back to this issue.

I can think one possible problem, the scripts which makes the zip runs out of memory. This would show up in the error_log, are you still having this problem, and if so can you see some error in the error_log?

ghost commented 7 years ago

Hello! :) I guess you're right. We have the same issue here and error_log is:

[Mon May 29 19:23:00.365028 2017] [:error] [pid 20781] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 36175872 bytes) in /mod/file_tools/views/default/resources/file_tools/file/bulk_download.php on line 78

We have a pretty big dedicated server...is this a setting we should change or plugin's bug? Cheers!