Red Hat 7.x, Drupal 4.3.2, subscription downloaded and installed 2/7/04 with last changed documented in readme file on 12/17/2003.

Created mysql tables, placed subscriptions.module in modules directory. Everything shows up fine in interface but no notifications are sent. Have other phpbb installations on same server that send out notifications as well as php scripted forms that send email so I know the functions should work on the server. Is there some additional place for configuring this module or something to 'kick start' it? Thanks, GZ

Comments

moshe weitzman’s picture

do other drupal email functions work? for example, can you request a new password?

gatezone’s picture

Thanks for the response, good question. Yes a new password and sign-up email arrives almost instantaneously.

moshe weitzman’s picture

Another silly question. Are you the author of the post, and the recipient of the subscription?. This module specifically does not notify the person who posts. Presumably, that person already knows that they posted.

gatezone’s picture

I've got several test accounts so I don't believe it is a self-cancelling notification to myself. Just tested it again and didn't get anything when I posted a new comment to a forum I'm subscribed to under a different user name. both enabled for notification.

Kent

Anonymous’s picture

I'm seeing the same thing, but have one additional piece of information -- if I go to cron.php manually, I get the error 'Fatal error: Call to undefined function: html_entity_decode() in /var/www/html/clipping/modules/notify.module on line 24'.

I found the comment at http://us3.php.net/html_entity_decode to be the perfect solution: apparently I'm running on a machine with an older version of PHP, which doesn't provide the html_entity_decode function, causing notify.module to fail.

if (!function_exists('html_entity_decode')) {

function html_entity_decode ($string, $opt = ENT_COMPAT) {

$trans_tbl = get_html_translation_table (HTML_ENTITIES);
$trans_tbl = array_flip ($trans_tbl);

if ($opt & 1) { // Translating single quotes

// Add single quote to translation table;
// doesn't appear to be there by default
$trans_tbl["'"] = "'";
}

if (!($opt & 2)) { // Not translating double quotes

// Remove double quote from translation table
unset($trans_tbl["""]);
}

return strtr ($string, $trans_tbl);
}
}

added did the trick.

dziemecki’s picture

Make sure you check the logs. This module will write to logs with each attempt to send an email. You see who the intended reciever is, and whether or not the module thought it was a succesful send. Might tell you a bit more about where the problem is.

dziemecki’s picture

One more thing to consider is that subscriptions.module currently only checks 1 level deep so, for instance, if you are subscribed to a taxonomy, you'll be notified of new nodes, and if you are subscribed to a node, you'll be notified of new subscriptions, but there is no bridge from taxonomies to subscriptions.

Also, there is a new version of the module checked into the head branch that seems to have corrected some people's problems.

dziemecki’s picture

Quiet for over a month. Closing due to inactivity.

darrian’s picture

I'm getting this same issue. New user emails work. Critical report emails work from the project module. No subscriptions work. There are no logs in watchdog about subscription emails.

Thanks, Darrian

dziemecki’s picture

Which version of subscriptions and Drupal are you using? I know it says 4.4.0 above, but I want to make sure this is the exact same issue. And, also, to repeat what is noted above, you aren't trying to get notifications of your own posts, are you?

I may add a "verbose error checking" mode to the next build to see if it will help track down issues like this.

darrian’s picture

Yea, 4.4.0 is the version I'm using. But...

I was just being an idiot and was looking at the wrong email account for the subscription notices. I have too many accounts... sorry for submitting this.

-Darrian