I get the error "Object of class stdClass could not be converted to string in" ... page.tpl.php line 2

Apparently the fix is pretty simple and is documented here: http://drupal.org/node/208728

On line two you change $language to $language->language and that's it.

Comments

finex’s picture

Assigned: Unassigned » finex
Status: Active » Fixed

Thanks for the report! I've just fixed it.

B.P.B’s picture

Will you upload the latest dev with your fix?

finex’s picture

Mmm, I've done a mistake: it has been updated on the 5.x branch instead the 6.x. I've to manage better my cvs local repository :-)

I'll fix it today.

bye

Status: Fixed » Closed (fixed)

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

bzunnssukj’s picture

Status: Closed (fixed) » Needs work

The problem still exists in the 6.x code:

recoverable fatal error: Object of class stdClass could not be converted to string in D:\_x\Drupal 6 themes site\sites\all\themes\elegant\page.tpl.php on line 2.