I have this error for user, who has lot's of unpublished nodes:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 16777217 bytes) in /home/mysite/public_html/sites/all/modules/subscriptions/subscriptions.module on line 878

Line 848 is $strsent = '!'; from:

function subscriptions_nodeapi(&$node, $op, $arg = 0) {
  global $user;
  $strsent = '!';
  switch ($op) {
    case 'update':
      if ($node->status == '0') { // unpublished
        break; // don't notify

I allocated 32M for script execution everywhere it needed to be set per instructions on http://drupal.org/node/31819, and believed 32M is enough. Should I increase it to a bigger number like 64 or something wrong with the modules code?

Comments

yngens’s picture

I tried 64M and it gives:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 67108865 bytes) in /home/mysite/public_html/sites/all/modules/subscriptions/subscriptions.module on line 878

Also tried bigger different number, but it always asks for one more byte than set number:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 134217729 bytes) in /home/mysite/public_html/sites/all/modules/subscriptions/subscriptions.module on line 878

By the way, this error happens only on 'node/add' page. Despite it shows error, nodes are actually added.

If I disable the module then nodes can be added with no problem.

ruyakar’s picture

this error also happens when adding comment.

i tried disabling most of other modules. but, unfortunately! problem exists whenever subscriptions module is active.

salvis’s picture

Title: Fatal error: Allowed memory size exhausted in subscriptions.module on line 878 » 1.x - Fatal error: Allowed memory size exhausted in subscriptions.module on line 878

Subscriptions 1.x is known to be buggy and it's unsupported.

We (a new team) are working hard on 2.0, which was rewritten from scratch (because it turned out to be unfeasible to try to fix 1.x). 2.0 is currently in beta test and you can help to bring it forward by testing and providing feedback.

salvis’s picture

Status: Active » Closed (fixed)

Subscriptions 2.0 is released and 1.x is now officially obsolete.