User last visit unchanged

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
alarocca
Posts: 3
Joined: 08 Sep 2010, 14:38

User last visit unchanged

Post by alarocca »

Mantis Release: 1.2.2

Account management shows some user information, including creation date and last visit. Both timestamps are exactly the same. Last visit do not change even if the user enter Mantis and do some activities.

In order to understand if it is a page issue (the creation date reported on both column), I checked the database and found the same date too.

I guess the method update_last_visit (or something like that) fails or is never called.
atrol
Site Admin
Posts: 8578
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: User last visit unchanged

Post by atrol »

I am not able to reproduce this
Add the following line to file config_inc.php and login as administrator

Code: Select all

$g_show_queries_count = ON;
 $g_show_queries_list = ON;
Check, if you see something like the folllowing lines at the end of the page
41 0.0004 user_api.php:1148 user_update_last_visit()
UPDATE mantis_user_table SET last_visit= 1283973277 WHERE id=1
Please use Search before posting and read the Manual
alarocca
Posts: 3
Joined: 08 Sep 2010, 14:38

Re: User last visit unchanged

Post by alarocca »

found the mistake - the html_footer function was customized losting the call to user_update_last_visit

thank you atrol
atrol
Site Admin
Posts: 8578
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: User last visit unchanged

Post by atrol »

thanks for giving feedback
Please use Search before posting and read the Manual
Post Reply