Software error: %BR% Can't use an undefined value as an ARRAY reference at /wikiroot/twiki/lib/TWiki/Plugins/UserInfoPlugin.pm line 173.Those lines read:
172 my ($visitors) = &getCurrentVisitors(undef, $twikiGuest); %BR% 173 return "" if !@$visitors;Unfortunately I'm a Perl dummy. Anyone has any suggestions? Thanks!
/tmp
or in lib/twiki/data/.session? Lookup the lib/twiki/Plugins/SessionPlugin.pm somewhere at lines 904+905 and
toggle the comments of the both lines to get sessions stored in lib/twiki/data/.session. Unfortunately this is
hardcoded into the UserInfoPlugin.
[[%ATTACHURL%/%TOPIC%.zip][Download]] link fails if this Plugin is installed; it works only here on TWiki.org. Better to write the full URL [[http://twiki.org/p/pub/Plugins/%TOPIC%/%TOPIC%.zip][Download]]. Actually I think it is better to keep the original text "Download the ZIP file from the Plugin web (see below)" (and fix the viewfile issue on TWiki.org.)
lib/TWiki/Plugins/UserInfoPlugin/Core.pm in line 27 and watch out for the
lines ignoreHosts and ignoreUsers in your debug.txt logfile. This will give you a hint what gets hidden.
debug.txt looks like:
| 18 Aug 2006 - 06:19 | - UserInfoPlugin - ignoreHosts= sub getVisitorsFromSessionStore the Wikinames like MarkusBajones or MichaelDaum should be retrieved.
Instead the Loginnames like bajo is read from the cgisess_* files.
With this the line 445 in Core.pm makes sense too me next if $includeNames && $wikiName !~ /$includeNames/; .
If the wikiName and the includeNames are not in includeNames go to the beginning of the loop and start it.
So if there are no real Wikinames it just jumps over them and never prints out anything.
Could this be true or am I just totally wrong?
Btw. is the given timespan the duration of the cgi Sessions ?
Core.pm, sub getVisitorsFromSessionStore after: %VISITORS% %NRVISITORS%
$TWiki::cfg{Sessions}{Dir} = '/rootTWikiDir/working/tmp';
# check back next unless TWiki::Func::topicExists($mainWeb, $wikiName);If $wikiName contains a login name (eg gmc) it will of course not find the topic, it should be checking for KoenMartens instead.. My quick fix is to change the check to:
# check back next unless TWiki::Func::topicExists($mainWeb, TWiki::Func::getWikiName($wikiName));Although i could imagine the best solution is to convert all usernames/wikinames/whatever internally to canonical form with getCanonicalUserID(), although that's only in 4.2 of course.
| WebForm | |
|---|---|
| TopicClassification | PluginDevelopment |
| TopicSummary | |
| InterestedParties | TravisBarker |
| RelatedTopics | NatSkinPlugin, NatSkinPluginDev, UserInfoPlugin, TodaysVisitorsPlugin, TodaysVisitorsPluginDev |
| I | Attachment | History | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|---|
| |
Core-Change-SessionDir.patch | r1 | manage | 1.0 K | 2007-06-20 - 11:45 | UnknownUser | Patch to look for session files in the right place. |
| |
GetVisitors-patch.txt | r1 | manage | 0.6 K | 2006-06-06 - 15:47 | UnknownUser | Patch for problem with the getVisitors() routine that causes it to produce duplicate user entries when spanning months (log files). |
| |
NrLastVisitors-patch.txt | r1 | manage | 1.3 K | 2006-05-26 - 18:26 | UnknownUser | Patch for problem with %<nop>NRLASTVISITORS% |