When trying to send a Private message I get the following error:

Fatal error: Call to undefined function: subscriptions_hold() in /home/*******/public_html/portal/modules/privatemsg/pm_subscriptions/pm_subscriptions.module on line 106

I believe I am using the 5.x-2.x-dev branch and do have pm_subscriptions installed. However, I'm new to Drupal so it's possible something is not configured right.

Can you please give me any suggestions as to how to resolve this problem? Happy to co-operate with any testing and debugging that's needed,

Thanks
Gareth

Comments

knausz’s picture

I may have a similar problem - After clicking 'send message' I get the white screen of death. The message does in fact get sent, but this is not user friendly.

I am also new, what am I doing wrong? I'm also happy to co-operate with any testing and debugging that's needed.

Thanks!

-Imre

internetdevels’s picture

I have the same problem

I've found than the problem in the Private message subscriptions Module. If I disable this module, the error dissapears.

The bug is anywhere in the Private message subscriptions Module.

mr.andrey’s picture

I'm experiencing this as well. Confirmed that it's the PM Subscriptions module. Would love to have this working.

Best,
Andrey.

Street-1’s picture

By wrapping the function around line 106 in comment tags, see below, I am able to get rid of the error message. The error had only appeared when I had not previewed the message first.

As near as I can tell, as long as cron is set up, commenting out this function has no effects on pm performance. I am by no means a php exert and have only done limited testing since this hack. I would be interested to know what you all find happens.

This is what I commented out:

/********
function pm_subscriptions_subscriptions_handle($message, $cron = FALSE) {
if (!$cron) {
subscriptions_hold($message, 'pmsg', 'insert', $message->uid);
}
$variables = ($unserialized = unserialize($message->variables)) ? $unserialized : array();
pm_subscriptions_mail_edit_variables($variables);
subscriptions_mailvars($message->type, $message->id, $message->author, 'pmsg', $cron);
}
*************/

michelle’s picture

Same error here. Running 5.x-2.x-dev (2008-Jan-22)

Michelle

palik’s picture

same here, Subscriptions 5.x-2.0-beta12 (2008-03-21), Privatemsg 5.x-2.x-dev (2008-01-22), turning off PM Subscriptions fixes problem,

berdir’s picture

Status: Active » Closed (duplicate)

I apologize for pinging the participants, I'm closing out old issues.

Duplicate of this bug #167882: Fatal error: Call to undefined function: subscriptions_hold().