I installed ff-alpha2, bitcache-alpha1 and rdf-alpha3 today. When I try to enable them, I get this error on a white page:

Fatal error: Call to undefined function rdf_db_create_repository() in /opt/drupal/sandbox/sites/all/modules/fileframework/file.install on line 23

Help?

Comments

miglius’s picture

To solve this issue you have to first enable RDF module, and only then the FF* modules.

FF is using RDF function to create a repository on the install, but if you install both RDF and FF at the same time, FF gets installed before RDF and therefore cannot find that function yet.

alex_b’s picture

I'd be interested in good practices on how to avoid this problem. Moving the installation to hook_enable() does not help.

alex_b’s picture

Same thing happens with rdf_db_delete_repository() btw if used in hook_uninstall()

Arto’s picture

It is a core problem and I don't know that there's much we can do about it.

Ideally, module weights would be defined in the .info file and Drupal would honor them when installing/uninstalling.

Arto’s picture

Of course, we *could* define new hooks like hook_rdf_install() and hook_rdf_uninstall() which File Framework would implement. Alternatively, File Framework's installation code could try to manually load up rdf.module and rdf.api.inc in the installation hooks - not perfect, but it might help some.

miglius’s picture

Version: 6.x-1.0-alpha2 » 6.x-1.x-dev
Status: Active » Fixed

Arto has committed and explicit load of the rdf schema when the rdf module is not yet loaded, and fileframework now includes rdf.db.inc file before creating the repository.

Dev (cvs) releases should be used for both modules.

Status: Fixed » Closed (fixed)

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

Arto’s picture

Issue tags: +RDF