I am an idiot.

I was creating a new page view, wasn't paying attention to what I was doing, and I accidentally gave it path of /admin. This, of course, caused it to replace my top-level admin page. I quickly changed the page url to something else, but now whenever I go to the /admin page I see the message "You do not have any administrative items."

However... I still have access to all my admin sub-pages. And the /admin page still shows the tab that lets you switch to the Administer by Module view. But I can't get the actually admin by tasks view to display.

Here's what I've tried so far:

  • Using drush cc all
  • Uninstalling a module and re-installing the module
  • Running update.php
  • Rebuilding permissions on the site
  • Switching to another theme

Does anyone else have any suggestions? The site is still usable but this is really inconvenient.

Comments

ubersoft’s picture

... so I took one of my "user" accounts and gave it full admin privileges to see if it was just a problem with my admin account. The alternate account has the problem -- when it tries to access the /admin page it gets that message but it can still access all the sub-pages as long as I type those links in manually.

ubersoft’s picture

... I wonder if I could create a block view that contains all the admin view information on that page. I bet if I did that I could essentially continue to have a working admin page even though Drupal is being miserably uncooperative about bringing the default view back.

ubersoft’s picture

So I created a new menu called "Admin Build" and I went into the navigation menu that is standard with Drupal and changed the Site Building tree so that Admin Build was its parent. I then moved that block into my content area and set it so that it would only display on the admin page.

The end result is that Admin Build displays on the admin page just fine, but the "you do not have any administration items" also displays. So I can set up a panel block, divide it into two columns, create a few more menu blocks like that one and I've basically got my entire top-level admin page back.

So at least I know I can work around it. I just wish I knew how to fix it.

ubersoft’s picture

One of the reasons I posted was because when I searched for the phrase, pretty much all of the other scenarios had to do with someone installing a module that messed something up. That wasn't my situation -- I'd created a view that overrode the admin page. It was different enough that none of the suggested fixed made any sense to me.

But I got to thinking about it, and I wondered if maybe installing a module could fix my problem instead of break it. So I went looking for a Drupal module that would modify the top-level admin page.

Sure enough, there is a module called admin that looked like it would do the trick. I installed it, and voila -- instantly my admin page was back.

Out of curiosity, I disabled the module to see what would happen. My admin page was still good.

I hesistate to say "when in doubt start installing modules at random" but that's essentially what I did to fix the problem. :-)

igzeebihir’s picture

This solved the same issue for me after days of research...thanks!

DalSegno’s picture

Thanks, I spent hours on getting my admin/content menu back and this worked like a charm!

sabrawy’s picture

for me i deleted the latest module setuped and i run update.php that's solved it

drupalfan2’s picture