Trying to set-up subscriptions by taxonomy only (no choice of content type) and just can't get the bloody thing to send them.

AFAIK all permissions are sweet, with notifications controls showing up on the user account, etc etc etc. If I create or edit content and then goto notifications/status to make sure it's picked it up, it shows messages queued. Goto notifications/status/queue/run to actually process them however, and all I keep getting is this "Access denied for queued event" error where I'd assume it should be telling me "Message sent, you da man!"

Anyone got any clues on what could possibly be the issue?
Cheers.

Comments

Raving’s picture

Component: Documentation » Miscellaneous
Output
# info: Starting queue process
# info: Processing send interval Immediately
# info: Processing user 3, rows 2, send_method simple
# info: Access denied for queued event sid=6 event=8 (node, update)

It appears the "access denied" statement is coming from the following in notifications.cron.inc

if (notifications_callback($module, 'user_allowed', 'event', $account, $event)) {
        // This will take care of duplicated events
        $events[$queue->eid] = $event;
        // We keep track also of subscriptions originating this event
        $subscriptions[$queue->eid][] = $queue->sid;
        notifications_log("Processing queued sid=$queue->sid event=$queue->eid ($event->type, $event->action) send_method=$send_method");
      } else {
        notifications_log("Access denied for queued event sid=$queue->sid event=$queue->eid ($event->type, $event->action)");
      }

So I'm then assuming notifications_callback() in notifications.module isn't supplying the right information;

function notifications_callback() {
   $args = func_get_args();
   $module = array_shift($args);
   $function = array_shift($args);
   if ($module && function_exists($module .'_'. $function)) {
     $callback = $module .'_'. $function;
   }
   else {
     $callback = 'notifications_'. $function;
   }
   return call_user_func_array($callback, $args);
 }

Does anyone have any ideas on this? Subscriptions/notifications is the last thing I need to sort out before I can push this project out the door :/

Raving’s picture

Status: Active » Closed (fixed)

Finally found the issue. Appears to be a hang-over from previously having Taxonomy Access Control installed... looks like it didn't un-install properly and the actual content was only accessible by UID1!

luke76’s picture

Howdy

Just wondering if you could help me - I'm trying to get subscription by taxonomy working but just can't get the 'subscribe' links to show up. All works fine if trying to subscribe by content type, but for taxonomy terms, nothing shows, no links on teasers or full nodes.

I'm sure I have my access permissions set. Have my taxonomy ticked in the right places, (can't remember the exact sections names and can't check right now as the server has just gone down, oh happy day :) ), in short, really do seem to have done everything ok, but .... no links.

Any advice from someone who has actually got this to work is hugely appreciated. Thanks. Oh I have been using the dev version but also have tried beta3 on my local machine and it's still not working...