I installed the Drupal 7 dev module and then received the following error when logging in as an authenticated (but not admin) user:

Notice: Undefined index: authenticated user in _autologout_by_role() (line 526 of /home/foobarwebsite/public_html/sites/all/modules/autologout/autologout.module).

Comments

Jesuscares’s picture

Flushing the caches doesn't help. I don't see any configuration or other options that I may have had to set up. Any ideas?

gapple’s picture

Project: Persistent Login » Automated Logout
Version: 7.x-1.x-dev » 7.x-2.x-dev

This error seems to be solely in the realm of Automated Logout; not checking for existence of an array key before accessing it.

gianfrasoft’s picture

Thanks, gapple. You're right.

The code use an array with names of user's roles translated by t() function in the selected language.

I solved accessing to page admin/config/people/autologout n times, one for installed language, and saving all times.

gianfrasoft’s picture

Sorry I was wrong.

Problem disappeared for a while but now is still there...

johnennew’s picture

Status: Active » Closed (won't fix)

Closing old issue - this appears to be fixed in the supported 4.x branches.