I'm getting this error after trying to send a private message from one user to another:

Fatal error: Call to undefined function subscriptions_hold() in httpdocs/sites/all/modules/privatemsg/privatemsg.module on line 2443

Comments

salvis’s picture

Version: 5.x-1.8 » 5.x-2.x-dev
Assigned: Unassigned » salvis
Status: Active » Needs review
StatusFileSize
new582 bytes

5.x-1.8 does not have a call to subscriptions_hold() — you mean 5.x-2.x-dev.

You need to install the separate Subscriptions module, version 5.x-2.x-dev.

The attached patch enforces the dependency of Privatemsg on mail_edit and Subscriptions.

Please note that both Privatemsg 2.x and Subscriptions 2.x are under heavy development.

In order to get a correct installation, you should

  • disable Privatemsg and Subscriptions
  • download the most recent Subscriptions and Privatemsg 2.x development snapshots
  • apply this patch as well as the one in http://drupal.org/node/167756#comment-294567 (to get all required database definitions)
  • refresh the modules list and enable mail_edit, Subscriptions, and Privatemsg.

Let us know how it goes.

olio’s picture

StatusFileSize
new34.63 KB

Hi Salvis,
I tried to run the info.patch on the just downloaded / newest privatemsg version, but it failed (see message attached).
Thanks.

salvis’s picture

StatusFileSize
new634 bytes

Hi olio,

I tried to run the info.patch on the just downloaded / newest privatemsg version, but it failed (see message attached).

Argh! I tried to take a shortcut and patched the patch... I'm sorry about wasting your time!

This one will work.

olio’s picture

Hi Salvis,

no problem. I'm super happy about your fast and friendly support - and this nice module. ;o)

Btw: I applied the latest patches (for .info and .install file) and installed the subscriptions module as you told me - now everything (!) seems to work fine!!!
Even the white screen has gone (I will update this issue) and I could send, preview, reply to private messages without further problems. :o))))

Thanks again for your help.

chx’s picture

Status: Needs review » Fixed
mdowsett’s picture

I have never applied a patch before....I don't feel comfortable with command line...is there anyway to apply patches thru a browser?

salvis’s picture

chx has marked this issue as fixed because he committed the patch. It's now in 5.x-2.x-dev, so there is no need to apply this patch anymore.

However, with your comfort level, you should stick with release versions and not try to install a -dev version.

Anonymous’s picture

Status: Fixed » Closed (fixed)