Thanks, works

my-family - January 28, 2009 - 08:28
Project:Elegant
Version:6.x-1.0
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

After activating this theme as a default theme, I obtained this message:
"recoverable fatal error: Object of class stdClass could not be converted to string in C:\Program Files\VertrigoServ\www\souvolyne\sites\all\themes\elegant\page.tpl.php on line 2.
recoverable fatal error: Object of class stdClass could not be converted to string in C:\Program Files\VertrigoServ\www\souvolyne\sites\all\themes\elegant\page.tpl.php on line 2."

#1

peterx - February 13, 2009 - 12:18

Line 2 is:
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language ?>" xml:lang="<?php print $language ?>">
Should be:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>">

I put the change in http://d-theme.com/elegant and the error message message went away.

#2

my-family - February 16, 2009 - 16:12
Title:Recoverable fatal error» Thanks, works

Thank you, it works now!

 
 

Drupal is a registered trademark of Dries Buytaert.