Hello, i have a problem with the field type of file, display the next error

warning: Invalid argument supplied for foreach() in /opt/lampp/htdocs/../includes/common.inc on line 1647.

I revised the database but only created tid and the name of field...

any solution for this?

Sorry for my bad english.

Comments

b-prod’s picture

Status: Active » Postponed (maintainer needs more info)

Actually it is not possible for me to reproduce this bug without some more information. What exactly did you do?

Please include as much information as you can: OS, webserver name and version, PHP version, Drupal version, Drupal path, and everything else you might feel is relevant. There is no such thing as a bug report that is too detailed.

isaakordonez’s picture

ok sorry,First a create a term field type file for upload pdf, so i created a view and i show Term Field(type File for upload a pdf) but in the view only show the ID for the file but i didn't show the url for the file,
i search en the database but only have tid and the name of field .

OS: Ubuntu with XAMPP
PHP version: PHP 5.2
Drupal Version: 6.16

/* sorry for my english */

b-prod’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new43.97 KB
new44.23 KB
new759 bytes

Here is a patch which had a relationship handler for term file fields in a view.
So you have to apply the patch, clear the Drupal cache, and add this new relationship into your view.
Then you will be able to use any view field in the file group and give them this new created relationship.

I added some print screens to help you.

Please tell me if this patch works fine and if so, set this issue as "reviewed by the community".
Thanks

isaakordonez’s picture

Status: Needs review » Reviewed & tested by the community
b-prod’s picture

Version: 6.x-1.12 » 6.x-1.x-dev
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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