So I did a quick install of RootCandy 7.x-1.x-dev; set as default theme. It immediately, tough subtly, produces this error:

Fatal error: Call to undefined function _rootcandy_init_role_menu() in 
\drupal7\sites\all\themes\rootcandy\template.php on line 30 

The first time it I installed RootCandy, I continued to try to make it work until it swallowed every GB of memory available. I shut down everything (Windows 7) and the system was still using 3.2 GB. So I rebooted and Win 7 did a weird recovery thing (a first). This may be the fault of M$.

I installed RootCandy again as the default admin menu. Quickly recovered from near WSOD condition with an /update.php but I have to say this: please - Fix this BUG.

Comments

etreby’s picture

i have the same problem please FIX i have tried to fix by adding this in template.php after line 240

off course i get it from the old 6.XX

function _rootcandy_init_role_menu() {
  global $theme_key;
  global $user;
  $i = 100;
  $settings = theme_get_setting($theme_key);
  $menu = array();

  $roles = user_roles(FALSE);

  foreach ($user->roles as $rid => $role) {
    if (!$weight = $settings['role-weight-'. $rid]) {
      $settings['role-weight-'. $rid] = $i++;
    }
    $menu[$settings['role-weight-'. $rid]] = $rid;
  }
  ksort($menu);
  return $menu[key($menu)];
}

it's still buggy but i hope some one fix it properly

Nchase’s picture

the fix in #1 worked for me. Thank you!

acausing’s picture

Notice: Undefined index: role-weight-3 in _rootcandy_init_role_menu()

after adding i have this error...

sign’s picture

Status: Active » Fixed

Just committed a fix for this to the dev version.
http://drupalcode.org/project/rootcandy.git/commit/a3d4508

sign’s picture

Status: Fixed » Closed (fixed)

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