[18-May-2008 00:12:43] PHP Fatal error: Cannot use object of type stdClass as array in /Users/bart/htdocs/nederdev/modules/i18n/i18n.module on line 264

I am getting this error when I have enabled Multilingual Taxonomy. I have set up two vocabs, one for English pages, another for Dutch pages. I have also created one node in each language with one term each. After that I tried to check out the terms per vocabulary at /admin/content/taxonomy/2 and my PHP log showed this error message.

CommentFileSizeAuthor
#7 i18n_259722.patch912 bytesdrewish
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

markus_petrux’s picture

Also found this error. Sorry for not having the tools to generate a patch at hand, though the fix is pretty simple. That line 264 looks like:

  return isset($languages[$code][$property]) ? $languages[$code][$property] : NULL;

and it should look like:

  return isset($languages[$code]->$property) ? $languages[$code]->$property : NULL;
AaronCollier’s picture

Status: Active » Needs review
andershal’s picture

I can confirm both the problem and the patch suggested here. Don't know if thats enough to qualify for "reviewed and tested by the community" :-)

AaronCollier’s picture

Status: Needs review » Reviewed & tested by the community

If that's three people, it works for me.

gmknowles’s picture

Thank you for the fix. That worked.

Skiller-1’s picture

Same here. Fix worked.

Best wishes

C.

drewish’s picture

Status: Reviewed & tested by the community » Fixed
FileSize
912 bytes

simple fix and jose seems really busy so committing the attached to head.

drewish’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.