With Send private message to author link on a Node, the author isn't prefilled in the "To:" field of the private message.

CommentFileSizeAuthor
#5 2916284-prefill-node-author-1.patch636 bytessershevchyk

Comments

kruser created an issue. See original summary.

idiaz.roncero’s picture

Same here.

idiaz.roncero’s picture

Hi there;

I solved this issue on my project. I was working on local with PHP 5.6 and switching to PHP^7.1 solved the issue.

I guess some of the code won't work with previous versions of PHP and it won't fail also, leaving you with a silent error.

Maybe the project maintainer should update the docs to reflect the minimum PHP version required.

sershevchyk’s picture

I used PHP v.7.1.14 and I have the same issue

sershevchyk’s picture

StatusFileSize
new636 bytes

I think what found a bug when link generated, for recipient now used entity id, but we need use entity owner id

sershevchyk’s picture

Status: Active » Needs review
jaypan’s picture

Assigned: Unassigned » jaypan
jaypan’s picture

Status: Needs review » Fixed

Shefarik - Thanks for your patch. I have also applied the fix to comments, which would had the same bug incorporated into them.

Maybe the project maintainer should update the docs to reflect the minimum PHP version required.

The module is compatible with PHP 5.6, the minimum requirement for Drupal 8. It was a bug in the code, not a PHP version conflict. The diagnosis of upgrading to PHP 7 was incorrect.

  • Jaypan committed 305fdbc on 8.x-1.x authored by Shefarik
    Issue #2916284 by Shefarik, Jaypan: Send private message to author doesn...

Status: Fixed » Closed (fixed)

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