Closed (fixed)
Project:
Token
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jan 2011 at 19:05 UTC
Updated:
13 May 2011 at 18:36 UTC
Jump to comment: Most recent file
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
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1025954-token-no-profile-fields-notice.patch | 1.39 KB | dave reid |
Comments
Comment #1
dave reidCan 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.
Comment #2
dave reidComment #4
dave reid#1: 1025954-token-no-profile-fields-notice.patch queued for re-testing.
Comment #5
dave reidCommitted #1 to CVS!
http://drupal.org/cvs?commit=481348
Comment #6
shadowmihai commentedYes, the latest commit has fixed it. Thanks!
Comment #7
andre-dr commented#1: 1025954-token-no-profile-fields-notice.patch queued for re-testing.
Comment #8
dave reidComment #9
andre-dr commented#1: 1025954-token-no-profile-fields-notice.patch queued for re-testing.
Comment #11
dave reidPlease STOP. This has already been committed to the module.
Comment #12
tamsoftware commentedHi !
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 !
Comment #13
dave reidUpgrade to the latest 7.x-1.x-dev or wait for 7.x-1.0-beta2 to come out?
Comment #14
tamsoftware commentedThanks 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
Comment #15
Wolfflow commentedPatch works as aspected for Token 7.x-1.0-beta1.
Thanks Dave.
Comment #16
Vyoma commentedFor 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?
Comment #17
dave reidYou have to use Token 7.x-1.x-dev as this was fixed after 7.x-1.0-beta1 was released.