Using the 6.x-3.x-dev (2011-Jun-20) version of views I am getting a white screen with the error:
Fatal error: Call to a member function get_render_tokens() on a non-object in /sites/default/modules/views/plugins/views_plugin_style.inc on line 308
This is when I try to load a panels page with 2 block views used on the page (both from the same view which I have exported and attached).
I don't know enough to figure this out on my own so any help would be great!

Thanks

Comments

deggertsen’s picture

Forgot a fairly important point. The view works fine when logged in as the admin. It only gives the above error when trying to view the page as a visitor.

neoglez’s picture

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

Using the 6.x-3.x-dev (2011-Jun-20) version of views

Moving to the right version.

deggertsen’s picture

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

Oops, my mistake on the version...

I have confirmed that the cause is the view that I attached above. I'm trying to mess with the view to see if there is one thing in particular I can pinpoint that is causing the problem.

deggertsen’s picture

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

Crap, changed it back to 7.x on accident.

deggertsen’s picture

Okay, so I checked out my permissions settings and it looks like the problem was there. I don't understand how that error has anything to do with field permissions but as soon as I made it so anonymous users can view the field used in the view along with the imagecache preset I'm using the page loaded fine with no errors.

Not sure if this is a bug or what but I will wait until somebody who knows more than me looks at this before I close it.

gansm’s picture

I novice on site and my english is bad. Sorry.

I have same error.

And i find problem:
in file views_plugin_style.inc currently

      foreach ($result as $count => $row) {
        $this->view->row_index = $count;
        foreach ($keys as $id) {
          $this->rendered_fields[$count][$id] = $this->view->field[$id]->theme($row);
        }

        $this->row_tokens[$count] = $this->view->field[$id]->get_render_tokens(array());//i think  this row would be in foreach ($keys as $id)
      }

i.e.

      foreach ($result as $count => $row) {
        $this->view->row_index = $count;
        foreach ($keys as $id) {
          $this->rendered_fields[$count][$id] = $this->view->field[$id]->theme($row);
          $this->row_tokens[$count] = $this->view->field[$id]->get_render_tokens(array());//here
        }
      }
bignall’s picture

This fix worked for me as well.

barbi’s picture

Assigned: Unassigned » barbi
Status: Active » Needs review
StatusFileSize
new998 bytes

Code credit: gansm - Comment #6

I checked out views 6.x-3.x
Looks like "id" param created in the loop is used outside the loop. I rolled out a patch for the same.

Not sure if any logic verification is required though.

dawehner’s picture

Status: Needs review » Needs work
+++ b/plugins/views_plugin_style.incundefined
@@ -303,9 +303,8 @@ class views_plugin_style extends views_plugin {
-
-        $this->row_tokens[$count] = $this->view->field[$id]->get_render_tokens(array());
       }
       unset($this->view->row_index);
     }
-- 
1.7.5.1

The idea was to render the content of the last row. The important information is here "array()" so basically "$item" in get_render_tokens() is empty, so it only returns global values.

roam2345’s picture

Closed http://drupal.org/comment/reply/1219372 as its the same issue as this.

Also further feedback with patch.
- Implemented patch and it breaks lots of views that previously worked. The case I have is not totally views specific but using the view_field_views add on to views witch renders views in fields in a view and that then started building more than one view per field 'if that makes sense'.

Tested on D7 branch.

adamdicarlo’s picture

Category: support » bug

This looks like a bug, whether it's in Views or Panels (or core?). So I'm reclassifying the issue.

adamdicarlo’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
StatusFileSize
new1.47 KB

Here's a new patch that likely fixes the side-effects of the previous approaches here. The problem is that sometimes $keys is empty, so the for loop that should set $id never sets it. So $id is empty, and we try to run essentially $array['']->method();.

This patch is rolled off of 7.x-3.x head.

adamdicarlo’s picture

Status: Needs work » Needs review
vegardjo’s picture

I have the same thing, but maybe under some other conditions than other people here it seems.

I got this error on all single nodes that were connected to an Organic Group (no views involved), and also on all pages that included the view og_nodes that comes with Organic Groups. That view has Field: Groups audience:gid set as a contextual filter. Also, I'm pretty sure this worked just a few days ago, and the only changes that have been made those days in between is an update to Drupal 7.7, and added Facebook Connect. So maybe there are some clues there?

But, the patch in #12 did solve the problem for me! I've had a quick look around on the site and haven't seen any side effects so far

dawehner’s picture

Mh,


Here's a new patch that likely fixes the side-effects of the previous approaches here. The problem is that sometimes $keys is empty, so the for loop that should set $id never sets it. So $id is empty, and we try to run essentially $array['']->method();.

This really shouldn't happen.
The function has

    if (!$this->uses_fields()) {
      return;
    }

so you should have always fields availible. Just because an !empty fixes a notice doesn't have to mean that it's the right patch. Did someone already understood the fundamental problem why it's executing this code here?

So this seems to be a problem for many people but only one person managed to provide an export, so based on this

$handler->display->display_options['style_plugin'] = 'slideshow';

this sounds like a bug of the slideshow module.

gg4’s picture

$view = new view;
$view->name = 'webform_images';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'webform_images';
$view->core = 7;
$view->api_version = '3.0-alpha1';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'semanticviews_default';
$handler->display->display_options['style_options']['row']['class'] = 'webform-image views-row';
$handler->display->display_options['row_plugin'] = 'semanticviews_fields';
$handler->display->display_options['row_options']['skip_blank'] = 1;
$handler->display->display_options['row_options']['semantic_html'] = array(
  'field_webform_images' => array(
    'element_type' => 'div',
    'class' => '',
  ),
);
/* Field: Content: Images */
$handler->display->display_options['fields']['field_webform_images']['id'] = 'field_webform_images';
$handler->display->display_options['fields']['field_webform_images']['table'] = 'field_data_field_webform_images';
$handler->display->display_options['fields']['field_webform_images']['field'] = 'field_webform_images';
$handler->display->display_options['fields']['field_webform_images']['label'] = '';
$handler->display->display_options['fields']['field_webform_images']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_webform_images']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_webform_images']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['field_webform_images']['alter']['external'] = 0;
$handler->display->display_options['fields']['field_webform_images']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['field_webform_images']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['field_webform_images']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['field_webform_images']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_webform_images']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_webform_images']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_webform_images']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_webform_images']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_webform_images']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_webform_images']['element_default_classes'] = 0;
$handler->display->display_options['fields']['field_webform_images']['hide_empty'] = 1;
$handler->display->display_options['fields']['field_webform_images']['empty_zero'] = 1;
$handler->display->display_options['fields']['field_webform_images']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['field_webform_images']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_webform_images']['settings'] = array(
  'image_style' => 'bushnell_960gs16_8col_460',
  'image_link' => '',
);
$handler->display->display_options['fields']['field_webform_images']['group_rows'] = 0;
$handler->display->display_options['fields']['field_webform_images']['delta_offset'] = '0';
$handler->display->display_options['fields']['field_webform_images']['delta_reversed'] = 0;
$handler->display->display_options['fields']['field_webform_images']['field_api_classes'] = 0;
/* Sort criterion: Content: Images (field_webform_images:delta) */
$handler->display->display_options['sorts']['delta']['id'] = 'delta';
$handler->display->display_options['sorts']['delta']['table'] = 'field_data_field_webform_images';
$handler->display->display_options['sorts']['delta']['field'] = 'delta';
/* Contextual filter: Content: Nid */
$handler->display->display_options['arguments']['nid']['id'] = 'nid';
$handler->display->display_options['arguments']['nid']['table'] = 'node';
$handler->display->display_options['arguments']['nid']['field'] = 'nid';
$handler->display->display_options['arguments']['nid']['default_action'] = 'default';
$handler->display->display_options['arguments']['nid']['default_argument_type'] = 'node';
$handler->display->display_options['arguments']['nid']['default_argument_skip_url'] = 0;
$handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['nid']['summary_options']['items_per_page'] = '25';
$handler->display->display_options['arguments']['nid']['specify_validation'] = 1;
$handler->display->display_options['arguments']['nid']['validate']['type'] = 'node';
$handler->display->display_options['arguments']['nid']['validate_options']['types'] = array(
  'webform' => 'webform',
);
$handler->display->display_options['arguments']['nid']['validate_options']['access'] = 0;
$handler->display->display_options['arguments']['nid']['break_phrase'] = 0;
$handler->display->display_options['arguments']['nid']['not'] = 0;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
  'webform' => 'webform',
);

/* Display: Block */
$handler = $view->new_display('block', 'Block', 'block');
$handler->display->display_options['block_description'] = 'Webform Images';
adamdicarlo’s picture

@dereine,

Just because an !empty fixes a notice doesn't mean have to mean that it's the right patch.

It's not a notice, it's a crash (a fatal error).

But yes, I don't understand the underlying problem. To prevent the WSOD for our sites for now, this patch is probably the best option so far, though. :/

adamdicarlo’s picture

@_double:

That's not an error, it's a notice, and it looks like a completely different issue--it's happening in a different function. The issue you're seeing probably belongs in the Semantic Views issue queue. If the maintainers there find it's due to a Views bug, then it could come back to the Views issue queue (as a separate issue)....

jlab’s picture

this sounds like a bug of the slideshow module.

I have been struggling with this problem a few days now... The view displays no error when logged in as the Drupal admin user.

I am using a table for the style plugin and still get the following error:

Fatal error: Call to a member function get_render_tokens() on a non-object in /var/aegir/platforms/xbasic-7.7-2.0/sites/all/modules/contrib/views/plugins/views_plugin_style.inc on line 319

Here is a dump of my view:

$view = new view;
$view->name = 'roc_turn_point_times';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Turn Point Times';
$view->core = 7;
$view->api_version = '3.0-alpha1';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['access']['type'] = 'role';
$handler->display->display_options['access']['role'] = array(
  6 => '6',
  5 => '5',
);
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '0';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all'] = 0;
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
  'field_roc_tp_racenumber' => 'field_roc_tp_racenumber',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
  'field_roc_tp_racenumber' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
  ),
);
$handler->display->display_options['style_options']['override'] = 1;
$handler->display->display_options['style_options']['sticky'] = 0;
$handler->display->display_options['style_options']['empty_table'] = 0;
/* Field: Content: Race Number */
$handler->display->display_options['fields']['field_roc_tp_racenumber']['id'] = 'field_roc_tp_racenumber';
$handler->display->display_options['fields']['field_roc_tp_racenumber']['table'] = 'field_data_field_roc_tp_racenumber';
$handler->display->display_options['fields']['field_roc_tp_racenumber']['field'] = 'field_roc_tp_racenumber';
$handler->display->display_options['fields']['field_roc_tp_racenumber']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['alter']['external'] = 0;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['element_label_colon'] = 1;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['element_default_classes'] = 1;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['field_roc_tp_racenumber']['settings'] = array(
  'thousand_separator' => ' ',
  'prefix_suffix' => 1,
);
$handler->display->display_options['fields']['field_roc_tp_racenumber']['field_api_classes'] = 0;
/* Field: Content: Hour */
$handler->display->display_options['fields']['field_roc_tp_hour']['id'] = 'field_roc_tp_hour';
$handler->display->display_options['fields']['field_roc_tp_hour']['table'] = 'field_data_field_roc_tp_hour';
$handler->display->display_options['fields']['field_roc_tp_hour']['field'] = 'field_roc_tp_hour';
$handler->display->display_options['fields']['field_roc_tp_hour']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_roc_tp_hour']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_roc_tp_hour']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['field_roc_tp_hour']['alter']['external'] = 0;
$handler->display->display_options['fields']['field_roc_tp_hour']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['field_roc_tp_hour']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['field_roc_tp_hour']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['field_roc_tp_hour']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_roc_tp_hour']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_roc_tp_hour']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_roc_tp_hour']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_roc_tp_hour']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_roc_tp_hour']['element_label_colon'] = 1;
$handler->display->display_options['fields']['field_roc_tp_hour']['element_default_classes'] = 1;
$handler->display->display_options['fields']['field_roc_tp_hour']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_roc_tp_hour']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_roc_tp_hour']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['field_roc_tp_hour']['settings'] = array(
  'thousand_separator' => ' ',
  'prefix_suffix' => 0,
);
$handler->display->display_options['fields']['field_roc_tp_hour']['field_api_classes'] = 0;
/* Field: Content: Minute */
$handler->display->display_options['fields']['field_roc_tp_minute']['id'] = 'field_roc_tp_minute';
$handler->display->display_options['fields']['field_roc_tp_minute']['table'] = 'field_data_field_roc_tp_minute';
$handler->display->display_options['fields']['field_roc_tp_minute']['field'] = 'field_roc_tp_minute';
$handler->display->display_options['fields']['field_roc_tp_minute']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_roc_tp_minute']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_roc_tp_minute']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['field_roc_tp_minute']['alter']['external'] = 0;
$handler->display->display_options['fields']['field_roc_tp_minute']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['field_roc_tp_minute']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['field_roc_tp_minute']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['field_roc_tp_minute']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_roc_tp_minute']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_roc_tp_minute']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_roc_tp_minute']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_roc_tp_minute']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_roc_tp_minute']['element_label_colon'] = 1;
$handler->display->display_options['fields']['field_roc_tp_minute']['element_default_classes'] = 1;
$handler->display->display_options['fields']['field_roc_tp_minute']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_roc_tp_minute']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_roc_tp_minute']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['field_roc_tp_minute']['settings'] = array(
  'thousand_separator' => ' ',
  'prefix_suffix' => 0,
);
$handler->display->display_options['fields']['field_roc_tp_minute']['field_api_classes'] = 0;
/* Field: Content: Seconds */
$handler->display->display_options['fields']['field_roc_tp_seconds']['id'] = 'field_roc_tp_seconds';
$handler->display->display_options['fields']['field_roc_tp_seconds']['table'] = 'field_data_field_roc_tp_seconds';
$handler->display->display_options['fields']['field_roc_tp_seconds']['field'] = 'field_roc_tp_seconds';
$handler->display->display_options['fields']['field_roc_tp_seconds']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_roc_tp_seconds']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_roc_tp_seconds']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['field_roc_tp_seconds']['alter']['external'] = 0;
$handler->display->display_options['fields']['field_roc_tp_seconds']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['field_roc_tp_seconds']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['field_roc_tp_seconds']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['field_roc_tp_seconds']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_roc_tp_seconds']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_roc_tp_seconds']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_roc_tp_seconds']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_roc_tp_seconds']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_roc_tp_seconds']['element_label_colon'] = 1;
$handler->display->display_options['fields']['field_roc_tp_seconds']['element_default_classes'] = 1;
$handler->display->display_options['fields']['field_roc_tp_seconds']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_roc_tp_seconds']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_roc_tp_seconds']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['field_roc_tp_seconds']['settings'] = array(
  'thousand_separator' => ' ',
  'prefix_suffix' => 0,
);
$handler->display->display_options['fields']['field_roc_tp_seconds']['field_api_classes'] = 0;
/* Sort criterion: Content: Hour (field_roc_tp_hour) */
$handler->display->display_options['sorts']['field_roc_tp_hour_value']['id'] = 'field_roc_tp_hour_value';
$handler->display->display_options['sorts']['field_roc_tp_hour_value']['table'] = 'field_data_field_roc_tp_hour';
$handler->display->display_options['sorts']['field_roc_tp_hour_value']['field'] = 'field_roc_tp_hour_value';
/* Sort criterion: Content: Minute (field_roc_tp_minute) */
$handler->display->display_options['sorts']['field_roc_tp_minute_value']['id'] = 'field_roc_tp_minute_value';
$handler->display->display_options['sorts']['field_roc_tp_minute_value']['table'] = 'field_data_field_roc_tp_minute';
$handler->display->display_options['sorts']['field_roc_tp_minute_value']['field'] = 'field_roc_tp_minute_value';
/* Sort criterion: Content: Seconds (field_roc_tp_seconds) */
$handler->display->display_options['sorts']['field_roc_tp_seconds_value']['id'] = 'field_roc_tp_seconds_value';
$handler->display->display_options['sorts']['field_roc_tp_seconds_value']['table'] = 'field_data_field_roc_tp_seconds';
$handler->display->display_options['sorts']['field_roc_tp_seconds_value']['field'] = 'field_roc_tp_seconds_value';
/* Contextual filter: Feeds item: Owner feed nid */
$handler->display->display_options['arguments']['feed_nid']['id'] = 'feed_nid';
$handler->display->display_options['arguments']['feed_nid']['table'] = 'feeds_item';
$handler->display->display_options['arguments']['feed_nid']['field'] = 'feed_nid';
$handler->display->display_options['arguments']['feed_nid']['default_action'] = 'default';
$handler->display->display_options['arguments']['feed_nid']['default_argument_type'] = 'node';
$handler->display->display_options['arguments']['feed_nid']['default_argument_skip_url'] = 0;
$handler->display->display_options['arguments']['feed_nid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['feed_nid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['feed_nid']['summary_options']['items_per_page'] = '25';
$handler->display->display_options['arguments']['feed_nid']['break_phrase'] = 0;
$handler->display->display_options['arguments']['feed_nid']['not'] = 0;
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 0;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
  'turn_point_time' => 'turn_point_time',
);

/* Display: Turn Point Times */
$handler = $view->new_display('block', 'Turn Point Times', 'block_1');
$handler->display->display_options['display_description'] = 'Turn Point Times Table';

If this might be of any help I installed views-7.x-3.0-beta3 and imported my views and everything seems to be working fine with that version of views.

ekkosmos’s picture

Still is not working right! The problem seems to be Views 7.x-3.0-rc1...

SchwebDesign’s picture

EDIT: Okay disregard the below. This happened for me because the fields output in the view didn't have view permission for the anonymous user, thus the view output was empty. The patch helped, but of course my real solution was to not have an empty view output and enable the fields.

----------------------------------------------------------------------------------------------------------------------------------
hmmm.... interesting that I got this exact error,

this only happens for me as anonymous user when viewing the view page, not as admin user when viewing the view page.

but I'm using...

Drupal 6.22
Views 6.x-3.x-dev with this info in the .info
Information added by drupal.org packaging script on 2011-08-06
datestamp = "1312591803"

Views Slideshow 6.x-3.0-beta1
Views Slideshow: Cycle 6.x-3.0-beta1
Views slideshow: DDblock 6.x-2.0

My error:

Fatal error: Call to a member function get_render_tokens() on a non-object in /home/groundbu/public_html/stage/sites/all/modules/views/plugins/views_plugin_style.inc on line 308
dawehner’s picture

Assigned: barbi » Unassigned
Status: Needs review » Fixed

@SchwebDesign
This is a damn helpful column, really. The problem is as you described if you have access to no fields

Commited the patch from above with a small comment above. Thanks again for everyone trying to figure out the problem.

Status: Fixed » Closed (fixed)

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

SchwebDesign’s picture

this just happened to me again. I knew it looked familiar but couldn't remember what i did to fix it until i found my own post above! How silly i felt... but regardless... does anyone agree that there should be some other behavior (rather than WSOD) when this case occurs. Perhaps a notice saying "you do not have permission to view any of the fields in this view."

othermachines’s picture

If it helps, I received this fatal error in 7.8 (no patch applied) after I accidentally deleted a content type. The page was trying to load a view that used one of its fields (which of course no longer existed). I do have Views Slideshow installed but I wasn't using it for this particular view.

I do agree that WSOD is overkill, although in my case my slip (deleting a content type) was severe enough and it certainly grabbed my attention right away. The "no access" problem wouldn't warrant that, though. Perhaps better to not load a view when fields are required for display and yet there are no fields or the user doesn't have access to them? Or if multiple fields, just hide the problematic fields?