hi,
drupal 11.4.4
php 8.3.6
in user session page display The website encountered an unexpected error. Try again later.
in dblog page display php error;
TypeError: Drupal\session_inspector\SessionInspector::isMasqueradeSession(): Argument #1 ($data) must be of type array, true given, called in /home/......../public_html/web/modules/contrib/session_inspector/src/SessionInspector.php on line 80 in Drupal\session_inspector\SessionInspector->isMasqueradeSession() (line 135 of /home/......./public_html/web/modules/contrib/session_inspector/src/SessionInspector.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3612613-typeerror-isMasqueradeSession.patch | 607 bytes | dkmishra |
Issue fork session_inspector-3612613
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
dkmishra commentedI have created MR and also attached a patch. Please try it.
Comment #5
bolaghi commented#4 work form me and solved problem.
thx
Comment #7
philipnorton42 commentedYup! Happy with this. Sorry about the late response, I spotted the issue on Tuesday but haven't been able to get to it until now as I've been too busy.
It's actually a little tricky to replicate, but some modules will add boolean values to the session data that causes this module to then crash. This solves that problem nicely.
Thanks @dkmishra for the fix! Very much appreciated! :)
MR has been merged. I'll tag a new release in a little bit.
Comment #9
philipnorton42 commentedAdded to release 1.0.7.
https://www.drupal.org/project/session_inspector/releases/1.0.7
Comment #10
dkmishra commentedHi @philipnorton42, thanks for committing the fix.
I noticed I wasn't credited for this issue. Would you mind adding issue credit for my contribution if you think it's appropriate?
Thank you!
Comment #11
philipnorton42 commentedSorry! Of course it's appropriate. I've updated the contribution list now.
Comment #12
philipnorton42 commented