recoverable fatal error: Object of class stdClass could not be converted to string

Nick Fedchik - August 19, 2008 - 11:02
Project:Icon
Version:6.x-1.0-alpha4
Component:Code
Category:bug report
Priority:critical
Assigned:ximo
Status:active
Description

I install the icon module and set Garland_icon theme as default for me.
Often I see the error message:

recoverable fatal error: Object of class stdClass could not be converted to string in /var/www/drupal6/sites/all/themes/garland_icons/template.php on line 181.

This is the line 181 in template.php

<?php
$menu_item
['map'][$key] = strtr($page, '-', '_')
?>

#1

ximo - August 19, 2008 - 13:06
Assigned to:Anonymous» ximo

I haven't seen that error myself, what paths gives you the fatal error?

It's part of the modified Garland I made in order to demo the module, so it's not part of the module as such. But I'll definitely have a look at it.

#2

Nick Fedchik - August 21, 2008 - 12:26

It's happend often, guess on any pages. Don't kow why.
Of cource, if the garland_icon theme choosed.

#3

sign - September 1, 2008 - 13:23

This happens on all pages where part of the menu item returned is an object. node/nid node/nid/edit, etc...

"The value of key map holds the loaded objects." http://api.drupal.org/api/function/menu_get_item/6

won't it be better to just split $path from $_GET['q'] instead of using menu_get_item ?

 
 

Drupal is a registered trademark of Dries Buytaert.