Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2011 at 13:26 UTC
Updated:
28 Mar 2011 at 09:14 UTC
Jump to comment: Most recent file
Comments
Comment #1
dawehnerI'm wondering why raw is not defined here.
Could it be that the result is empty on this column?
Comment #2
das-peter commentedIndeed I was dealing with empty fields #1020540: Add a "Hide Rewriting if field is empty" option as this notice showed up.
I was working with single checkboxes - and some of them were unchecked. Looks like these fields were reeeeeally empty ;)
Comment #3
maebelater commentedI've run into this issue when trying to output Media module field as link using tokens - namely, "Undefined index: raw in views_handler_field_field->add_self_tokens() in line 619"
This patch AND checking "Use field template" during field configuration made things manageable, thanks.
Comment #4
manuel garcia commentedWell, patch applies ok, and errors are gone... whether or not this is a symptom of a problem somewhere else, that's something that should be investigated.
Comment #5
manuel garcia commentedWell, patch applies ok, and errors are gone... whether or not this is a symptom of a problem somewhere else, that's something that should be investigated.
Comment #6
slashrsm commentedI have a different issue on the same place. Again field comes from media. In my case I get this error:
Cannot use object of type stdClass as array in /var/www/daniels/www/sites/polet.si/modules/contrib/views/modules/field/views_handler_field_field.inc on line 621
I used a step debugger and found out, that $item['raw'] is stdObject, but is expected to be an array. Should we check here if it is an object or array? Or it is this maybe media related bug?
Comment #7
dawehner@slashrsm
What kind of field do you display there?
Perhaps it would help even more if you could provide the content of $item['raw'] here.
Comment #8
slashrsm commented@dereine
It is media field. Content of $item['raw'] is attached.
Comment #9
dawehner@slashrsm
Can you please create a new issue for this. This is another issue.
It is somehow required that you provide a way to reproduce this problem. Here i can use media module as token etc. without problems.
Comment #10
slashrsm commented@dereine
Created new issue #1064334: Cannot use object of type stdClass as array in views_handler_field_field.inc on line 621.
Comment #11
rszrama commentedJust +1'ing this issue. I turned it up when trying to use an empty text on a View. The problem isn't that the field has no data, it's if it has no data and you have assigned it to use empty text. Does the empty text work through a separate handler that still references the field info? That might explain why add_self_tokens() thinks it should find field data.
In any event, the patch is obviously an easy solution, though I wonder if the problem doesn't exist upstream.
Comment #12
klausiGot bitten from this issue, too. Patch form #1 works fine, adding it to my distribution drush_make file.
Comment #13
dawehnerDoh!
Always filtered by "needs review"!
Comment #15
servantleader commentedIs this fixed? I am having this exact error with the latest dev (Mar 14, 2011). Did the patch get in?
Comment #16
dopedwizard commented