It's been some time now that I've been getting this warning in my sites' status report:

Tokens	Problems detected

The following token types do not have any tokens defined:

    $info['tokens']['computed']
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

choosedrupal’s picture

Same here.

blasthaus’s picture

same for me

spineless’s picture

I am having issues with tokens. I see the following error when I run a status report.

Warning
Tokens Problems detected

The following tokens or token types are missing required name and description information:

$info['tokens']['comment']['url']

The following token types are not defined but have tokens:

$info['types']['comment']

I am many modules including:

Chaos Tools 7.X-1.0-rc1
Entity API 7.x-1.0-beta10
Panels 7.x-3.0-alpha3
rules 7.x-2.0-rc2

Token 7.x-1.0-beta5 (of course)

Everything was working fine until I installed the token module. The only indication I have a problem is through the status report. When I turn off token the error goes away.

Any idea why this error is happening? What other modules could possibly be interfering with Token?

Spineless
Thanks,

klonos’s picture

@spineless: this issue here is about the exact error message as in the issue's description ($info['tokens']['computed']). What you are looking for is #1265848: tokens or token types are missing required name and description information. This is now fixed, so you need to either use the latest dev version of token or wait for 7.x-1.0-beta6 (or another stable) to get released.

Azol’s picture

Token 7.x-1.0-beta6, same error

mike27’s picture

Token 7.x-1.0-beta6, same error for me too

rajatgusain’s picture

I am submitting a patch for this solution. Please find and append to the computed field's module file.
There was a problem in creating the computed token type that type was created at the time of enabling the module and that time there was no field associated to that module so it was giving the message :-
" The following token types do not have any tokens defined: $info['tokens']['computed'] "
Now I changed the way of registering the token type : it will register only when there is any field associated to the computed field module.

I hope it will work for everyone : If still there is any problem please let me know.

Regards
Rajat Gusain

klonos’s picture

...it gives me a WSOD.

rajatgusain’s picture

@ klonos
This works for me ! please share your applied patch code.

FreeFox’s picture

#7 works fine. Please commit.

@rajatgusain ... Thanks very much.

Azol’s picture

Status: Active » Needs review
videographics’s picture

Patch in #7 is working for me as well.

At least it made the system message disappear. ;-)

badrun’s picture

Token 7.x-1.0-beta7 same error

drewish’s picture

I cleaned up rajatgusain's patch to remove the new variable—since we can just check if existing values have anything in them—and follow the coding standards.

jlea9378’s picture

Patch in #14 worked for me.

klonos’s picture

#14 works for me too. Thanx.

rajatgusain’s picture

#14 patch will work.

colan’s picture

Status: Needs review » Reviewed & tested by the community
colan’s picture

Status: Reviewed & tested by the community » Fixed

Committed in efa8a5a.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

felixvang’s picture

how do you apply patch? I'm new and need help. I have Ubuntu 10.04.. thank you