some times i become this message:
Notice: Undefined index: label in entity_metadata_token_info_alter() (Zeile 55 von /xxx/drupal7/sites/all/modules/entity/entity_metadata/entity_metadata.tokens.inc).
Notice: Undefined index: label in entity_metadata_token_info_alter() (Zeile 60 von /xxx/drupal7/sites/all/modules/entity/entity_metadata/entity_metadata.tokens.inc).
Notice: Undefined index: label in entity_metadata_token_info_alter() (Zeile 55 von /xxx/drupal7/sites/all/modules/entity/entity_metadata/entity_metadata.tokens.inc).
Notice: Undefined index: label in entity_metadata_token_info_alter() (Zeile 60 von /xxx/drupal7/sites/all/modules/entity/entity_metadata/entity_metadata.tokens.inc).
The message come also with entity-beta3. i use drupal 7-rc.
Thank for your help.
Comment | File | Size | Author |
---|---|---|---|
#24 | stack_back_trace.zip | 116.74 KB | radoeka |
#4 | modules | 547.52 KB | jyee |
#2 | modules2.jpg | 591.06 KB | Peter Törnstrand |
Comments
Comment #1
fagoPlease report the modules you have installed. This probably results by a module implementing the API wrong.
Comment #2
Peter Törnstrand CreditAttribution: Peter Törnstrand commentedAlso having this error, see attached image for installed modules. Probably has to do with Media module.
Comment #3
fagoIn the screenshot entity-metadata isn't enabled at all? So I doubt the errors stem from this installation?
Comment #4
jyee CreditAttribution: jyee commentedI'm receiving the same message on Drupal 7 RC2
I've attached a screenshot of my modules page
Comment #5
bojanz CreditAttribution: bojanz commentedSo it's either Organic Groups or Rules...
Comment #6
fagothanks!
If it would be Rules, it would have to be appear for me to. So it must be og.
Are there any hook_entity_property_info() implementations not specifying a label?
Comment #7
amitaibuI haven't touched this function in a long time, but it seems to have 'label':
(I know I still need to fix the function names to the new ones).
Comment #8
fagoHm, that's indeed looking fine. Anyone else getting this warnings with entity metadata / entity tokens + og enabled when doing token replacements?
@jvee: You could help us identifying the problematic property info by debugging the problem, if you are aware of PHP? E.g. run debug(entity_metadata_get_info()) or dpm(entity_metadata_get_info()) and look for properties having no 'label' key, or just add a debug() statement to the line throwing the warnings.
Comment #9
dgastudio CreditAttribution: dgastudio commentedlast dev. version of all modules:
Notice: Undefined index: label in entity_metadata_token_info_alter() (line 55 of /home/u3220/domains/u3220.rapid.vps-private.net/sites/all/modules/entity/entity_metadata/entity_metadata.tokens.inc).
Notice: Undefined index: label in entity_metadata_token_info_alter() (line 60 of /home/u3220/domains/u3220.rapid.vps-private.net/sites/all/modules/entity/entity_metadata/entity_metadata.tokens.inc).
it happens to me after visit and save modules page.
Comment #10
geerlingguy CreditAttribution: geerlingguy commentedDitto here. In addition, it seems that my node content (the body field) is disappearing after enabling OG 7.x-1.x-alpha1. If I disable the module, the body field appears in teasers and full node displays again.
[More testing:]
Every time I "Save configuration" on the modules page after making any changes (adding or removing any modules) with the 'Organic groups' module checked, I get the following warning:
That warning doesn't appear if Organic Groups is not enabled.
Running debug() on line 55's $properties, I get this for OG, which must be the problem... I think:
All other $properties arrays are defined in a format similar to this:
Comment #11
fagoOh, also 'data info' containing 'properties' is rather outdated. It's just 'property info' => .. now.
Comment #12
amitaibuFixed the property callback array in github -- https://github.com/amitaibu/og/commit/b49e4717429875741fcf9bf6a400262fd1...
Will mark as fixed once synced with CVS.
Comment #13
geerlingguy CreditAttribution: geerlingguy commentedI just updated to the latest git revision from your repository, and the error no longer appears (with the latest -dev of Entity API and Drupal Core).
However, the body field (and other fields) still disappears after enabling the OG module (even on edit forms)... I'll look into this a little more to see where the problem lies.
[Edit: Results of my further testing: After I disabled the Organic groups field access module, content appeared correctly again...
I think I'll open up a new issue for that.Nevermind - already-open issue: #973562: Make sure entity is a group or group content before checking field access]Comment #14
amitaibu> After I disabled the Organic groups field access module
Make sure you have permissions to see the field in /admin/config/group/permissions (unless you are using 1, in this case, there is a bug).
Comment #15
amitaibuSorry, didn't see other issue - we'll discuss it there.
Comment #16
dgastudio CreditAttribution: dgastudio commentedpatch from #12 applied.
problem persists:
After activate OG:
Notice: Undefined index: label in entity_metadata_token_info_alter() (line 55 of /home/u3220/domains/u3220.rapid.vps-private.net/sites/all/modules/entity/entity_metadata/entity_metadata.tokens.inc).
Notice: Undefined index: label in entity_metadata_token_info_alter() (line 60 of /home/u3220/domains/u3220.rapid.vps-private.net/sites/all/modules/entity/entity_metadata/entity_metadata.tokens.inc).
i found that it happens too then i'm trying to upload any image (file).
Comment #17
amitaibu@kervi,
Are you running latest entity API?
Comment #18
geerlingguy CreditAttribution: geerlingguy commented@kervi - You might want to try blowing out your entire og directory, and copying in the latest GitHub code. Also, make sure you download the latest -dev release of Entity API, as there were some file moves and changes in the past week or two.
Comment #19
spacereactor CreditAttribution: spacereactor commentedi still have the error, install entity 7.x-1.x-dev (2011-Jan-05), Drupal 7.0 and OG 7.x-1.x-dev (2011-Jan-06 )
* Notice: Undefined index: label in entity_token_token_info_alter() (line 55 of /var/www/mydomainname/public_html/sites/all/modules/entity/entity_token.tokens.inc).
* Notice: Undefined index: label in entity_token_token_info_alter() (line 60 of /var/www/mydomainname/public_html/sites/all/modules/entity/entity_token.tokens.inc).
Comment #20
zuzu83 CreditAttribution: zuzu83 commented+1 same probleme
Comment #21
radoeka CreditAttribution: radoeka commented+1 same problem
Just drushed a new installation with D7 and OG
Comment #22
Christian Fischer CreditAttribution: Christian Fischer commented+ 1 on 7 final and OG groups latest
Comment #23
amitaibuI don't see the error, so someone will have to debug it
Comment #24
radoeka CreditAttribution: radoeka commented@Amitaibu: are you running D7 in English or in another language? Perhaps it has to do with a language setting?
I created the attached stack back trace. It is a bit huge, as I don't how to make a smaller one. Hopefully it contains all the information that is needed to debug the problem.
I used the debug explanation at: http://www.lullabot.com/articles/quick-and-dirty-debugging
This tip in the comments of the before mentioned article:
http://www.lullabot.com/articles/quick-and-dirty-debugging#comment-3567 works for me as well. However, someone with D7 development experience should have a look at the output.
@geerlingguy can you explain how to use / add debug() so others can chime in create debug output?
Comment #25
Anonymous (not verified) CreditAttribution: Anonymous commented+1 subscribe
OG 7.x-1.0, Entity 7.x-1.0-beta6
Comment #26
radoeka CreditAttribution: radoeka commentedUsing Running debug() on line 55's $properties, like this:
Results in the following output:
Hopefully this shines some light on the issue.
Comment #27
radoeka CreditAttribution: radoeka commentedI added debug($token_type); to obtain more output.
Thus the debugging lines are now:
This results in:
and:
I hope that this helps.
Comment #28
spacereactor CreditAttribution: spacereactor commented#23 to Amitaibu
you need the following 3 modules (OG, Entity API, Token) install in order to get the error whenever there change in modules.
Enable the following
1.) Organic groups (Only need the main OG, the rest can dis-enable)
2.) Entity API
3.) Entity tokens
4.) Token
Notice: Undefined index: label in entity_token_token_info_alter() (line 55 of /var/www/mydomain/public_html/sites/all/modules/entity/entity_token.tokens.inc).
Notice: Undefined index: label in entity_token_token_info_alter() (line 60 of /var/www/mydomain/public_html/sites/all/modules/entity/entity_token.tokens.inc).
Test on Drupal 7.0, OG 7.x-1.x-dev, Entity API 7.x-1.x-dev, Token 7.x-1.x-dev
Comment #29
radoeka CreditAttribution: radoeka commentedChanged the debugging part to:
The entries with no problem looks as follows:
Compared to the 2 entries with a problem:
One can now clearly see, where label is missing. The following change takes care that the errors are no longer seen:
I hope that this helps to get the issue solved.
Comment #30
spacereactor CreditAttribution: spacereactor commentedfrom #29 i add the two extra line to og.field.inc
$property['label'] = 'This is a test label';
$property['description'] = 'This is a test description';
it does help to temporary solve the error message, hope to see a long term solution.
Comment #31
amitaibu@radoeka,
Good job, next time it would be even better if you could roll a patch. Committed to github -- https://github.com/amitaibu/og/commit/8f8e108da85c592e08f44bcc97e884738a...
Comment #32
radoeka CreditAttribution: radoeka commentedAmitaibu: I don't understand your remark "next time it would be even better if you could roll a patch"; as the patch is in command #29, isn't it? You should be able to copy and paste the last block in comment #29 into a file and the patch is there. Hmm, perhaps you wanted me to attach it as a patch. In this case I did not attach it as a patch as I was not sure about the proposed solution. Besides that the label and description are not correctly set.
Comment #33
bryancasler CreditAttribution: bryancasler commentedPatch in #29 worked for me on the current dev. I tried it a first with og 7.x-1.0, but I still was getting the error.
Comment #34
thekevinday CreditAttribution: thekevinday commentedI also see this problem.
The location where this happens for me is in:
function og_field_group_property_callback(&$info, $entity_type, $field, $instance, $field_type)
From what I understand, #29 is the code to apply?
If that is the case, then why put in placeholder labels and descriptions?
Other modules such as the entity metadata project use the following:
Which would suggest that one might be able to pass real information from the instance and not the placeholder information
Is it correct in this case to use:
instead of:
?
Comment #35
bluesomewhere CreditAttribution: bluesomewhere commented#29 worked for me, TY!
Comment #36
LEternity CreditAttribution: LEternity commentedthekevinday, can you provide a patch file please?
Comment #37
amitaibuThe fix is already in the github version.
Comment #38
Liliplanet CreditAttribution: Liliplanet commentedsorry, patch in #29 did not work for me .. subscribe thx
Comment #39
enjoy777 CreditAttribution: enjoy777 commentedI used code from #34 and it works now.
Comment #40
Anonymous (not verified) CreditAttribution: Anonymous commentedI too just used code from #34 and it works now.
Comment #41
uberhacker CreditAttribution: uberhacker commentedSimple instructions to fix this issue:
Add the following above line 56 in og.field.inc:
If the module maintainer could kindly add these lines to the next release then problem solved.
Comment #42
amitaibuThis is fixed on github -- http://drupal.org/node/995834#comment-4053490
Comment #43
amitaibuCommitted to Drupal.org
Comment #45
AndrzejG CreditAttribution: AndrzejG commentedSorry,
There is nothing in the github, and #41 is not sufficient for solving problem.
Where is the solution now?
Comment #46
Jean Gionet CreditAttribution: Jean Gionet commentedI've tried applying this fix and I still get the errors.
Comment #47
Jean Gionet CreditAttribution: Jean Gionet commentedsorry.. seems I was using an older version from January.. closed it back and will try the latest dev version
Comment #48
webankit CreditAttribution: webankit commentedthe notices return in latest dev
Comment #49
yugongtian CreditAttribution: yugongtian commented+1 batter see the 7.x-1.1
a few month ago...
do not use dev version.....
og7.x-1.0
entity7.x-1.0-beta8
Notice: Undefined index: label in entity_token_token_info_alter() (line 54 of E:\wamp\www\drupal\sites\all\modules\entity\entity_token.tokens.inc).
Notice: Undefined index: label in entity_token_token_info_alter() (line 59 of E:\wamp\www\drupal\sites\all\modules\entity\entity_token.tokens.inc).
when I try to update from 1.0 to dev ,, get error
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'test11.og_membership_type' doesn't exist: SELECT base.id AS id, base.name AS name, base.description AS description, base.status AS status, base.module AS module FROM {og_membership_type} base; Array ( ) in EntityAPIController->query() (line 153 of E:\wamp\www\test11\sites\all\modules\entity\includes\entity.controller.inc).
And site get down off.............
How to fix it ? any help thanks.
Comment #50
hypatia7777 CreditAttribution: hypatia7777 commentedSubscribe
Comment #51
dotist CreditAttribution: dotist commentedsubscribe
Comment #52
MattClark CreditAttribution: MattClark commentedSubscribe
Comment #53
jlaurin CreditAttribution: jlaurin commentedSubscribe
Comment #54
sirspacey CreditAttribution: sirspacey commentedSubscribe
Comment #55
amitaibuComment #56
sirspacey CreditAttribution: sirspacey commentedCan you provide more clarification of how this is fixed?
I am still getting the error, both in the stable and dev versions. From what I can see by all the subscribes above, others are also still having the problem as well.
Comment #57
AndrzejG CreditAttribution: AndrzejG commentedProblem may arise from the general error in core of D7 - database mechanism doesn't work. So if OG changes some DB structures, it can make some problems.
Comment #58
kpastore CreditAttribution: kpastore commentedSubscribe
Comment #59
Tasty CreditAttribution: Tasty commentedSubscribe
Comment #60
JamFar CreditAttribution: JamFar commentedThis is still a problem. +1 Subscribing!
Comment #61
JamFar CreditAttribution: JamFar commentedWhat is the fix? It is an ugly error.
Comment #62
JamFar CreditAttribution: JamFar commentedShows up on the variable config page.
Comment #63
JamFar CreditAttribution: JamFar commentedAlso shows up, upon saving the following page on your site:
node#overlay=admin/config/people/accounts
Comment #64
amitaibu@ JamFar,
Are you using the latest RC3 or -dev version?
Comment #65
JamFar CreditAttribution: JamFar commentedAmitaibu, thanks for your reply! ...I am using the latest stable (7.x-1.0 tar.gz (100.61 KB) | zip (132.81 KB) 2011-Jan-05) version. I had tried to install the dev, but that threw quite a few errors of it's own.
Comment #66
JamFar CreditAttribution: JamFar commentedI am also finding that I cannot submit content on a normal Basic Page. The body does not get submitted and when I try to go back in to edit, the body is not even visible to edit.
The path is something like:
Also, I am getting the same errors on the top of the page (inside the edit), when I go into edit:
Comment #67
amitaibu@JamFar ,
We'll this is already solved in -dev version, so re-reporting on 7.0 won't help in this case ;)
> tried to install the dev, but that threw quite a few errors of it's own.
Then you should check in the issue queue for the solution, it's probably there.
Comment #68
JamFar CreditAttribution: JamFar commentedAmitaibu, you were correct. ...I will continue to explore the site, but here is what I did. I kept the installation I had, as is, but I did an "update" to the og module. This fixed the issue at hand (in this thread). Then I ran the migrate og module and then uninstalled the migrate og module. Now no errors at all. Again, I will continue to explore.
I am wondering if by installing the 1.0 and then the dev, there are no problems as experienced before with the og dev. I have done several clean installs, to try to get the right install. Installing the og last was definitely needed. And it appears doing an upgrade to dev worked out best.
Comment #69
JamFar CreditAttribution: JamFar commented...oops
Comment #70
balagan CreditAttribution: balagan commentedInstalling og-7.x-1.x-dev.tar.gz solved this problem for me. I am also using the dev version of Entity API, which in itself did not solve the problem.
Comment #72
mikkovedru CreditAttribution: mikkovedru commentedI can confirm that installing 7.x-1.x-dev (instead of 7.x-1.0) solved this problem for me as well.
Comment #73
grasmash CreditAttribution: grasmash commentedThis problem seems to exist on the 7.x-2.x branch. I'm receiving this exact error with the latest 7.x-2.x-dev version. Do you happen to know how this was fixed on the 7.x-1.x branch?
Comment #74
radoeka CreditAttribution: radoeka commentedSee last part of the comment #29 (starting with "The following change takes care that the errors are no longer seen:"
http://drupal.org/node/995834#comment-3926500
and this one: http://drupal.org/node/995834#comment-4126438
Hope this helps.