After installiing the module, it breaks the dhtml_menu.module. When loading a page i receive the warning:

warning: Invalid argument supplied for foreach() in /var/www/dev-revv/public/sites/all/modules/dhtml_menu/dhtml_menu.module on line 175.

here is the code from dhtml_menu.module starting from line 174:

174  // Traverse the tree.
175  foreach ($index[$item['mlid']]['parents'] as $mlid) {
176    $key = $index[$mlid]['key'];
177    if (!isset($tree[$key])) {
178      return array();
179    }
180    $tree = $tree[$key]['below'];
181  }
182  $key = $index[$item['mlid']]['key'];
183  return isset($tree[$key]) ? $tree[$key]['below'] : array();
184 }

Also when going to my home page i get the following WSOD

Fatal error: Unsupported operand types in /var/www/dev-revv/public/includes/common.inc on line 1542

I tried telling dhtml menu not to load the admin_dashboard menu but the issue still persisted.

when i tried uninstalling dhtml menu i got a wsod again

Fatal error: Unsupported operand types in /var/www/dev-revv/public/includes/common.inc on line 1542
array(4) { ["type"]=> int(1) ["message"]=> string(25) "Unsupported operand types" ["file"]=> string(44) "/var/www/dev-revv/public/includes/common.inc" ["line"]=> int(1542) } n/a

after which point disabling either module fixes it, the above (2nd) wsod error keeps showing on the front page. so before trying to replicate this make sure you backup your database.

Comments

skilip’s picture

Could you please tell me by which functions the errors are triggered?

luckysmack’s picture

how do i figure out what function specifically triggers the error? if you are talking about in commin.inc this the lines referenced in the wsod where the error was on line 1542:

1535 function l($text, $path, $options = array()) {
1536 global $language;
1537
1538 // Merge in defaults.
1539 $options += array(
1540 'attributes' => array(),
1541 'html' => FALSE,
1542 );

i have devel and coder if you need me to get any more info

v8powerage’s picture

No it doesn't breaks it, I'm using admin_dashboard and DHTML Menu 6.x-3.2 for long time, and had no problems at all, it should be in D7 instead this silly dashboard which they conceived…

skilip’s picture

Status: Active » Closed (fixed)