I can't send messages with the privatemsg module. When I go to the "Compose" tab, I see the following two errors:

* warning: Attempt to assign property of non-object in /var/www/modules/privatemsg/privatemsg.module on line 1489.
* warning: Attempt to assign property of non-object in /var/www/modules/privatemsg/privatemsg.module on line 1490.

When I attempt to send the message, I get a white page with just this on it:

Fatal error: Call to undefined function subscriptions_hold() in /var/www/modules/privatemsg/privatemsg.module on line 2475

Hope this helps.

Comments

salvis’s picture

Are you using the latest Privatemsg 5.x-2.x-dev?

Have you enabled the mail_edit module (part of Privatemsg)?

You also need to install the latest Subscription 5.x-2.x-dev, see http://drupal.org/node/168470.

detot’s picture

I get the same error when I'm logged in as first user.

Attempt to assign property of non-object in /var/www/vhosts/mysite.com/httpdocs/sites/all/modules/privatemsg/privatemsg.module on line 1489.

Attempt to assign property of non-object in /var/www/vhosts/mysite.com/httpdocs/sites/all/modules/privatemsg/privatemsg.module on line 1490.

I have all the latest versions installed:

Mail Editor 5.x-2.x-dev
Privatemsg 5.x-2.x-dev
Subscriptions 5.x-2.x-dev

But the privatemessaging seems to work.

salvis’s picture

Title: Unable to Send Messages » "Attempt to assign property of non-object" - Unable to Send Messages

Apply the patch in http://drupal.org/node/167756#comment-294567 and upgrade the database.

Please let us know how it goes.

I sure hope that chx will commit the patch RSN...

chx’s picture

Status: Active » Fixed
bobwaycott’s picture

I have applied the patch. The problem persists. I'm running Drupal 5.2.

salvis’s picture

Yes, it was a different problem, but chx has just commited the fix. Either get it from CVS or wait until the packaging script has created a new 5.x-2.x-dev.

bobwaycott’s picture

Excellent. Thanks for the update here. All is well.

Great job, guys.

Anonymous’s picture

Status: Fixed » Closed (fixed)