This is baffling. Since the update to 2.6, the automated logout block removes itself from my sidebar and returns itself to the list of unused blocks at seemingly random intervals. I have absolutely no idea what could be causing this; there are no watchdog entries indicating anything's gone wrong.

Comments

manoj.surala’s picture

Block disappears because of the following code in autologout.module file (Line #57).

function autologout_block($op = 'list', $delta = 0, $edit = array()) {
  global $user;

  // Turn block off if module turned off, anonymous user, or exluded by role.
  if (!_autologout_local_settings('enabled') || $user->uid == 0 || _autologout_exclude_by_role()) {
    return;
  }

I have attached a small patch which might help you.

ferrum’s picture

#1 is the solution for the problem mentioned in http://drupal.org/node/1267218 but not for the problem mentioned here.

The issue here is that the block which was assigned to any region before is 'automatically' moved back to the list of unused blocks, randomly, also no idea what could cause this automatism.

manoj.surala’s picture

No. Actually I had the same problem mentioned in this issue. After doing changes I've made in the patch I submitted it was solved. So I don't think my answer belongs to issue node http://drupal.org/node/1267218

johnennew’s picture

Status: Active » Closed (won't fix)

I do not believe this is an issue in the supported 4.x branches - older branches are not being supported. Closing old issue.