We have just installed the Notify module in a Drupal 4.4.0 and we are getting he following problems:
- Although the frequency is set to 24h we have got like 12 notifications in one day (!)
- Every notification is having all the news at the moment since we instaled the module. I mean, the first one had like 3 entries and the last has something like 20 entries (including all the entries distributed previously)
- The links are not pointing to a complete URL but to a relative path, making them no clicable from the mailbox.
Just to let you see, this is the last notification, distributed half an hour after the previous one and with entries from the last 12 hours or more:
Salutacions qgil,
Continguts recents
------------------
published forum per xxavi: Informació de la XOSI cap a l'exterior
[ node/view/18 ]
published forum per xxavi: La XOSI hauria de participar en la
"participació ciutadana" de la Generalitat?
[ node/view/19 ]
published forum per qgil: Reculls de Titulars externs
[ node/view/20 ]
Comentaris recents
------------------
2 new comments attached to: Un wiki per al Qui és Qui
The Wiki Wars (cont.) per qgil
node/view/6/59#59
Tot aixó ja ho hem discutit anteriorment per xxavi
node/view/6/64#64
6 new comments attached to: Altres possibles grups de treball
Grup de comunicació i difusió de la xosi.net per toniher
node/view/11/54#54
Aixó pot ser altament perillós per xxavi
node/view/11/55#55
Cert, pot ser perillós per toniher
node/view/11/56#56
difusió de la informació per mpuig
node/view/11/57#57
(sense títol, doncs) per xxavi
node/view/11/58#58
Sobre les propostes de nous grups de treball per qgil
node/view/11/60#60
2 new comments attached to: Millores a la web
Això va prenent forma per qgil
node/view/12/51#51
Coses per david@puntbarra.com
node/view/12/52#52
3 new comments attached to: Consensuar els fonaments de la XOSI
D'acord! per toniher
node/view/16/53#53
Primers canvis en Grups de treball per qgil
node/view/16/63#63
Em semble correcte per xxavi
node/view/16/65#65
2 new comments attached to: La XOSI hauria de participar en la
"participació ciutadana" de la Generalitat?
No és prioritari, però... per qgil
node/view/19/61#61
Propostes només per xxavi
node/view/19/62#62
1 new comments attached to: Reculls de Titulars externs
Interessant per xxavi
node/view/20/66#66
--
Aquest és un mail automàtic de XOSI
Per no rebre més correus d'aquests ves a http://www.xosi.net/notify
Comments
Comment #1
qgil commentedAfter having a look on the code it seems that:
- The URL composition is not correct because the call url() is wrong
- Checking of previous notifications is also wrong, this is why the notifies get thicker as new posts are made on the site
- The module is not listening the frequency specified in the administration page of the module, therefore it runs every time the cron.php is executed (every hour in our case).
We had to deactivate the module because it is currently unusable. This why I also have increased the priority to critical.
Comment #2
qgil commentedAnother person has installed another Drupal 4.4.0 in another machine, with the same problems. It seems clearer that this module needs some patching before being offered as a 4.4.0 stable module.
Comment #3
jibbajabba commentedJust to follow up, I have installed notify.module and am getting the same error: base url missing in the notification emails.
Comment #4
Capnj commentedThe lack of a fully qualified URL to the content in the notification is real, real, really important. No kidding. Gotta be able to click in the email and go right to the content. Great concept in the module.
The accumulating notifications do not appear to be happening to me. Perhaps that has been fixed. Just d/l this yesterday.
And the frequency thing also does not affect me. Maybe that was fixed also, or was a user issue.
gil
Comment #5
Capnj commentedFind the lines that read as: ("node/view/$node->nid") in notify.module
Should be two at about lines 99 and 122.
Modify each to read ("http://yourdomain/node/view/$node->nid")
The result should be something like:
Recent comments
---------------
Re: mediation by judge
http://dajudge.us/dr/main/node/view/208/65#65
gil
Comment #6
sskennel commentedHere's a patch for this problem. It uses the url() function's absolute flag to add the URL base to links.
Comment #7
sskennel commentedOops. This version of the patch also fixes the problem for comments. Ignore the previous one.
-- Roger
Comment #8
duztin commentedpatch two creates an sql error for 4.4.1
Comment #9
duztin commentedpatch two creates an sql error for 4.4.1
Sorry I'm an idiot, it doesn't cause an error.
Comment #10
junyor commentedSince no one can seem to reproduce the accumulating notification issue, I'm going to assume that's fixed. There's a more complete patch for the relative URL issue at http://drupal.org/node/view/8964. Marking duplicate.