Item14480: VISITORS & NRGUESTS returning no results

Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release:
Applies To: Extension
Component: UserInfoPlugin
Reported By: LynnwoodBrown
Waiting For:
Last Change By: GeorgeClark
I recently noticed in site updated to latest Foswiki (2.1.4) that the %VISITORS{}% macro is not returning any results and %NRGUESTS% always returns "0", even though I confirmed that there were both authenticated users and guests on the site (by monitoring events.log ). The LASTVISITORS and NEWUSERS do seem to be working as expected.

-- LynnwoodBrown - 14 Sep 2017

That's a side effect of changing the session file format to Storable from the default Data::Dumper format. It was changed by Item13563 in order to support unicode WikiNames.

The solution is to use the CPAN:CGI::Session ->find() call to search the session store rather that reading the files directly.

-- GeorgeClark - 15 Sep 2017

Note that counting of guests and visitors will become unreliable if Guest Sessions is disabled. For public facing sites, that's a good thing to use. It prevents the search bots from flooding the session store with useless sessions.

-- GeorgeClark - 15 Sep 2017

ItemTemplate edit

Summary VISITORS & NRGUESTS returning no results
ReportedBy LynnwoodBrown
Codebase 2.1.4
SVN Range
AppliesTo Extension
Component UserInfoPlugin
Priority Normal
CurrentState Confirmed
ReleasedIn n/a
Topic revision: r2 - 15 Sep 2017, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy