I have placed the three blocks associated with that module ("Map showing locations of 10 most recent visitors", "VisitorLog" and "Visitor Log light" on one page.

"Map showing locations of 10 most recent visitors"does show locations, "Visitor Log light" does show locations ... BUT "Visitor Log" does NOT show any location of any visitor at all. Instead it show this message "No IP geolocation data found. Either the core Statistics module is not enabled or there is no data in the access log. Please visit the Configuration >> IP Geolocation page for more diagnostics.".

I have checked and the Core Statistics module is enabled .... and there's plenty of data in the access logs. What could be wrong?

Comments

rdeboer’s picture

Hi Bavaria,
So the data is there, not showing in the more complex of the two views.
Weird. You're using a very recent version of the Views and Views PHP modules, I trust?

If both are installed, try setting "Use aggregation:No" in the right hand column under "Advanced, Other" in the "/visitor-log" view. Maybe that will make the somethig spring into life? (you can always revert as the view is stored in code with the module).

Rik

PS1: maps may not show in the "Preview" but will show in the normal Page and Block views.

PS2: I have just realised there was no mentioning of Views PHP on the project page. However it does mention it in the README. I have updated the project page.

bavarian’s picture

Views module (version 7.x-3.3) enabled, yes !

Views PHP not enabled ... but will now and test again (version 7.x-1.x-dev)

But still no success with these 3 blocks on one page ....

But when checking the URL-adress of that faulty view directly http://mysite.com/visitor-log then it delivers the locations sorted by country ...

rdeboer’s picture

Assigned: Unassigned » rdeboer

Some good news... I can now reproduce your problem on my development system. As you say, the Page view works but the Block View gives that error about there being no locations.
Will investigate how this regression slipped into the code and get back to you.

rdeboer’s picture

Found it!
The View comes with a date range filter, which is exposed in Page mode only. When in Block mode the date range defaults to "from 0 to 0", which results in, well... no results.
So as an admin you need to go into the View, click Block and set the date range under the heading "Filter criteria".
That should do it.
Rik

rdeboer’s picture

Status: Active » Fixed
rdeboer’s picture

Title: Block "Visitor Log" not showing a single location » View "Visitor Log" not showing locations in "block" mode -- need to set default date range

Added a suitable default to this View when in Block mode.

rdeboer’s picture

Status: Fixed » Closed (fixed)

Available in dev snapshot now. Will be in 7.x-1.7