I'm getting an error that looks like:

warning: Invalid argument supplied for foreach() in /drupal/sites/all/modules/views_tagger/views_tagger.module on line 113

Is there something wrong with my Taxonomies?

CommentFileSizeAuthor
#7 Status report68.49 KBwulff

Comments

wulff’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
Assigned: Unassigned » wulff
Category: support » bug

Does your view contain node types with no attached vocabularies? Looking at the code, that could be the reason.

I'll update the module to make that part of the code more robust.

wulff’s picture

Status: Active » Fixed

This has been fixed in the latest development version of the module.

marcverlinden’s picture

Just downloaded the latest version but i still receive the error message

wulff’s picture

Status: Fixed » Active

Can you try dumping the contents of $taxform['taxonomy'] just before line 113?

How are you taxonomies configured?

wulff’s picture

Also, are you using any contrib modules which modify the normal taxonomy behavior?

I just checked locally, and the only way I can reproduce this error is to include a node with no attached vocabularies in the view. Did you test with the latest stable release or with the latest development release?

olafkarsten’s picture

Hello, I have the some problem here with the actual HEAD Code. I'm not a programmer, so I can't help much. But I tried to find a module or combination that causes the error and so I find out, when I enable the hierachical taxonomy select (sub)module, I got the warnings. If I disable the module, the messages disappear. Hope that give you some hints, where to look to find a solution.

Olaf, Germany, Berlin

wulff’s picture

StatusFileSize
new68.49 KB

Olaf, I tried testing this again locally.

I was unable to reproduce the error using the following versions of the modules:

Hierarchical Select 3.1
Views Tagger HEAD

See the attached screenshot for the rest of the version info. Which versions of the various components are you running?

wulff’s picture

Status: Active » Postponed (maintainer needs more info)