Am using a subtheme of Panels_960gs, which is a subtheme of Boron, and I'm getting the following error:
Strict warning: Creating default object from empty value in boron_preprocess_html() (line 35 of template.php)
The boron_preprocess_html() function looks like this:
function boron_preprocess_html(&$vars) {
if (module_exists('rdf')) {
$vars['doctype'] = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML+RDFa 1.1//EN">' . "\n";
$vars['rdf']->version = 'version="HTML+RDFa 1.1"';
$vars['rdf']->namespaces = $vars['rdf_namespaces'];
$vars['rdf']->profile = ' profile="' . $vars['grddl_profile'] . '"';
} else {
$vars['doctype'] = '<!DOCTYPE html>' . "\n";
$vars['rdf']->version = '';
$vars['rdf']->namespaces = '';
$vars['rdf']->profile = '';
}
}
Simply enough, it's assuming that the $vars['rdf'] variable exists and is an object, but in this case it just simply doesn't exist!
FYI I have the core RDF enabled on Drupal 7.7.
Comments
Comment #1
damienmckennaHere's a patch that ensures the $vars['rdf'] object exists.
Comment #2
berliner commentedworks for me
Comment #3
resplin commentedWorks for me too.
Comment #4
danlinn commentedI'll get this applied as soon as I can get to it.
Comment #5
danlinn commentedAdded to 1.2 release
Comment #6
resplin commentedI just downloaded and checked 7.x-1.2 and the theme appears unchanged from 1.1. I suspect a packaging problem.
Comment #7
roske commentedIt's not I applied the patch by hand and it works.
Comment #8
resplin commentedReopening because the patch does not appear to be in the package.
Comment #9
designerbrent commentedLooks like the patch never made it into the code, neither the dev or the release.
Comment #10
tlattimore commentedNot sure what comment #5 is about but it looks like this never got in. Committed to 7.x-1.x head.
http://drupal.org/commitlog/commit/14454/15c902d4bda7c59f15563fa7edeab1b...
Comment #11
tlattimore commentedOops. closing based on #10.
Comment #13
jemmyn commentedusing theme541 from template-help.com which and they unfortunately no longer offer support for this theme. my web host upgraded to php 5.4 and my site kept throwing this error message:
This patch fixed it. Thank you thank you!
NOTE: theme541 - Lifted from Adaptivetheme for D7, full credit to Jeff Burnz
* ref: http://drupal.org/node/887600