I've been developing my site with Drupal 7 and all was going fine until now. I have no idea what changed, but I now get the message "You do not have any administrative items." any time I try to access any admin pages when logged in as admin (user 1) or any other user for that matter. I can't access any pages except the "modules" page, but trying to make any changes is ineffective, and it just takes me right back to the main admin page with the same message displayed.

Since I can't access any admin pages, I've tried clearing the cache tables via phpmyadmin, and I've also tried to run update.php but nothing seems to help.

There must be SOMETHING that can be changed in the database to just give me access back to the admin. On a positive note, the front end seems unaffected, and all pages load just fine!

Comments

nowie’s picture

More info... I am now in the process of recreating the site on another Drupal 7 install, and I seem to be experiencing the same error when I assign a default parent item for a content type.

I then get the error messages:
Notice: Undefined variable: tab_root_map in _menu_translate() (line 770...
Warning: implode() [function.implode]: Invalid arguments passed in _menu_translate() (line 770...
Notice: Undefined variable: tab_parent_map in _menu_translate() (line 771...
Warning: implode() [function.implode]: Invalid arguments passed in _menu_translate() (line 771...

and then the "You do not have any administrative items." message gets displayed, and I lose access to all the menu items in the admin.

xjm’s picture

See #1235626: Drupal 7.7 admin/menu shows only 3 menu items now (Dashboard, Configuration, Advanced help). I think you need to clear the cache through the UI (which may not be possible in this situation) or using drush, because the menu router needs to rebuild. I don't think that just truncating the cache tables will accomplish this.

mrtoner’s picture

See here.

kadimi’s picture

See here

or simply check if there are active items in the "management" menu, the path is admin/structure/menu/manage/management

I had the same situation after I disabled all links on that menu during a profiling session and I forgot to activate them again.

The "Management" menu is the menu from where D7 grabs admin links.

KriS-2’s picture

... because and I always have posted "You do not have any administrative items." :(

KriS-2’s picture

Is it possible that someone find solution for this error in drupal 7?
When I install ANY modul I have to restore from my backup all site in previous working version.
Problem is:
When I install any modul that bring me problem that I can edit anymore anything.
I always have message "You do not have any administrative items."
I already tray all mentioned solution which I found in other colleague posts and alway is The same situation! :(
I'm desperate, please help me!
Thank you in advance!
Regards,
K.

ajayg’s picture

After I upgraded the site to D7, I faced this issue and tried everything that I could find with no luck. Finally I moved my 6.x themes out of my sites/themes directory (The 6.x themes were not enabled and just lying from the upgrade. and ran update.php and it fixed the the problem

drupalfan2’s picture