Hi, I just installed Filedepot following the instructions.
It seems that it is everything OK (maybe my current theme is breaking some styles, nothing important), but when I try to upload a new file it keeps stuck uploading the file with the loading gif next to the upload button.

If I check the js console I see this error:
Uncaught TypeError: Object function (a,b){return new e.fn.init(a,b,h)} has no method 'handleError' jquery.form.js?v=2.52:12

On the net tab I can see this:
newfile /es/filedepot/ajax POST 200 OK

Comments

blainelang’s picture

Check the drupal error log, your webserver logs, php error logs, test with the default bartik theme to rule out any theme issues, make sure you have the private filesystem settings correct and webserver permissions to write.

dres85’s picture

When listing directories I get this error (saw in Drupal reports):
Location: http://einsa.dros-soluciones.es/es/filedepot_ajax/getfilelisting
Message: Notice: Undefined variable: tmpsubfolderlisting en filedepot_displayFolderListing() (línea 321 de /var/www/html/drupal_sites/einsa/sites/all/modules/filedepot/lib-ajaxserver.php).

When trying to upload a file, I see those errors (also in Drupal reports):
Location: http://einsa.dros-soluciones.es/es/filedepot/ajax/newfile
Message: filedepot_permission_object::__set_state(array( '_Cid' => '1', '_PermissionArray' => array ( 'view' => true, 'upload' => true, 'upload_direct' => true, 'upload_ver' => true, 'approval' => true, 'admin' => true, ), ))

Location: http://einsa.dros-soluciones.es/es/filedepot/ajax/newfile
Message: filedepot_sendNotification (1) - no target users

blainelang’s picture

PHP notices are not errors, so that's not your issue and the other message looks to be a coding debug message that we should remove but not the reason for your hang.

Does the file get uploaded - even if the interface hangs?

Test uploading a file from the native drupal node edit form. Each folder is a node, edit it and attach a file.

dres85’s picture

From native Drupal edit form it's everything OK. I can upload files without problem.

I'm not having PHP errors, just the JavaScript error I mentioned in my first message:
Uncaught TypeError: Object function (a,b){return new e.fn.init(a,b,h)} has no method 'handleError' jquery.form.js?v=2.52:12

I'm pretty sure I have all the configurations OK from the module help (private dir and required libraries).

blainelang’s picture

That JS error is not from an filedepot JS but it could be from a core jQuery library

Have you tested with firefox and chrome?

Next, I'd try and disable other modules as it's not something I've seen reported before.

dres85’s picture

I used a clean Drupal installation and everything is OK, so I guess the problem is caused due to some kind of incompatibility between the theme (Dawn) and Filedept module.
The bad news for me is I need to use that theme.

Well, it is not a real bug, but maybe it will happen again to someone with other than the default Drupal theme like me.

Thanks for your time anyway.

Regads.

blainelang’s picture

Category: Bug report » Support request
Status: Active » Closed (works as designed)