Closed (fixed)
Project:
Notifications
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2011 at 11:32 UTC
Updated:
15 Aug 2011 at 23:11 UTC
Got this error when enabling token dev. version (as of feb 8 2011).
Notice: Undefined index: subscription in _token_build_tree() (line 737 of /home/www/p11.voxel.dk/sites/all/modules/token/token.module).
Warning: Invalid argument supplied for foreach() in _token_build_tree() (line 737 of /home/www/p11.voxel.dk/sites/all/modules/token/token.module).
Any ideas
Thanks
Comments
Comment #1
dave reidThis bug is because the Notifications module defines a token type but not any tokens for it under certain circumstances:
There should ast least be $tokens['subscription'] = array() to prevent this.
Comment #2
lloydpearsoniv commentedsubscribe
Comment #3
cherokeedude commentedSubscribing...
Comment #4
pjcdawkins commentedSubscribing. By the way, when I disable the Notifications module these errors do disappear, and I'm using Notifications 7.x-1.0-alpha1.
Comment #5
lloydpearsoniv commentedmy errors disappeared when i applied
as mentioned in #1
Comment #6
Oceanman commented+
Comment #7
d0t15t commentedsubscribe
Comment #8
webankit commented+ where should I add this line: $tokens['subscription'] = array()
Comment #9
webflo commentedCommit cbf35c0 on 7.x-1.x like Dave Reid suggested. Thanks!