Closed (fixed)
Project:
Privatemsg
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 May 2026 at 22:13 UTC
Updated:
25 May 2026 at 15:40 UTC
Jump to comment: Most recent
I found 2 problems with the "Send this user a private message" link:
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
ivnishComment #6
ivnishFixed both. Thanks!
Comment #8
lemartialou commentedThank you! It almost works, but now it seems that we have a caching problem...
Minimal way to reproduce:
- install drupal 11.3.9
- install and enable privatemsg
- authenticated user: "view user information"
- authenticated user: "write and view messages"
- create user1
- create user2
Now,
- Login as user1
- On user1's profile page no send link => good
- Go to user2's profile page
- you get the send link => good
Now,
- Login as user2
- On user2's profile page the send link is shown => not good
- Go to user1's profile page
- the send link is not shown => not good
Now,
- Rebuild the cache
Still as user2:
- Refresh user1's profile page
- now the send link is shown => good
- go back to user2's profile page
- now the send link is not shown => good
BUT
- Login as user1 again
- send link is shown on user1's profile => not good
- send link is not shown on user2's profile => not good
So you can rebuild the cache, it will be good for user1 but not for user2... well I hope it's clear and you understand what's happening here.
Good luck! I'm cheering for you from the bench! ^^
Comment #9
lemartialou commentedComment #11
ivnishComment #13
ivnishNice catch! Thanks! Could you test again?
Comment #15
lemartialou commentedOk, I've tested a bunch of scenarios, it seems that now the link behaves perfectly!
Well done! Your reactivity is amazing!
Thanks again! :)