I'm having a ton of problems with menus, someone please tell me what I'm doing wrong.

Right now, I can show a MENU_NORMAL_ITEM on my dev environment on XP, but when I stage it (via svn export) on my hosted linux server, I get an access problem and it doesn't show up. it's the same code? I can't figure out how to debug this.

Here is what I'm doing:

if ($may_cache) {

	global $user;
	$roles = array_values($user->roles);
	$allowed_roles = array('production manager', 'photo editor', 'managing editor', 'client' );

    $items[] = array(
      'path' => 'ops',
      'title' => t('OPS'),
      'callback' => 'workflow_ops_page',
      'access' => array_intersect($roles, $allowed_roles),
      'type' => MENU_ITEM_GROUPING,
      'weight' => 1
    );
    $items[] = array(
      'path' => 'ops/PhotoEditor',
      'title' => t('Photo Editor Dashboard'),
      'callback' => 'workflow_staff_page',
      'access' => user_access('photo editor'),
      'type' => MENU_NORMAL_ITEM,

    );
...
}
return $items;

Comments

mixersoft’s picture

I realized the CODE is the same, but the DB settings are not. I updated the new privileges on my hosted site.

This stuff is hard...