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

bala_28’s picture

A small typo error fix on URL...

Goto js/common.js file.
Search "var postdata = '&ltoken='"
Change the "&" to "?"

I got it worked.

bala_28’s picture

A Small update:

Follow the above procedure only if you have enabled the clean url.

_timpatrick’s picture

Status: Active » Fixed

Thanks 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.

bala_28’s picture

Thanks Tim.

Also I am working on integration of filedepot with Amazon s3. I shall notify you once it is done completely.

Cheers,
Bala.D

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

72pixel’s picture

Common.js

Line 718

var postdata = '&ltoken=' + 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());