Closed (fixed)
Project:
Notifications
Version:
6.x-4.0-beta7
Component:
Notifications
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Jul 2010 at 08:10 UTC
Updated:
27 Nov 2012 at 07:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mariagwyn commentedI (and others it appears) are still having this issue. Can this be addressed? I am not sure how to correctly modify the module, though Dave gives a hint at: http://drupal.org/node/834484.
Thanks,
Maria
Comment #2
dave reidPatch against current development version. May also apply to other versions as well.
Comment #3
Naturalist commentedTried but it doesn't work for 6x2.2 This is a great module could a new updated version could be released with a tested fix?
Thanks
Comment #4
shane birley commentedI can confirm this patch fails on 2.2 - a kick ass back-port patch from 4.x dev would be great.
The most extreme problem is nodes load blank pages due to the conflict and renders them useless - and not just a log entry. :)
Comment #5
dave reidPatch against 6.x-2.x attached.
Comment #6
shane birley commentedDave, remind me, if we ever meet - I must buy you beer.
Comment #7
Naturalist commentedI'll buy the next one!!!
Comment #8
roderikThanks.
Thanks to Dave this is not a disaster (since Token only generates watchdog warnings now), but it would be nice if it can be incorporated soon.
Together with a change on the module page: "Requirements: Token >= 6.x-1.14 / 5.x-1.15"
Attached patch for 6.x-4.x (replacing #2) removes a duplicate semicolon, though.
Comment #9
Starminder commentedsubscribe
Comment #10
skyredwangsubscribe
Comment #11
skyredwang#5 patch works!
Comment #12
Anonymous (not verified) commentedSubscribe
Comment #13
nally commentedsubscribe
Comment #14
jdidelet commentedI confirm. the patch #5 is working.
Comment #15
TechnoBuddhist commentedMe too #5 is good, THANKS Dave.
I recently upgraded my Token module, presumably(I've not looked) it introduced the 'node-url', thus bringing us into this duplicate scenario!
Comment #16
Mike at techtir commentedDoes the "patch" fix the Duplicate node-url error message I get in log every time a user defined URL is clicked? This is since upgrade of main Drupal last week.
if so
How is the patch applied and which link do I download?
I'm a bit confused.
Will the Module be updated soon?
Comment #17
danepowell commentedI can confirm that #5 solves the problem for 6.x-2.x - thanks!
@Mike - Search the Drupal documentation for "How to apply patches". This one is simple enough that you can just read the patch and manually apply the changes (delete two lines of code). Use the one on comment #5 if you have Notifications 6.x-2.x and #8 if you have 6.x-4.x
Comment #18
tomsm commentedpatch #5 works!
Comment #19
Mike at techtir commented@ Dane Powell Thanks
In Cygwin, navigate to the module's directory for your Drupal install
??
From http://drupal.org/node/620014
What?
I had the pain years ago of installing cygwin to test some linux C on my NT4.0 Windows X windows. In recent years any Linux C work I have done on Debian, Barak and Ubuntu Linux distro
I had presumed I can either use Notepad ++ or Textpad to edit the PHP (which I've done on Wordpress and vBulletin and custom projects in the past) or some sort of autopatch tool.
This sort of makes more sense
http://drupal.org/node/534548
However I currently don't have a Test site. Only the real one. But I do have backups of the files and the SQL database.
So given that I can restore the file and it's not a big patch I can do it manually in a text editor?
I just comment out or delete?
- $tokens['node']['node-url'] = t('The node view url for read more links.');
- $values['node-url'] = url('node/'. $node->nid, array('absolute' => TRUE));
I can't see anything that needs added?
Comment #20
Mike at techtir commentedOK great folks
I just had to remember to re-enable the permissions on content Notifications etc! No error messages about [node-url]
I did manual comment out of the two lines with the patch name in post #5
I saved original version 1st.
Finding the lines in Notepad++ easy.
We don't get many new users a week, I always subscribe to new users till I see what they up to.
Comment #21
dave reidAdding better title to help others find this issue.
Comment #22
brentrobbins commentedThanks, patch worked. Subscribe.
Comment #23
Dennis Cullen commented# 5 works! Yay! Thanks
Comment #24
lolmaus commentedSubscribing
Comment #25
Starminder commentedAny chance this will make it into a build for those of use to lazy, stupid, or fearful of screwing up a patch? :)
Comment #26
hedac commentedthanks #5
Comment #27
jzornig commentedsubscribe
Comment #28
jvieille commentedthanks #5
This was blocking cron
Comment #29
robin van emden commentedtested, works, please commit
Comment #30
debplatt commentedsubscribe
Comment #31
brisath commentedSubscribe
Comment #32
j0nathan commentedSubscribing.
Comment #33
telechris commentedSubscribing. I think this is related to this issue as well - http://drupal.org/node/935614#comment-3548406
Comment #34
yngens commentedwill the patch in#5 be comitted?
Comment #35
angelmax commentedsubscribe. having all my sites with this issue. thanks
Comment #36
rpsu#8 solved problem so far in 6.x-4.0-beta7.
Subscribing...
Comment #37
butler360 commented#5 works of course. Subscribing.
Comment #38
eft commentedsubscribing
Comment #39
todd zebert commentedsubscribe.
Comment #40
advseb commentedsubscribe
Comment #41
koolkomputer commentedsubscribe
Comment #42
jtjones23 commentedsubscribe
Comment #43
tibboh commentedsubscribe
Comment #44
gregglesBased on #946086: Read more links in email notifications we needed the patch from Dave in #5.
Would be great to have this committed. If I could mark RTBC again I would.
Comment #45
gábor hojtsyIndeed, this also causes a problem with tokens on localize.drupal.org. See #946520: Error in nofifications from localize.drupal.org - "Read more at Array".
Comment #46
jose reyero commentedCommitted. Thanks.
I'll put out a stable release ASAP for 2.x branch
(Any of drupal.org sites running with the 4.x branch?)
Comment #47
gregglesI don't think any are running 4.x yet. I do hope to move g.d.o to that in the next few months (it's better, right?)
Comment #48
jose reyero commented@greggles,
Though there are many improvements in 4.x, the current stable (2.x) is much better tested so maybe wait for now unless you need some new feature. It also needs to sync up again with latest OG. Atm we are working on the Drupal 7 branch instead.
Btw, I've just published a new (6.x.2.x) release.
Comment #49
kenorb commentedThanks.
Comment #50
brisath commented@Jose Reyero or others,
Do you recommend dropping down to the 2.x version if we are currently running 6.x-4.x-dev ? What kind of problems would you anticipate with reverting back? Or should I just wait on new releases of 4x?
Comment #52
allan1015 commentedI have the 6.x-4.0-beta7 and still have this issue
Using the latest Tokens 6.x-1.x-dev (2010-Dec-14)
I can confirm that the Patch #2 is NOT fully implemented in the beta7 release.
There are basically 3 parts in the patch, only one is in place in Beta7
When I hand patched the other two, the error went away
Not sure why Beta7 only has part of the patch but it dfoes?
So in Beta7 in the notifications_content.module these two changes made the Duplicate Tokens go away:
Comment out these two lines (to make a complete patch):
- $tokens['node']['node-url'] = t('The node view url for read more links.');
- $values['node-url'] = url('node/'. $node->nid, array('absolute' => TRUE));
Allan
Comment #53
dandaman commentedI also had this problem on 6.x-4.x-beta7 and after removing the two lines mentioned by Allan in #52 it now works correctly.
Comment #54
roderikWell, then I repeat my suggestion to split off the whole token stuff into a separate small module, esp. since the 'node-content' token is one big hairy ball of hairiness. And because non-notifications modules want these tokens too.
See #736328: render the node more completely for [node-body] to better handle cck fields (and others)
Say the word and I'll start trying to get others to cooperate on this small module.
Comment #55
ju.ri commentedI also had this problem with 6.x-4.x-beta7 after updating token.module. The solution in #52 seems to fix it.
Comment #56
ryan_courtnage commentedsubscribe. Using 4.x beta7
Comment #57
jose reyero commentedIt is fixed in the -dev version.
Comment #58
rwhite commentedThe patch in #5 worked great - thanks.
Unfortunately, it only worked until Cron ran. When cron runs, the error in the logs does not return, but the node content that had not been showing (as also noted in #4), disappears once again. After running update.php, the content appears again. Obviously, I'd rather not have to run update.php after every cron job, so does anyone have an idea or can point me in the right direction for a fix?
Comment #59
rwhite commentedI apologize, I had a problem with my panels layout. Again, the patch in #5 worked perfectly. Thanks.
Comment #60
qiubosu commentedin my drupal 6.22 site, in the ../admin/reports/status, there is below "Duplicate tokens" warning:
The following tokens are defined by multiple modules and may cause problems when performing token replacement.
* node:node-url (defined by modules: token, notifications_content)
the modules using are notifications-6.x-4.0-beta7.tar.gz and token-6.x-1.16.tar.gz. is there any patch available for resolving this issue? how to install the patch under Ubuntu environment?
Comment #61
Skidz commentedSubscribing. Same error as #60. Same modules. Same versions.
Comment #62
CraigBertrand commentedSame as #60 which patch should I use? Is it fixed in the dev?
Thanks for module!
Comment #63
ezeedub commentedHere's a patch that works against 4.0-beta7.
Comment #64
j0nathan commentedPatch in #63 removed the "Duplicate tokens" warning in admin/reports/status with Notifications 6.x-4.0-beta7.
Thanks
Comment #65
Skidz commented#63 did the trick for me, although I had to apply it manually. I think the line numbers are offset. Basically just the two lines to delete. Thanks e.zeedub!
Comment #66
j0nathan commentedI also applied the patch manually because of a server without "git" and "patch" commands. I didn't tried to apply the real patch in #63.
Sorry for the confusion.
Comment #67
CraigBertrand commented63 worked for me as well.
Comment #68
roderikThis is fixed in the -dev version, so this issue should remain at status 'fixed'.
As of today, there are not many changes in the -dev version (2011-Feb-26). Except the translation directories are gone, which is a good thing. Unless anyone did custom hacks, they can safely install this dev version.
Comment #69
roball commentedI can confirm this bug exists in the latest current 6.x-4.x release, which is still 6.x-4.0-beta7 from 2010-08-01. Drupal's status report includes:
This bug prevents notifying the URL where the update happened, which is the main purpose of this module. Thus I have increased the Priority of this issue to critical.
However, the bug has already been fixed with committ http://drupalcode.org/project/notifications.git/commit/d33c4954892522658f9c25992e25b816582d24f8 on 2010-10-20, so updating 6.x-4.0-beta7 to the latest 6.x-4.x-dev will solve it.
Comment #70
ken hawkins commentedWe stumbled into this one too, given the age of the current dev release, seems like it's time for another beta?
Comment #71
roball commented@Ken Hawkins: agreed - maybe posting at #1571342: Notifications 6.x-4.0 release? may help getting a 4.x release sooner rather than later. Though would love to have #1772178: Provide a token that resolves into the recipient's RealName integrated first.