I am using bitcache on a test installation of Drupal, in conjunction with the File and RDF, but whenever I try to upload a file I get these errors:

* warning: array_diff_key() [function.array-diff-key]: Argument #1 is not an array in /home/runic0/supertest.runicgamesfansite.com/mods/sites/all/modules/bitcache/bitcache.module on line 677.
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/runic0/supertest.runicgamesfansite.com/mods/sites/all/modules/bitcache/bitcache.module on line 677.
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/runic0/supertest.runicgamesfansite.com/mods/sites/all/modules/bitcache/bitcache.module on line 677.
* recoverable fatal error: Argument 1 passed to Bitcache_FileRepository::__construct() must be an array, null given, called in /home/runic0/supertest.runicgamesfansite.com/mods/sites/all/modules/bitcache/bitcache.module on line 681 and defined in /home/runic0/supertest.runicgamesfansite.com/mods/sites/all/modules/bitcache/adapters/file.inc on line 13.
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/runic0/supertest.runicgamesfansite.com/mods/sites/all/modules/bitcache/adapters/file.inc on line 21.
* The directory does not exist.
* warning: copy(/39fec0f704bcda839a71d9c4a8def2e60c190422) [function.copy]: failed to open stream: Permission denied in /home/runic0/supertest.runicgamesfansite.com/mods/sites/all/modules/bitcache/adapters/file.inc on line 163.
* Error saving file hdr_mario.gif. Please, contact site administrator.
* A file upload must be provided.

I am not sure if this should be posted here or in the File module's help section, but since all the errors say bitcache I am posting here for now. Right now this is what Bitcache is connected to:
Required by: File (enabled), Antivirus (enabled), Archives (enabled), Attachments (disabled), Audio files (enabled), Browser (enabled), CCK (disabled), Converters (disabled), Documents (enabled), Embed (disabled), Gallery (enabled), Images (enabled), Restrictions (disabled), Slideshows (disabled), Spreadsheets (enabled), Texts (enabled), Videos (enabled), Views (disabled)

Comments

Webbstre’s picture

Assigned: Webbstre » Unassigned
Status: Active » Closed (fixed)

Well I managed to fix this without any response from anyone here (to my disappointment). In case anyone else has a similar problem in the future, this is what happened:

I needed to make a file repository names file, and since bitcache couldn't get access to make the directory for some reason, I made it myself:

drupal/sites/default/files/bitcache/file

When that was done I went to the Data Storage settings as an admin, created the repository named "file" and set it to be a file system and not a database.

I still can't upload files due to some other error, but everything other than the
* Error saving file hdr_mario.gif. Please, contact site administrator.
* A file upload must be provided.
has disappeared now.

internetter’s picture

Hi,

I had the same problems. At a few places you must select the right repository to store the files in.

Perhaps you have it not selected here:
/admin/settings/file

tricasse’s picture

I fixed this by disabling every module using File (found in the File formats and File management categories : Browser, Attachments, Archives, Antivirus, …). I had only the "A file upload must be provided." error remaining while uploading. I checked the permissions, which were correct, and then followed the instructions at http://drupal.org/node/426732#comment-2147252. It all works flawlessly now!