I installed the module and I'afraid did not even look at it other than activate it: I did not see the message that I could activate to inform users that the site was on maintenance :( Result: no-one but the admin could login and the message shown was: "Sorry, you do not have the permission to login at this time".

After various hours of searching for that error/informative message and informing users by email it wasn't their fault, I finally found the thread where Greg proposes to create a module for this task back in september.

What I did was to install and activate the module. And that was that, no login afterwards. No "login permission" found anywhere, no "activate maintenance_help", no warning that the module "was on", nowhere to find where the message "Sorry, you do not ..." came from. I did put the site on maintenance mode (offline) for updating with update.php but put it back on line. No way.
Yes, I know that being a dev I should not have used it on a live site, yes, but I really expected it to do something other than simply putting the site off for loging in. At least inform it was present and was doing something.

Until it is fully functional I would suggest:
- mentioning on the project page the difference, if any, between using .../?q=admin/settings/site-maintenance and the maintenance_helper. Does admin use one or the other, one before the other o the other way round?
- adding to the default message shown some reference to the fact that it is put there by the module.
- instead of the default hard-coded message some switch to be able to de-/activate it.
- the default message should inform of what is happening. After all, once it is workig properly the message can be changed.

It is easier for developers to inform than for every newbie to find out the hard way. Unless the developer programs for other developers only. Sorry but I have learned many many things the hard way.

Keep up the good work, Greg :)

Felipe :)

Comments

greggles’s picture

Title: Message "Sorry, you do not have the permission to login at this time" at login. » Provide README for Maintenance Helper

Thanks for your feedback.

In general about the bugginess of the module...the module has one release in a development release state. Since all software has bugs, having only a dev version should be a pretty clear indication that this too, as a dev, will also have bugs.

- mentioning on the project page the difference, if any, between using .../?q=admin/settings/site-maintenance and the maintenance_helper. Does admin use one or the other, one before the other o the other way round?

I tried to do this with the current description. If some part of it seems lacking, please expand.

- adding to the default message shown some reference to the fact that it is put there by the module.

I don't think it makes sense to add to the message any information about the source of the message. The message is shown to end users who usually don't know about modules and can't do anything with the information. It would help with debugging, but it is not a good error message from a usability standpoint.

- instead of the default hard-coded message some switch to be able to de-/activate it.

Visit admin/settings/maintenance_helper where you can do exactly that. See also http://drupal.org/files/images/maintenance_helper.png which is now on the project page.

the default message should inform of what is happening. After all, once it is workig properly the message can be changed.

Same as above reasoning about the context of the user.

The module absolutely needs a README.txt that talks about granting people the permission to login and the location of the settings page. I'll try to get that shortly.

FelipeT’s picture

Hi! Thanks for the quick response.

I did and do not really know the level of advancement that a dev module has, not being a developer myself. Please bear with me. I look at it more from a user's point of view. It is also the first issue I report about since I am sure of it. There are many I do not really know ;)

I tried to do this with the current description. If some part of it seems lacking, please expand.

Mm, I'll give it a try. It could read something like:
" * You want to perform maintenance on your site that may cause errors, but instead of showing the usual message that site is offline preventing users from accessing it, you still want users to be able to read the site."

- adding to the default message shown some reference to the fact that it is put there by the module.

I don't think it makes sense to add to the message any information about the source of the message.
The message is shown to end users who usually don't know about modules and can't do anything with
the information. It would help with debugging, but it is not a good error message from a usability standpoint.

All right. Yes, I understand. I installed the module together with a bunch of others. Probably it is not a good way to do it and also I did not do it on a test site, true. The reason for my suggestion is that I was not able to find anywhere yet the default message used. So I had no idea where the problem came from. Mentioning maintenance_helper, or even just maintenance, would have given me a clue and pointed me in the right direction.
Also, if my users had been able to login but not edit or contribute content that would have given away some indication of where the trouble was.

- instead of the default hard-coded message some switch to be able to de-/activate it.

Visit admin/settings/maintenance_helper where you can do exactly that. See also http://drupal.org/files/images/maintenance_helper.png which is now on the project page.

Yes but it is not activating the message or not, it is activating and deactivating the actual module that I refered to. It may seem useless to you but if one tries it and for some reason it doesn't work yet one could deactivate it in the same config page. I guess you take for granted that admins are to do that in the modules page. I expected to find that in the config and I am probably wrong on this.

- the default message should inform of what is happening. After all, once it is workig properly the message can be changed.

Same as above reasoning about the context of the user.

The message "Sorry, you do not have the permission to login at this time" threw me. I had no idea what was wrong. I went looking for wrong permissions, emptying caches, clearing cookies and that.
Is it not more important for the module to not create confusion while it is in development? Not that much trouble for a few users to actually see "(maintenance being carried out.)", is it? At least until the module reaches a more stable stage.

The module absolutely needs a README.txt that talks about granting people the permission to login and the location of the settings page. I'll try to get that shortly.

Yes, absolutely. I think it should address the main question: ¿Does one activate the Helper instead of putting the site offline, does one activate it and then put the site offline or does one activate it and it takes care of putting a meaningful message, custom or not, for users to see?

I probably do not see most aspects of the implications of this module, do not address properly what I see as problems and certainly do not know the problems involved in solving the bugs ;) I just mention what confused me and that took me a long time to figure out.

Thank you for explaining, Greg. Newbies are like this ;) I'll be on the look out for updates and give more feedback if it is useful.

greggles’s picture

Status: Active » Needs review

There is a permission error here: "login to site" is the name of a permission provided by this module.

So, here is a README.txt

INTRODUCTION
-----------------
The maintenance helper is intended to provide a set of tools useful to admins while upgrading a site. By providing a permission to login to sites, the module allows admins to keep their site visible to users while preventing users from logging in and creating content or posting comments. This is a more flexible solution than simply putting a site into maintenance mode.

The module optionally displays a message to end users which can be used to announce, for example, "If you see this message you are looking at the site on the old server and will not be able to login. Once this message disappears that means your DNS is updated to the new server and you will be able to login."

INSTALLATION
----------------

1. Copy the files to your sites/all/modules directory.

2. Enable the Maintenance Helper module at Administer > Site building > Modules

3. The permission to login will be enforce immediately after installation, so you will probably want to immediately go to Administer > User management > Permissions and grant "login to site" permission to most of the roles on your site.

FEEDBACK, SUPPORT, CREDIT
---------------------------------
View bugs and feature requestsfor the module at http://drupal.org/project/issues/maintenance_helper where you can also submit a new bug or feature request.

Developed by Greg Knaddison - greggles http://drupal.org/user/36762

How does that seem? What is it missing?

greggles’s picture

Assigned: Unassigned » greggles
Status: Needs review » Fixed

Ok - fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

claar’s picture

The README.txt doesn't seem to be in CVS -- am I missing something?

greggles’s picture