Hi everyone,
when sending a new message, the system puts out the following error message: "Fatal error: Call to undefined function: subscriptions_hold() in .../privatemsg.module on line 2434". I've had the subscriptions module installed, but deinstalled it a long time ago.
Here's the code snippet of the concerning function privatemsg_subscriptions_handle:

function privatemsg_subscriptions_handle($message, $cron = FALSE) {
  subscriptions_hold($message, 'pmsg', 'insert', $message->uid);
  subscriptions_mailvars($message->type, $message->id, $message->author, 'pmsg', $cron);
}

Comments

Joe Malik’s picture

Forgot one point: Despite the error message, private messages are sent correctly, but there's no email sent.

Street-1’s picture

I have the same thing with 5.x-2.x-dev (2007-Aug-16). I have never used the Subscriptions module on this site though.

EnekoAlonso-1’s picture

Installing the subscriptions module (even if no permissions are granted to users for this module) solves the problem.

Now, I don't understand why this module is required neither why this is not mentioned anywhere.

salvis’s picture

chx is working to upgrade both Privatemsg and Subscriptions, and apparently he's factoring out duplicate functionality. The result at present is that Privatemsg requires Subscriptions, and Subscriptions requires mail_edit (which is part of Privatemsg).

I don't know what his plans are, but the 5.x-2.x-dev versions of both modules are work in progress and currently not stable.

chx’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)
mr.andrey’s picture

Priority: Critical » Normal
Status: Closed (fixed) » Active

Any update on this?

I just tried using PrivateMsg Jan-22 dev and Subscriptions beta9. The following message occurs when I send a private message with Private Message Notification module enabled:

Fatal error: Call to undefined function subscriptions_hold() in /home/transfp6/public_html/dev/sites/all/modules/privatemsg/pm_subscriptions/pm_subscriptions.module on line 106

Thanks,
Andrey.

EnekoAlonso-1’s picture

Same here. I just activated the pm_subscriptions module and got the error when sending a message. Before activating this module Private Messages were working fine.

Fatal error: Call to undefined function subscriptions_hold() in /home/spdba/public_html/modules/custom/privatemsg/pm_subscriptions/pm_subscriptions.module on line 106
berdir’s picture

Status: Active » Closed (won't fix)

Sorry for pinging the participants, I am closing old issues.

This version of Privatemsg is not supported anymore, maybe it is already implemented in Privatemsg for Drupal 6 and if not, you are welcome to open a new issue for it.