Notice: Undefined property: panels_views_plugin_row_fields::$field_alias in panels_views_plugin_row_fields->render() (line 172 of /Users/clark/Documents/sites/latc-project.eu/sites/all/modules/panels-HEAD/plugins/views/panels_views_plugin_row_fields.inc).

I get that notice when I use Panel Fields in Views. I am using the latest HEAD of both modules.

The code in question is:

foreach ($this->region_fields as $region_id => $fields) {
      $this->view->field = $fields;
      $content[$region_id] = theme($this->theme_functions(), array('view' => $this->view, 'options' => $this->options, 'row' => $row, 'field_alias' => $this->field_alias));
    }

$this->field_alias is not set on the panels_views_plugin_rows_fields object. Since this is styling multiple fields, using views_view_fields.tpl.php, is $this->field_alias even applicable?

When I remove the 'field_alias' element in the array, it works and no notices are displayed.

Comments

Status:Active» Needs review
StatusFileSize
new1.04 KB

Patch just in case I'm correct.

I think that patch is probably right. field_alias isn't used unless the row style adds a field, which this one does not.

Status:Needs review» Fixed

Committed!

Status:Fixed» Active
StatusFileSize
new8.92 KB

Sorry, not sure if my troubles are related, but same error. Both Panels and Views are in 7.x-3 alpha1

Attached is problem View.

Status:Active» Postponed (maintainer needs more info)

Please note that it is absolutely impossible to get the exact same error while this patch is applied, because it changes the characteristics of the line in question. So clearly #4 is not exactly correct. My guess is that it's using a -dev from prior to this commit and this was not verified by #4.

Status:Postponed (maintainer needs more info)» Fixed

Status:Fixed» Closed (fixed)

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

Version:7.x-3.x-dev» 6.x-3.x-dev
Status:Closed (fixed)» Active
StatusFileSize
new748 bytes

This still exists in views 3 d6-- patch attached.

Status:Active» Needs review

Version:6.x-3.x-dev» 7.x-3.3

Note, I just got this issue with 7.x-3.3 & Views7.x-3.7.

Notice: Undefined property: panels_views_plugin_row_fields::$field_alias in panels_views_plugin_row_fields->render() (line 92 of /var/www/psac/sites/all/modules/contrib/panels/plugins/views/panels_views_plugin_row_fields.inc).