Posted by my-family on January 28, 2009 at 8:28am
Jump to:
| Project: | Elegant |
| Version: | 6.x-1.0 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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."
Comments
#1
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
Thank you, it works now!