Hello,
I'm having a weird issue – it's generating error log messages, but it appears that the admin is working fine.
The error is:
Code
- "Call to a member function userGivenName() on null" at [...]perch/core/runway/apps/content/async/get-lock.php line 39
It appears to occur when I save a piece of content, for example at the URL:
Code
I'm using a custom auth plugin. Looking in the content_locks table, the userID is 0.
The immediate trace is:
Code
- "[...]perch/core/lib/api/PerchAPI_AuthPlugin.class.php:69",
- "[...]perch/core/lib/PerchUsers.class.php:32",
- "[...]perch/core/inc/auth_light.php:14",
- "[...]perch/core/runway/apps/content/async/get-lock.php:6"
My resume_session method returns an array (as per the docs https://docs.grabaperch.com/api/auth/) with keys email and role.
As far as I can tell, if it can't get a lock, then it's looking for a PerchUser object which (obviously) it doesn't have.
Am I doing something wrong?
thanks
iosman