I am receiving the following errors when installing Token 7.X-1.0-beta1. Thanks for anyone who can help in advance.
Notice: Undefined index: types in token_get_info() (line 303 of C:\Inetpub\wwwroot\xampp\htdocs\TestSite\sites\all\modules\contrib\token\token.module).
Warning: array_keys() expects parameter 1 to be array, null given in token_get_info() (line 303 of C:\Inetpub\wwwroot\xampp\htdocs\TestSite\sites\all\modules\contrib\token\token.module).
Warning: Invalid argument supplied for foreach() in token_get_info() (line 303 of C:\Inetpub\wwwroot\xampp\htdocs\TestSite\sites\all\modules\contrib\token\token.module).
Warning: uasort() expects parameter 1 to be array, null given in token_get_info() (line 318 of C:\Inetpub\wwwroot\xampp\htdocs\TestSite\sites\all\modules\contrib\token\token.module).
Notice: Undefined index: tokens in token_get_info() (line 319 of C:\Inetpub\wwwroot\xampp\htdocs\TestSite\sites\all\modules\contrib\token\token.module).
Warning: array_keys() expects parameter 1 to be array, null given in token_get_info() (line 319 of C:\Inetpub\wwwroot\xampp\htdocs\TestSite\sites\all\modules\contrib\token\token.module).
Warning: Invalid argument supplied for foreach() in token_get_info() (line 319 of C:\Inetpub\wwwroot\xampp\htdocs\TestSite\sites\all\modules\contrib\token\token.module).
Warning: array_keys() expects parameter 1 to be array, null given in theme_token_tree() (line 40 of C:\Inetpub\wwwroot\xampp\htdocs\TestSite\sites\all\modules\contrib\token\token.pages.inc).
Warning: Invalid argument supplied for foreach() in theme_token_tree() (line 53 of C:\Inetpub\wwwroot\xampp\htdocs\TestSite\sites\all\modules\contrib\token\token.pages.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Screnshot at site/admin/config | 286.47 KB | cristian100 |
Comments
Comment #1
dave reidThis means some module is not providing proper token information. You can try the patch in #1061714: Improve checking for token definition problems to see which module is the offender.
Comment #2
dave reidNo response in over a month, so marking as cannot reproduce.
Comment #3
cristian100_
Comment #4
cristian100Im really stressed, I have this exact issue. I setup a local environment, and started disabling modules that rely on token, to check if this is affected by some other module, but nope... this error happens only when having the token module alone installed.
I disabled the module token, and the problem went away, uninstalled the module token, and tried install it again... the problem comes back.
I have a database with over 1'500'000 records.
Im using the "stable" 7.x-1.5 version.
I attached a screenshot of this error happening every single time at site/admin/config and other places.
Comment #5
dave reidPlease see what I said in #1. This means that some module is implementing the core token API incorrectly. You would likely see what tokens are at fault by going to admin/reports/status. Once you have gone there and copy/pasted what errors are reported from Token, can I try and direct you to the module so that we can fix it there.
And PHP notices are never critical priority.