Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
ravis CreditAttribution: ravis commentedI 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.
Comment #2
erasoft CreditAttribution: erasoft commentedHi,
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...
Comment #3
ravis CreditAttribution: ravis commentedIf 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.
Comment #4
erasoft CreditAttribution: erasoft commentedI 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?
Comment #5
ravis CreditAttribution: ravis commentedI 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".
Comment #6
erasoft CreditAttribution: erasoft commentedlololol! 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.
Comment #7
ravis CreditAttribution: ravis commented@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
Comment #8
erasoft CreditAttribution: erasoft commentedah... 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... :|
Comment #9
erasoft CreditAttribution: erasoft commented...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.
Comment #10
erasoft CreditAttribution: erasoft commentedahhh. ....and it's neccessary to check admin mode :)
Comment #11
erasoft CreditAttribution: erasoft commentedit seems good:
if ( (variable_get( 'maintenance_mode' ) == 0) || ( in_array('administrator', $user->roles) ) ) print drupal_render($main_menu_tree);
Comment #12
ravis CreditAttribution: ravis commentedthank you @erasoft for sharing the solution :)