I'm encountering a PHP notice while calling http://example.com/taxonomy/term/1/all/feed:
Notice: Undefined variable: vocabularies in i18nviews_plugin_argument_validate_i18n_taxonomy_term->validate_argument_i18n_tids() (line 165 of /sites/all/modules/i18nviews/includes/i18nviews_plugin_argument_validate_i18n_taxonomy_term.inc).

I'm using Views for taxonomy terms.

Comments

scito’s picture

The code was added in issue #1359132: Extend taxonomy term argument validator plugin..

$vocabularies is never set in the validate_argument_i18n_tid() and validate_argument_i18n_tids() functions.

I don't know if setting $vocabularies as in validate_argument() would fix the problem:

  function validate_argument($argument) {
    $vocabularies = $this->options['vocabularies'];

BTW: I'm using PHP 5.3.14.

webflo’s picture

Status: Active » Fixed

Fixed in commit 7e22fa8. Thanks!

scito’s picture

The PHP notice disappeared.

That was fast!

Thanks, too.

Status: Fixed » Closed (fixed)

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