Hey, thanks for the great theme! I just installed the dev version in rc2 and am getting this error reported by Drupal:

Object of class stdClass could not be converted to string in /path/to/drupal/sites/all/themes/barron/page.tpl.php on line 3.

Looks like $language is the offending creature.

Doing var_dump($language) reveals:

object(stdClass)#4 (11) { ["language"]=> string(2) "en" ["name"]=> string(7) "English" ["native"]=> string(7) "English" ["direction"]=> int(0) ["enabled"]=> int(1) ["plurals"]=> int(0) ["formula"]=> string(0) "" ["domain"]=> string(0) "" ["prefix"]=> string(0) "" ["weight"]=> int(0) ["javascript"]=> string(0) "" }

I'm not a PHP guy, but I'll poke around and see if I can come up with a patch.

Comments

jwolf’s picture

Assigned: Unassigned » jwolf

Thanks for catching this

Should be $language->language

xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>"
jwolf’s picture

Status: Active » Fixed

Fixed in new dev snapshot

gtcaz’s picture

Excellent -- thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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