Whenever I open the Forums page on my site the following message is displayed:

Warning: Invalid argument supplied for foreach() in i18n_forum_menu_local_tasks_alter() (Zeile 35 von /var/www/html/cm7/sites/all/modules/i18n/i18n_forum/i18n_forum.module).

Is this possibly an error in the Internationalization module?

Comments

troky’s picture

Project: Advanced Forum » Internationalization
Version: 7.x-2.0-beta1 » 7.x-1.x-dev
Component: Other module integration » Taxonomy

This is actually Internationalization module bug caused by old core forum bug: #1003308: Forum module cannot decide if it wants 'taxonomy_forums' hardcoded in it leading to faulty functioning.

Try to change line 34 in i18n_forum.module

from:

$field = field_info_field('taxonomy_' . $vocabulary->machine_name);

to:

$field = field_info_field('taxonomy_forums');
GStegemann’s picture

Yes, that fixed it. Thanks.

jose reyero’s picture

Status: Active » Closed (fixed)

Added some checks for the case when the forum vocabulary is not properly set or there are no fields.