Hi,

I get this error on the front page. Any clues?

    * recoverable fatal error: Object of class stdClass could not be converted to string in /home/dorien/public_html/newearthnews.org/sites/all/themes/simple_web/page-front.tpl.php on line 5.
    * recoverable fatal error: Object of class stdClass could not be converted to string in /home/dorien/public_html/newearthnews.org/sites/all/themes/simple_web/page-front.tpl.php on line 5.

Comments

Bart2drupify’s picture

me too. my footers and headers do not show. a few of my blocks crash too.
i really love this theme, so is there a fix for this?

recoverable fatal error: Object of class stdClass could not be converted to string in /home/zzz/public_html/sites/all/themes/simple_web-6.x-1.2/simple_web/page-front.tpl.php on line 5.
recoverable fatal error: Object of class stdClass could not be converted to string in /home/zzz/public_html/sites/all/themes/simple_web-6.x-1.2/simple_web/page-front.tpl.php on line 5.

if this won't fix, ill have to switch to joomla :/ someone please help!

Bart2drupify’s picture

can someone offer 5 minutes of their time to handle this?
or tell me how i can solve this..

Critical Tinkerer’s picture

Priority: Normal » Critical

Me too. Since there was no response to this issue in many months, I can only presume the maintainer has gone AWAL.

Pete81’s picture

I have the same problem. It's a real shame nobody is looking after this theme because it is so nice.

Pete81’s picture

However, you can see to overcome it by replacing line 5 of page-front.tpl which is:
print $language " xml:lang="# print $language ">

with:
print $language->language " lang=" print $language->language ">

Allthegearnoidea’s picture

Erm... as your code was removed could you re-post with your solution?

Perhaps wrap the code with <code> </code> so it doesn't get treated as actual code.

Thanks.

jacobpov’s picture

Status: Active » Closed (fixed)

OK i got a fix for you guys !
line 5 should be:
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language; ?>" xml:lang="<?php print $language ?>">

Allthegearnoidea’s picture

Thank you for posting this.. I am about to upgrade to D6 so will give this a go as soon as I do the upgrade.

Thanks again

Allthegearnoidea’s picture

Solution in #7 worked. Thanks