Undefined index: en in opencalais_get_suggestions() (line 381 of opencalais/opencalais.module).
Warning: Invalid argument supplied for foreach() in opencalais_get_suggestions() (line 381 of opencalais/opencalais.module).

I enabled opencalais auto suggest for a content type
I hit edit for the node and I get the above at the top of the page

I think 'en' stands for 'english' as I have content translation enabled.

Comments

SocialNicheGuru’s picture

I get this when I select the following and when I have content translation enabled:
"index textfields should not be enabled"

ElusiveMind’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)
ElusiveMind’s picture

This may have been part of the old dev branch. I cannot locate this issue in the current one.

nagy.balint’s picture

Status: Closed (cannot reproduce) » Active

I still have this issue with 7.x-1.2 which is only an unrelated commit behind the latest dev.

The issue seems to be that the following line
$node->{$field_name}[$node->language]
will try to use the node's language instead of the fields language. And so if the node is created by default with the "en" language, but there is no field translation, then the field only has "und" and so it will throw undefined index, and wont work.
Of course this can be fixed by turning on translation and setting node language to neutral language, but that would then prevent the node to be translated.

ElusiveMind’s picture

As irony would have it, I was able to reproduce this today while looking into this. Investigating a fix.

  • ElusiveMind committed 0090571 on 7.x-1.x
    Issue #2751887 by erwangel: Undefined property: stdClass::$permid as $...
ElusiveMind’s picture

Status: Active » Needs review

Now in dev branch for review