Closed (fixed)
Project:
filedepot
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Dec 2013 at 21:54 UTC
Updated:
27 May 2014 at 15:18 UTC
Jump to comment: Most recent
Thanks for a great module, but I've noticed in both the current release and dev versions, the "download archive" selection does not work for either an admin or a normal user.
When you select files and click "download archive" from the select box, you get a red box saying:
This page contains the following errors:
error on line 2 at column 1: Document is empty
Below is a rendering of the page up to the first error.
The remainder of the page is white.
The error log says "Notice: Undefined variable: data in filedepot_dispatcher() (line 1214 of /var/www/testsite/drupal/sites/all/modules/filedepot/ajaxserver.php).
Cheers!
Comments
Comment #1
bala_28 commentedA small typo error fix on URL...
Goto js/common.js file.
Search "var postdata = '<oken='"
Change the "&" to "?"
I got it worked.
Comment #2
bala_28 commentedA Small update:
Follow the above procedure only if you have enabled the clean url.
Comment #3
_timpatrick commentedThanks bala_ewall for that.
I modified the code to work for when clean URLs are enabled and when they are disabled - archiving should work now in both cases.
Dev has been updated with the fix, it will be available tomorrow for download.
Comment #4
bala_28 commentedThanks Tim.
Also I am working on integration of filedepot with Amazon s3. I shall notify you once it is done completely.
Cheers,
Bala.D
Comment #6
72pixel commentedCommon.js
Line 718
var postdata = '<oken=' + ltoken + '&checked_files=' + encodeURIComponent(NxFiledepot.checkedItemsManager.exportFiles()) + '&checked_folders=' + encodeURIComponent(NxFiledepot.checkedItemsManager.exportFolders());in
var postdata = '?ltoken=' + ltoken + '&checked_files=' + encodeURIComponent(NxFiledepot.checkedItemsManager.exportFiles()) + '&checked_folders=' + encodeURIComponent(NxFiledepot.checkedItemsManager.exportFolders());