Hi,
Maybe I'm wrong.... but...
I have installed a new drupal 7 and choose this theme. I like it and it's absolutely perfect to me...
Maybe I set something badly, but...
If I go to /user/login on my site(I not loggen in yet), I see the whole main menu without any autentication.
Can it be true? or I did somesthing big mistake?
Thank you.

Comments

ravis’s picture

I am not sure what is your problem.

can you please post a screenshot of homepage and /user/login page.
You can use http://pici.in to upload screenshot.

erasoft’s picture

Hi,
I talk about this: http://ge.tt/9Qp7ixA?c
(There is a download tab...)
On the picture the site is in maintenance mode and I think there shouldn't be main menu...
Thank you...

ravis’s picture

If the site is in maintenance mode, you should not even get login page.
I think there is some problem in your Drupal settings.

Please clear browser cache and Drupal cache (admin/config/development/performance)

Also try changing theme to Drupal default Bartik theme.

erasoft’s picture

I can't imagine what kind of setting can be bad. I have installed a new version of dp7(7.10), made some static page and tried this theme... Almost everything is in original settings except temp folder, site name and some other basic settings... and I didn't modify anything on the theme...
I just started to build up the pages in maintenance mode in the evening. at night logged out and in the next morning I tried to login again by typing the path (domain/user/login).... and the menu was there. since that I removed the login(just for trying) from the menu(user/login), but nothing has changed.
plus I realized since that, if I don't set the login page as an exception page at the block's setting, the block will appear as well....
I tried it on chrome, firefox and safari... all of them show the same interface. :|
Have you got any idea please?

ravis’s picture

Assigned: Unassigned » ravis
Status: Active » Closed (works as designed)

I cannot help you in this regard, because this is not a theme issue.
Please search on Drupal.org or Google.com "how to login when site is in maintenance mode".

erasoft’s picture

lololol! Do you know any other kind of login in maintenance as domain/user? :D
I think this is absolute error of this theme. If I set the site any other theme I don't get this interface error.
Therefore I think this is a massive and OPEN security bug. ;D
Please try to install a test system and try it.
Thank you.

ravis’s picture

@erasoft,
Ok, the problem is menu / blocks are visible at login page (domain/user/login) when the site is in maintenance mode.

This is actually not a theme problem, but this is how Drupal is supposed to work.
You will get a normal login page even in maintenance mode.

Refer to this page for patch, if you do not want this feature:
http://drupal.org/node/722434

erasoft’s picture

ah... I understand and accept, but in this case, is maintenance_mode variable not useable at the template?
I just wondering bartik can solve this problem... somehow it can to do... :|

erasoft’s picture

...at the end I have modified the template this:

if ( variable_get( 'maintenance_mode' ) == 0 ) print drupal_render($main_menu_tree);

and it works fine.... it's true there is a black line(the menu background) but the menu is invisible...
thank you. bug solved.

erasoft’s picture

ahhh. ....and it's neccessary to check admin mode :)

erasoft’s picture

it seems good:

if ( (variable_get( 'maintenance_mode' ) == 0) || ( in_array('administrator', $user->roles) ) ) print drupal_render($main_menu_tree);

ravis’s picture

thank you @erasoft for sharing the solution :)