Erroneously logging

Permalink Browser Info Environment

I just gave it a try on a test instance (c5 8.5.2) and found a bug.
If "Always track user locale" option in System&Settings - Multilingual Setup is disabled the visitor logging is erroneous. It logs correctly the first visitor and after that it will group any visit from any visitor under the second visitor record.

I believe it has something to do with this piece of code in record.php
$session = Core::make('session');
        $session_id = $session->getId();

You are using the combination of $session_id and date to retrieve the history but the $session_id is empty starting from the second visitor hence the grouping of all the visitors under the second one during a day.

Enabling "Always track user locale" is instantly resolving this issue but is there any way for this to work with that option disabled?


Type: Discussion
Status: New
View Replies:

concrete5 Environment Information


Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.