Installing the RDF module with purl 1.0-beta12 triggers a WSOD in ctools:

Fatal error: Call to undefined function ctools_include() in [...] profiles/openatrium/modules/contrib/purl/purl.module on line 741

The WSOD can be fixed by using the dirty hack described here #573646: WSOD: Fatal error: Call to undefined function ctools_include() ... /page_manager.module on line 665 in comment #11, or setting the RDF module weight to 10 as suggested here #682346: WSOD when install RDF and have purl installed.

However PURL stops working. (in openatrium, the node/add links are not prefixed with the OG url anymore, therefore leading to an access denied page).

Hope this can be solved to allow installing FileFramework and its file management goodness on top of Open Atrium.

Cheers,

Jun.

Comments

jmiccolis’s picture

Project: Persistent URL » Resource Description Framework (RDF)
Version: 6.x-1.0-beta12 » 6.x-1.x-dev

Pushing this over to the RDF queue.

The above described error happens because the rdf module sets the value of a constant using a function the moment the rdf.module file is included.

define('RDF_SCHEMA_URI',        rdf_get_schema_uri());

The `rdf_get_schema_uri()` method calls `url()` which in turn will ask purl to examine the url. However, because all of this is happening the moment the rdf.module file is included, `ctools_include()` isn't yet available the page load fails.

Is there a reason that the 'RDF_SCHEMA_URI' constant is being set like this?

DjebbZ’s picture

Any news on this ? Making OA and Fileframework work would be so-oh nice...

DjebbZ’s picture

I tried to replace to define('RDF_SCHEMA_URI', rdf_get_schema_uri()) stuff by a variable_set('rdf_schema_uri', rdf_get_schema_uri()) in all files where the constant is called, but it's not working. Is it a good approach ? Should we try putting some effort in this, since it's blocking rdf working with purl, which means it's blocking FileFramework to work with OA ?

ndwilliams3’s picture

I was trying to install purl and space and kept getting WSOD with error call to undefined function ctools_includes()

came across this post http://drupal.org/node/872340

changing line 964 of rdf.module from

<?php

function rdf_get_schema_uri() {
 
$uri = 'rdf/schema';
 
$uri = (function_exists('url') ? url($uri, array('absolute' => TRUE)) : $uri) . '/';
 
return variable_get('rdf_schema_uri', $uri);
 
}
?>
<?php

function rdf_get_schema_uri() {
 
$uri = $base_url.'rdf/schema/';
return variable_get('rdf_schema_uri', $uri);
 
}
?>

this fixed the WSOD issue, but haven't set up spaces, purl or rdf yet to see if it causes any issues.

SocialNicheGuru’s picture

This also worked for me

smustgrave’s picture

Issue summary: View changes
Status: Active » Closed (outdated)