Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The following error appears in the Status Report after enabling this module.
The following token types do not have any tokens defined:
$info['tokens']['widgets']
Comment | File | Size | Author |
---|---|---|---|
#5 | widget-undefined-tokens-1832486-5.patch | 347 bytes | Chris Charlton |
Comments
Comment #1
Chris CharltonHere are some helpful links that describe the issue and solution(s).
http://drupal.org/node/1265848
http://drupal.org/node/1605284
Comment #2
messiahcide CreditAttribution: messiahcide commentedDid you ever find a solution to this issue? I've checked the links but I didn't get anything to work correcting this.
Comment #3
M2Lanzarin CreditAttribution: M2Lanzarin commentedHas anyone seen a solution to this error message?
Comment #4
Chris CharltonThis comment explains what is needed: https://drupal.org/node/1265848#comment-4941226
Comment #5
Chris CharltonHere's a quick patch. It'll remove the undeclared token message for the Widgets module, but I'm not totally sure this code is a desired path.
Comment #6
forssto CreditAttribution: forssto commented#5 helped me solve the issue. I think it's the right way to go to solve this issue. The module has no business declaring a token type if there's no tokens to declare.
Comment #7
Chris CharltonI'd like someone to help vet this, then we can get it committed and move on from this lame status warning/error.
Comment #8
Chris CharltonBump. The patch in #5 works.
Comment #9
mrwainscotting CreditAttribution: mrwainscotting commentedI created an empty widget set, which seemed to generate token definitions and solve the error for me.
Comment #10
NWOM CreditAttribution: NWOM commentedI can confirm that patch #15 appears to not solve the issue sadly. It applied cleanly to the dev branch, but the error is still shown within the status report. Setting this to the dev version, since all patches must be applies to the dev branch. Also, removing the "token" tag. See the issue tag guidelinesComment #11
NWOM CreditAttribution: NWOM commentedPlease ignore my last comment. Accidentally posted in the wrong (but similar) issue.
Comment #12
NWOM CreditAttribution: NWOM commented