I just installed the last version of Drupal 7 (i.e.: Drupal 7.8) and your theme. After a fiew clicks, I got the following error:

Strict warning: Creating default object from empty value in jbase5_preprocess_html() (line 91 of C:\xampp\htdocs\drupal7\sites\all\themes\jbase5\template.php).

This happens when I click on the logo image or the Welcome menu whatever the RDF modul status is (enabled or not).

Any idea?

Thanks in advance for your help

Comments

jacofee’s picture

I have some more informations on this issue. This seams bound to the environment : I encounter this bug when I run Drupal 7.8 on Windows 7 SP1 + Xampp 1.7.7:

###### ApacheFriends XAMPP version 1.7.7 ######

+ Apache 2.2.21
+ MySQL 5.5.16 (Community Server)
+ PHP 5.3.8 (VC9 X86 32bit thread safe) + PEAR
+ XAMPP Control Panel Version 2.5 from www.nat32.com

Running Drupal 7.8 + jbase 5 on Ubuntu 11 is fine.

jeremycaldwell’s picture

Status: Active » Closed (won't fix)

Thanks for the update. I looked locally on my Mac running MAMP and wasn't able to recreate the issue nor on my Linux server so sounds like Windows might be the only thing affected. There isn't anything I can update from the theme side that I know of so marking this issue as "won't fix". If you do find a work-around please let us know.

deryck.henson’s picture

Status: Closed (won't fix) » Needs work

Disclaimer: I don't give a crap about RDF, my application is going to be internal and not actually web-based.

Not gonna lie, I wouldn't put any faith in my coding methods (turn something off and see what fails) but I fixed it for my local installation doing the following:

jbase5/template.php - replaced this (line 86-96):

    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 = '';
  } 

with this:

$vars['doctype'] = '<!DOCTYPE html>' . "\n";

jbase5/templates/html/html.tpl.php - replaced this (line 6-7):

<html lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>" <?php print $rdf->version . $rdf->namespaces; ?>>
<head<?php print $rdf->profile; ?>>

with this:

<html lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>" <?php //print $rdf->version . $rdf->namespaces; ?>>
<head<?php // print $rdf->profile; ?>>

Literally just did this so not much extensive testing, but clicking all my links went ok.

I'd make a patch, but you really don't want me to try that.

Hope this helps a little.

PS - Drupal-7.10, jbase5-1.5 and disabled RDF.
PPS - You posted this issue on my birthday, crazy. And I also realize you did this on 1.2 but apparently it's made its way to 1.5.

jeremycaldwell’s picture

Status: Needs work » Closed (won't fix)
umit’s picture

@deryck.henson I tried but it did not. Do you have another solution?