Hi,
Drupal 6.22
Running PHP 5.3.3.7 and last dev version of FF. As well as alfa8 version of RDF with ARC2 2010-10-12.
When trying to go to /admin/settings/file or /admin/content/bitcache, as well attempting to download file
I'm getting WSOD and in the server log "PHP Fatal error:Cannot redeclare class Bitcache_FileStream in /sites/all/modules/fileframework/adapters/file2_adapter.inc on line 304"
This killed my site - users can not download/upload any file.
Any help ?

Comments

Ether’s picture

Update to ARC2 2011-12-01 did not help

johanneshahn’s picture

Do u Run update.php and installed latest bitcache dev Version?

johanneshahn’s picture

If you still have problems
Change adapter column from file2 to file in table bitcache_repositories
And delete File2_adapter.inc

johanneshahn’s picture

Status: Active » Postponed (maintainer needs more info)
Ether’s picture

Yes, I run update.php.
Dev version of bitcache did not help.
Changing adapter column from file2 to file removed WSOD but:
when going to /admin/content/bitcache or /admin/settings/file getting error "The directory does not exist." and do not see any bitstreams. Attempt to download file gives error 404.
Anything else ?

Ether’s picture

And yes, I renamed file2_adapter.inc to file2_adapter.inc_deleted

johanneshahn’s picture

ok

i forgot theres also a function called file_bitcache_adapters() {
in file.module line 283. please remove this function too.

Ether’s picture

Removed. Nothing changed.

johanneshahn’s picture

StatusFileSize
new52.49 KB

can you post me the row from bitcache_repository table
it has to be look like screenshot

Ether’s picture

StatusFileSize
new121.96 KB

Attached.

johanneshahn’s picture

in the options field there is the missing
path to your bitcache files.

replace the options field in bitcache_repository table with this

a:3:{s:5:"title";s:14:"File framework";s:11:"description";s:50:"A repository for the file framework managed files.";s:8:"location";s:35:"[file-directory-path]/bitcache/file";}

Ether’s picture

Ok, I have no "The directory does not exist." error now. But all my saved files return error 404. And I have lost all my bitstreams.
Any way to get them back ? I'm using File Framework repository.

Ether’s picture

Anything ?

johanneshahn’s picture

Restore with the backup before u Run this update

johanneshahn’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
justin.hopkins’s picture

Status: Closed (cannot reproduce) » Needs work

I was able to reproduce this. Not by choice or with intent mind you, but I did have this problem. The fixes you suggested did work, namely:

* Removing file_bitcache_adapters() from fileframework/file.module
* Changing file2 to file in the bitcache_repositories table
* Replacing the contents of the options column for the file adapter in bitcache_repositories tables

Ether’s picture

And run update.php after ?

johanneshahn’s picture

run update is not needed.

johanneshahn’s picture

Status: Needs work » Closed (fixed)

fixed in first stable

four99’s picture

Status: Closed (fixed) » Active

BUMP...

Still having this issue with current stable releases of Bitcache/FileFramework/RDF

Same error:
Fatal error: Cannot redeclare class Bitcache_FileStream in /home/wsadmin/public_html/home/sites/all/modules/bitcache/adapters/file.inc on line 305

johanneshahn’s picture

Status: Active » Needs work

hi,
im currently working on that issue.
to solve this temporally remove on of the class class Bitcache_FileStream
in /bitcache/adapters/file.inc or fileframework.

johanneshahn’s picture

Status: Needs work » Closed (fixed)

fixed?
reopen if still