Closed (won't fix)
Project:
Automated Logout
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Jul 2016 at 19:57 UTC
Updated:
25 Apr 2026 at 19:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
afschComment #3
yogeshmpawarHi alexito,
Your patch is working for me but I have restructured your patch with some modifications to check that variable is already set or not.
Please check this patch will work or not.
Comment #4
yogeshmpawarAny Update on this issue ?
Comment #5
ajitsThe 7.x-5.x branch has been discontinued but cannot be deleted from drupal.org.
For Drupal 7, please use the 7.x-4.x branch.
Comment #6
ajitsThanks for using the issue queue to report the bug! I tried this with vanilla Drupal instance locally and did not encounter any issue being logged to watchdog or in php error logs.
Can you try with the 7.x-4.x-dev release of the module and see if you can still reproduce it? If yes, can you provide more elaborate steps to reproduce it?
Comment #7
tom.camp commentedUnless a user is editing their own account, this will always throw the
Undefined indexwarning.Line 339
$userid = $form_state['user']->uid;returns the user that is editing, not the user being edited.Line 340 in
$val = trim($form_state['values']['autologout_user_' . $userid]);is looking for the user being edited.So, if I am user 10 and editing user 400, line 340 is looking for the value
autologout_user_400but based on the code will be looking forautologout_user_10.In other words,
$current_uidand$useridwill always be the same and only the user being edit if the user is editing their own account.This is on D7 using version 4.5.
I am going to check on a vanilla D7 site, but this is what I am experiencing after upgrading to 4.5.
Comment #8
tom.camp commentedComment #9
ajitsThanks for the patch! Let's see what the testbot says before giving this a go.
Comment #10
the_g_bomb commentedThe patch is 8 years old; closing due to lack of response.
This is for an unsupported version.
Please reopen if this is still needed in a more recent branch.