Got this warning at the top of the modules:

Warning: Invalid argument supplied for foreach() in profile_token_info() (line 768 of /home/stellaja/public_html/sites/all/modules/token/token.tokens.inc).

Using D7.0

Files: 
CommentFileSizeAuthor
#1 1025954-token-no-profile-fields-notice.patch1.39 KBDave Reid
FAILED: [[SimpleTest]]: [MySQL] Setup environment: failed to drop checkout database.
[ View ]

Comments

Status:Active» Needs review
StatusFileSize
new1.39 KB
FAILED: [[SimpleTest]]: [MySQL] Setup environment: failed to drop checkout database.
[ View ]

Can you test if the following patch fixes the notice for you? You'll have to do something like submit your modules page form or run update.php to get it to trigger again after applying the patch.

Title:Warning in Modules After install of Token 7.x-1.0-beta1PHP warning: Invalid argument supplied for foreach() in profile_token_info()
Version:7.x-1.0-beta1» 7.x-1.x-dev

Status:Needs review» Needs work
Issue tags:-bug, -token, -warning

The last submitted patch, 1025954-token-no-profile-fields-notice.patch, failed testing.

Status:Needs work» Needs review
Issue tags:+bug, +token, +warning

Status:Needs review» Fixed

Yes, the latest commit has fixed it. Thanks!

Status:Fixed» Needs review

Status:Needs review» Fixed

Status:Fixed» Needs review
Issue tags:-bug, -token, -warning

Status:Needs review» Needs work
Issue tags:+bug, +token, +warning

The last submitted patch, 1025954-token-no-profile-fields-notice.patch, failed testing.

Status:Needs work» Closed (fixed)

Please STOP. This has already been committed to the module.

Hi !

Sorry for the newbie post, but how can I prevent the errors from appearing on my site ?

I'm running drupal 7.0 and token 7.x-1.0-beta1 and it's NOT fixed ...

Thanks !

Upgrade to the latest 7.x-1.x-dev or wait for 7.x-1.0-beta2 to come out?

Thanks Dave,

It's exactly what I have done.

I just came back to edit my post to confirm it fixed it and saw your reply :)

Sorry for the hassle

Franck

Patch works as aspected for Token 7.x-1.0-beta1.
Thanks Dave.

Version:7.x-1.x-dev» 7.x-1.0-beta1
Status:Closed (fixed)» Active

For some reason, getting the error message, usually when I browse to the module listing page:

Warning: Invalid argument supplied for foreach() in profile_token_info() (line 768 of /home/drupal-root/sites/all/modules/token/token.tokens.inc).

Drupal: 7.0
Token:1.0-beta1

I did an install from within my Drupal installs admin interface and feeding it the .tar.gz of 1.0-beta1 URL. I did run an update.php after that.

Am I missing something?

Version:7.x-1.0-beta1» 7.x-1.x-dev
Status:Active» Closed (fixed)

You have to use Token 7.x-1.x-dev as this was fixed after 7.x-1.0-beta1 was released.