Fatal error: Unsupported operand types in ...\sites\all\modules\privatemsg\privatemsg.module on line 1158

Happens if I subscribe to content type with Notifications module and choose Privatemsg as send method.

D6.11
messaging-6.x-2.0
notifications-6.x-2.0
privatemsg-6.x-1.x-dev

CommentFileSizeAuthor
#4 messaging.privatemsg_fix.patch1.05 KBberdir

Comments

naheemsays’s picture

Without testing, I would assume that that that is an error in the messaging module as the dev branch of privatemsg has seen some api changes that may not have been followed through in the messaging module yet.

henrijs.seso’s picture

yes, I tested before and it did work.

jannalexx’s picture

same error same versions, cron could not run so I had to remove this line of code

berdir’s picture

Project: Privatemsg » Messaging
Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new1.05 KB

Privatemsg had (another ;) ) API change, try the attached (untested) patch.

henrijs.seso’s picture

tested. works.

jannalexx’s picture

tested. works.

skehillr’s picture

tested and works fine.

David Goode’s picture

Status: Needs review » Closed (fixed)

didn't notice this thread, but just quickly fixed the problem here http://drupal.org/node/464002 with a basically identical patch to the one you posted. Great minds think alike I guess ;-) It is now committed to DRUPAL-6--2. I'll close this thread in favor of the other one if there are any issues.

Thanks,
David