Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 CreditAttribution: lloydpearsoniv commentedsubscribe
Comment #3
cherokeedude CreditAttribution: cherokeedude commentedSubscribing...
Comment #4
pjcdawkins CreditAttribution: 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 CreditAttribution: lloydpearsoniv commentedmy errors disappeared when i applied
as mentioned in #1
Comment #6
Oceanman CreditAttribution: Oceanman commented+
Comment #7
dotist CreditAttribution: dotist commentedsubscribe
Comment #8
webankit CreditAttribution: webankit commented+ where should I add this line: $tokens['subscription'] = array()
Comment #9
webflo CreditAttribution: webflo commentedCommit cbf35c0 on 7.x-1.x like Dave Reid suggested. Thanks!