User1 block any messages from User2 in his message folder, and when User2 try to send new letter to User1, I see this error:

PHP Fatal error: Unsupported operand types in /sites/all/modules/privatemsg/privatemsg.module on line 1277

There is no error when User1 remove block from User2.

Comments

berdir’s picture

Priority: Normal » Critical
Status: Active » Needs review
StatusFileSize
new803 bytes

Oh, I assume I introduced that when I re-rolled the block multiple patch..

Please try the attached patch and report if it works.

dicreat’s picture

No, patch don't work for me.

berdir’s picture

StatusFileSize
new1.34 KB

Hm, it would help if I would actually test my patches :)

Try the updated patch, this also removes a unecessary part in pm_send_validate().

dicreat’s picture

Now works fine, thanks!

dicreat’s picture

After updating to latest dev-version at 2009-Apr-24, I still have this error: Unsupported operand types in privatemsg.module on line 1277
When I apply patch above, error gone away.

Then I start testing Notifications module 6.x-2.0-beta5 at 2009-Apr-24 with privatemsg and if I try to send notification via Privatemsg, I have this error:

Unsupported operand types in /sites/all/modules/privatemsg/privatemsg.module on line 1161
(after applying patch above error happen at line 1158)

berdir’s picture

- This is just a patch, this has not been fixed yet.
- Messaging needs to be updated because of a change in privatemsg, integration is currently broken. Remember, this is a -dev release ;)

liam mcdermott’s picture

Status: Needs review » Reviewed & tested by the community

This is working for me, code looks good, ready to commit.

Also, marking #445508: Returning blocked messages to hook_privatemsg_block_message() causes fatal error as a duplicate.

litwol’s picture

Status: Reviewed & tested by the community » Fixed

thanks.

Status: Fixed » Closed (fixed)

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