For some reason filedepot uploads have stopped working on my Drupal Commons 6 site.

When I try to upload a file now The status bar goes all the way red and then nothing happens. If I look in the apache error log I see the errors listed below. I have tried everything I know. I have dropped all the filedepot tables and reinstalled the module both the current latest 6 version and the latest 6 dev version.

[Mon Aug 20 19:17:02 2012] [error] [client 10.27.200.66] PHP Notice: Undefined property: stdClass::$roles in /var/www/commons/modules/user/user.module on line 528
[Mon Aug 20 19:17:02 2012] [error] [client 10.27.200.66] PHP Warning: array_fill(): Number of elements must be positive in /var/www/commons/includes/database.inc on line 253
[Mon Aug 20 19:17:02 2012] [error] [client 10.27.200.66] PHP Warning: implode(): Invalid arguments passed in /var/www/commons/includes/database.inc on line 253
[Mon Aug 20 19:17:02 2012] [error] [client 10.27.200.66] PHP Notice: Undefined property: stdClass::$roles in /var/www/commons/modules/user/user.module on line 528
[Mon Aug 20 19:17:02 2012] [error] [client 10.27.200.66] PHP Warning: array_keys() expects parameter 1 to be array, null given in /var/www/commons/modules/user/user.module on line 528
[Mon Aug 20 19:17:02 2012] [error] [client 10.27.200.66] PHP Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1\nquery: SELECT p.perm FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /var/www/commons/includes/database.mysqli.inc on line 134

Comments

edivito’s picture

Title: FileDepot Uploads no longer work » FileDepot Uploads stall

I've noticed that the uploads only work for the user number 1 the first user of the site. For all other users the upload gets stuck. Can anyone help with this?

_timpatrick’s picture

That looks like it might be an issue with your actual drupal installation. To make sure, try downloading the latest 6.x version.

edivito’s picture

Core 6.26
Commons 6.x-2.10
Filedepot 6.x-1.3

I think I am running the latest of everything. This is on a fresh install too. I've tried blowing away Drupal Commons and completely reinstalling an older version but it didn't fix the problem

It looks like there was a similar issue posted to the Nextide board

http://www.nextide.ca/node/624

badmothergoose’s picture

solution exposed in post #5 of the following issue fixed the problem for me
http://drupal.org/node/970388