Typical from dr 5 to 6 : Object of class stdClass could not be converted to string



This is typical when porting a theme from drupal 5 to drupal 6

the $language variable will give you:
Object of class stdClass could not be converted to string in /srv/www/vhosts/drupal_6x/sites/www.bedandbreakfastsavoia.it/themes/leaf/page.tpl.php on line 3

till you replace that with $language->language

Comments

Invia nuovo commento

  • Linee e paragrafi vanno a capo automaticamente.
  • Web page addresses and e-mail addresses turn into links automatically.

Maggiori informazioni sulle opzioni di formattazione.

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
7 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.