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

CommentFileSizeAuthor
#4 Screnshot at site/admin/config286.47 KBcristian100

Comments

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

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

dave reid’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No response in over a month, so marking as cannot reproduce.

cristian100’s picture

Version: 7.x-1.5 » 7.x-1.0-beta1
Category: bug » support
Priority: Critical » Normal
Status: Active » Closed (cannot reproduce)

_

cristian100’s picture

Version: 7.x-1.0-beta1 » 7.x-1.5
Category: support » bug
Priority: Normal » Critical
Status: Closed (cannot reproduce) » Active
StatusFileSize
new286.47 KB

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

dave reid’s picture

Version: 7.x-1.0-beta1 » 7.x-1.5
Status: Closed (cannot reproduce) » Postponed (maintainer needs more info)

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