Closed (fixed)
Project:
Posthog Analytics integration
Version:
2.1.1
Component:
Code (posthog)
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2026 at 15:34 UTC
Updated:
6 May 2026 at 07:55 UTC
Jump to comment: Most recent
Comments
Comment #4
anybodyCreating a 2.1.2 hotfix release. @grevil please check if the correction is fine afterwards.
Comment #5
anybodyThe error appeared on login. Do we already have a test testing the login in combination with the selected "always identify" roles and / or the advanced identification?
If not, we should add both as separate and combined tests with only "authenticated" and with a custom role.
Comment #6
grevil commentedThanks @anybody!
The old implementation of "shouldUserBeIdentified", looks really prone to errors... No idea what I thought when I implemented this... Best thing is, that "shouldUserBeIdentified" is never called with the user argument 😅.
Your change LGTM and totally makes sense. It just worked before, because "getUserDistinctIdBySetting" used currentUser as a fallback itself, when we passed the NULL user in the past.
Going to add a simple login test for posthog_php
Comment #7
grevil commentedI'll add the test through #3586186: "identify_users_on_login" setting form element missing.