1

My admin toolbar doesn't showing up. $page_top in html.tpl.php doesn't have any value.

Why doesn't $page_top have any value? How do I fix this?

closed as too broad by Елин Й., Krishna Mohan, Mołot, Scott Joudry, kenorb Jan 6 '16 at 10:56

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Where do you check it's value? How do you do it? – Mołot Jan 4 '16 at 9:24
  • In html.tpl.php, I erased all the code except print $page_top – Syamsoul Azrien Jan 4 '16 at 10:31
  • Is it any problem with the database.. – Syamsoul Azrien Jan 4 '16 at 10:32
0

Try this CSS.

#admin-menu, #admin-menu .dropdown {
  z-index: 9999;
}

.logged-in #oa-navbar {
  top: 25px;
}
  • No. It will not work because there will be no element that have id #admin-menu. print $page_top should print all the admin toolbar. But in my case, $page_top doesn't have any value. $page_top=""; – Syamsoul Azrien Jan 4 '16 at 7:51
  • "regions[page_top] = Page top" ,check your .info file of theme this region is defined or not . – Vikram fz16 Jan 4 '16 at 8:05
  • yes, the regions[page_top] is defined in my .info file. – Syamsoul Azrien Jan 4 '16 at 8:14
0

I just solved it.

Stupid mistake by me. I'm new to Drupal. I tried to create user (admin) directly from the database. Yes, I can login, but the admin toolbar(menu) will not appear.

How to solve the problem?

  • Just create user with the normal(correct) way - from the website.
  • Don't create user directly from the database.

Not the answer you're looking for? Browse other questions tagged or ask your own question.