I have the latest release of privatemsg on Drupal 10.4.2, which works fine. But I cannot figure out how to get the link to send a PM to a user. It is not added automatically to user profiles pages, and no relevant views/blocks are created. And when I try to create a view, the send a PM field is not proposed. Am I missing something? Please advise.

Comments

stado created an issue. See original summary.

ivnish’s picture

Version: 2.0.0-rc10 » 2.0.x-dev
Assigned: Unassigned » ivnish
Category: Support request » Bug report

You are right. This link was missed

stado’s picture

Thank you. So, hopefully, it will be added soon? I'll be waiting. Otherwise, the module is very good.

ivnish’s picture

Yes, I will plan it soon

  • ivnish committed 0dd6ed36 on 2.0.x
    Issue #3505306 by stado, ivnish: Cannot get link to send a PM to a user
    
ivnish’s picture

Assigned: ivnish » Unassigned
Status: Active » Fixed

I added a pseudo field for this. Navigate to /admin/config/people/accounts/display and enable this if not enabled.

stado’s picture

Status: Fixed » Active

Thanks.
Here is some quick feedback:
I installed 2.0.0-rc11, and added the field "Send this user a private message".
The link is well added to the user profile page, but when I click on it, I get this warning:
Warning: Undefined array key "weight" in privatemsg_user_view() (line 466 of modules/contrib/privatemsg/privatemsg.module)

and the link points to my domain root rather than my D10 root and therefore does not work (page not found).

After correcting the path in privatemsg.module manually (by adding my D10 root at the beginning), the link works fine.
But I am not sure what to do about the warning.
Please advise.

ivnish’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.