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']

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chris Charlton’s picture

Here are some helpful links that describe the issue and solution(s).

http://drupal.org/node/1265848
http://drupal.org/node/1605284

messiahcide’s picture

Did you ever find a solution to this issue? I've checked the links but I didn't get anything to work correcting this.

M2Lanzarin’s picture

Has anyone seen a solution to this error message?

Chris Charlton’s picture

This comment explains what is needed: https://drupal.org/node/1265848#comment-4941226

Chris Charlton’s picture

Status: Active » Needs review
FileSize
347 bytes

Here'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.

forssto’s picture

Issue summary: View changes

#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.

Chris Charlton’s picture

I'd like someone to help vet this, then we can get it committed and move on from this lame status warning/error.

Chris Charlton’s picture

Bump. The patch in #5 works.

mrwainscotting’s picture

I created an empty widget set, which seemed to generate token definitions and solve the error for me.

NWOM’s picture

Version: 7.x-1.0-rc1 » 7.x-1.x-dev
Status: Needs review » Needs work
Issue tags: -token

I 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 guidelines

NWOM’s picture

Status: Needs work » Needs review
Issue tags: +token

Please ignore my last comment. Accidentally posted in the wrong (but similar) issue.

NWOM’s picture

Version: 7.x-1.x-dev » 7.x-1.0-rc1