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.
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']
Comment | File | Size | Author |
---|---|---|---|
#14 | computed_field_1275946.patch | 1.51 KB | drewish |
#7 | Computed_field-Issue_Site_status_report_problem_detected-fixed-Issue_no_1275946.patch | 1.2 KB | rajatgusain |
Comments
Comment #1
choosedrupal CreditAttribution: choosedrupal commentedSame here.
Comment #2
blasthaus CreditAttribution: blasthaus commentedsame for me
Comment #3
spineless CreditAttribution: spineless commentedI 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,
Comment #4
klonos@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.Comment #5
Azol CreditAttribution: Azol commentedToken 7.x-1.0-beta6, same error
Comment #6
mike27 CreditAttribution: mike27 commentedToken 7.x-1.0-beta6, same error for me too
Comment #7
rajatgusain CreditAttribution: rajatgusain commentedI 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
Comment #8
klonos...it gives me a WSOD.
Comment #9
rajatgusain CreditAttribution: rajatgusain commented@ klonos
This works for me ! please share your applied patch code.
Comment #10
FreeFox CreditAttribution: FreeFox commented#7 works fine. Please commit.
@rajatgusain ... Thanks very much.
Comment #11
Azol CreditAttribution: Azol commentedComment #12
videographics CreditAttribution: videographics commentedPatch in #7 is working for me as well.
At least it made the system message disappear. ;-)
Comment #13
badrun CreditAttribution: badrun commentedToken 7.x-1.0-beta7 same error
Comment #14
drewish CreditAttribution: drewish commentedI 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.
Comment #15
jlea9378 CreditAttribution: jlea9378 commentedPatch in #14 worked for me.
Comment #16
klonos#14 works for me too. Thanx.
Comment #17
rajatgusain CreditAttribution: rajatgusain commented#14 patch will work.
Comment #18
colanComment #19
colanCommitted in efa8a5a.
Comment #21
felixvang CreditAttribution: felixvang commentedhow do you apply patch? I'm new and need help. I have Ubuntu 10.04.. thank you