After upgrading to latest dev versions for views, calendar and date, I'm getting the following error whenever I look at "Year" view for a calendar:

"Fatal error: Call to a member function advanced_render() on a non-object in ...\views\theme\theme.inc on line 225"

Calendar 6.x-2.x-dev (2010 April-1)
Date 6.x-2.x-dev (2010-Mar-26)
Views 6.x-2.x-dev (2010-Apr-07)

Again, I can only produce the error on "Year" view (not day, week, month etc.). Any ideas?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

NoDice’s picture

Hmmm it appears now that it's not just "Year" view. It's basically any calendar view that has a Date node.

endiku’s picture

Yes, I just installed the current dev version of Date and Views3 and I am having this fatal error out on the Upcoming view.

I haven't found a concise view yet. So far the issue is in the Calendar_date view.

The Date argument has this warning
warning: Invalid argument supplied for foreach() in C:\Apache\htdocs\drupal\includes\form.inc on line 1207.

merlinofchaos’s picture

Can you please attach an export of the smallest possible view that demonstrates this? Replicating this will be crucial to understanding what is going on.

endiku’s picture

FileSize
14.59 KB

This is just the default build Calendar_date view from the Calendar module. It fatal error's on any view or even referencing the views through panels. Sorry that isn't as much help at the moment.

NoDice’s picture

I just found a similar issue over at calendar here: PHP 5.3 issue - Attempt to modify property of non-object

Seems to be related to new PHP5.3 functionality and not all 3 modules (views,date,calendar) are fully compatible w/ PHP5.3. But then again, I'm only running PHP 5.2.9, so maybe I need to upgrade and this issue would go away...? Or I could roll-back to older versions of all 3. They worked before I upgraded them all today.

Here are my versions again:
Calendar 6.x-2.x-dev (2010 April-1)
Date 6.x-2.x-dev (2010-Mar-26)
Views 6.x-2.x-dev (2010-Apr-07)
PHP Version: 5.2.9
MySQL: 5.1.33

Again, I only get this error if the calendar view has date nodes. For example, empty month view is fine, empty day view is fine, but any view that has even 1 date node produces this error.

$view = new view;
$view->name = 'calendar_paid_classes';
$view->description = 'An event calendar for paid classes';
$view->tag = 'Calendar';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '[title] <img src="../mysite/sites/default/files/imagecache_sample.png" width=10 height=10>',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
    'override' => array(
      'button' => 'Override',
    ),
  ),
  'field_dollar_sign_fid' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'image_plain',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 0,
    'id' => 'field_dollar_sign_fid',
    'table' => 'node_data_field_dollar_sign',
    'field' => 'field_dollar_sign_fid',
    'relationship' => 'none',
  ),
  'field_date' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '4',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'event_time_only',
    'multiple' => array(
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_to' => '',
      'group' => 0,
    ),
    'repeat' => array(
      'show_repeat_rule' => 'hide',
    ),
    'fromto' => array(
      'fromto' => 'both',
    ),
    'exclude' => 0,
    'id' => 'field_date_value',
    'field' => 'field_date_value',
    'table' => 'node_data_field_date',
    'relationship' => 'none',
  ),
  'field_instructor_value' => array(
    'label' => 'Instructor',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'widget',
    'format' => 'default',
    'multiple' => array(
      'group' => 1,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_instructor_value',
    'table' => 'node_data_field_instructor',
    'field' => 'field_instructor_value',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('sorts', array(
  'field_date' => array(
    'order' => 'ASC',
    'delta' => '-1',
    'id' => 'field_date_value',
    'table' => 'node_data_field_date',
    'field' => 'field_date_value',
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'date_argument' => array(
    'default_action' => 'default',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'default_argument_type' => 'date',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
    'date_fields' => array(
      'node_data_field_date.field_date_value' => 'node_data_field_date.field_date_value',
    ),
    'year_range' => '-3:+3',
    'date_method' => 'OR',
    'granularity' => 'month',
    'id' => 'date_argument',
    'table' => 'node',
    'field' => 'date_argument',
    'relationship' => 'none',
    'default_argument_user' => 0,
    'default_argument_fixed' => '',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(),
    'validate_argument_type' => 'tid',
    'validate_argument_php' => '',
    'override' => array(
      'button' => 'Override',
    ),
    'default_options_div_prefix' => '',
  ),
));
$handler->override_option('filters', array(
  'status' => array(
    'operator' => '=',
    'value' => 1,
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status',
    'table' => 'node',
    'field' => 'status',
    'relationship' => 'none',
  ),
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'date' => 'date',
      'paid_class' => 'paid_class',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => 'type_op',
      'label' => 'Node: Type',
      'use_operator' => 0,
      'identifier' => 'type',
      'optional' => 1,
      'single' => 1,
      'remember' => 0,
      'reduce' => 0,
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
  'role' => array(),
  'perm' => '',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('title', 'Combined Calendar');
$handler->override_option('header_format', '1');
$handler->override_option('header_empty', 1);
$handler->override_option('items_per_page', 0);
$handler->override_option('use_more', 0);
$handler->override_option('style_plugin', 'calendar_nav');
$handler = $view->new_display('calendar', 'Calendar page', 'calendar_1');
$handler->override_option('header', '<div align="left"><strong>Hours of Operation:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pool Hours:</strong></div>
<div align="left">Monday -Thursday 5:30am-9:00pm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Monday -Thursday 7:15am - 7:30pm</div>
<div align="left">Friday: 5:30am - 8:00pm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Friday 7:15am - 7:15pm</div>
<div align="left">Saturday 7:00am-2:00pm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saturday 7:30am-1:15pm</div>
<div align="left">Sunday 12:00pm-4:00pm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sunday 12:00pm-3:30pm</div>
<div align="center">&nbsp;</div>
<div align="center"><strong>classess.&nbsp; </strong></div>
<div align="center"><strong>All classes are included in the price of your membership.<br />
</strong></div>
<div style="float:right;">
<?php
$block = module_invoke(\'calendar\', \'block\', \'view\', 0);
print $block[\'content\'];
?>
</div><div style="clear:both;"></div>');
$handler->override_option('header_format', '3');
$handler->override_option('path', 'calendars/combined');
$handler->override_option('menu', array(
  'type' => 'normal',
  'title' => 'Combined',
  'description' => '',
  'weight' => '0',
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('calendar_colors', array(
  'blog' => '#ffffff',
  'date' => '#e87373',
  'dash_video' => '#ffffff',
  'flashnode' => '#ffffff',
  'forum' => '#ffffff',
  'image' => '#ffffff',
  'bulk_images' => '#ffffff',
  'meal_log' => '#ffffff',
  'news_post' => '#ffffff',
  'page' => '#ffffff',
  'paid_class' => '#7180f4',
  'product' => '#ffffff',
  'profile' => '#ffffff',
  'profile_of_the_month' => '#ffffff',
  'swf_tools_flash' => '#ffffff',
  'story' => '#ffffff',
  'testimonial' => '#ffffff',
  'webform' => '#ffffff',
));
$handler->override_option('calendar_colors_vocabulary', array());
$handler->override_option('calendar_colors_taxonomy', array());
$handler->override_option('calendar_popup', 0);
$handler->override_option('calendar_date_link', 'date');
$handler = $view->new_display('calendar_block', 'Calendar block', 'calendar_block_1');
$handler->override_option('block_description', 'Combined Calendar');
$handler->override_option('block_caching', -1);
$handler = $view->new_display('calendar_period', 'Year view', 'calendar_period_1');
$handler->override_option('style_plugin', 'calendar_style');
$handler->override_option('style_options', array(
  'display_type' => 'year',
  'name_size' => 1,
  'max_items' => 0,
));
$handler->override_option('attachment_position', 'after');
$handler->override_option('inherit_arguments', TRUE);
$handler->override_option('inherit_exposed_filters', TRUE);
$handler->override_option('inherit_pager', FALSE);
$handler->override_option('render_pager', TRUE);
$handler->override_option('displays', array(
  'calendar_1' => 'calendar_1',
  'default' => 0,
  'calendar_block_1' => 0,
));
$handler->override_option('calendar_type', 'year');
$handler = $view->new_display('calendar_period', 'Month view', 'calendar_period_2');
$handler->override_option('style_plugin', 'calendar_style');
$handler->override_option('style_options', array(
  'display_type' => 'month',
  'name_size' => '99',
  'with_weekno' => '1',
  'date_fields' => NULL,
  'max_items' => 0,
));
$handler->override_option('attachment_position', 'after');
$handler->override_option('inherit_arguments', TRUE);
$handler->override_option('inherit_exposed_filters', TRUE);
$handler->override_option('inherit_pager', FALSE);
$handler->override_option('render_pager', TRUE);
$handler->override_option('displays', array(
  'calendar_1' => 'calendar_1',
  'default' => 0,
  'calendar_block_1' => 0,
));
$handler->override_option('calendar_type', 'month');
$handler = $view->new_display('calendar_period', 'Day view', 'calendar_period_3');
$handler->override_option('style_plugin', 'calendar_style');
$handler->override_option('style_options', array(
  'name_size' => '99',
  'with_weekno' => 0,
  'max_items' => 0,
  'max_items_behavior' => 'more',
  'groupby_times' => 'custom',
  'groupby_times_custom' => '00:00:00,05:00:00,05:30:00,06:00:00,06:30:00,07:00:00,07:30:00,08:00:00,08:30:00,09:00:00,09:30:00,10:00:00,10:30:00,11:00:00,11:30:00,12:00:00,12:30:00,13:00:00,13:30:00,14:00:00,14:30:00,15:00:00,15:30:00,16:00:00,16:30:00,17:00:00,17:30:00,18:00:00,18:30:00,19:00:00,19:30:00,20:00:00,20:30:00,21:00:00,21:30:00,22:00:00,22:30:00,23:00:00,23:30:00',
  'groupby_field' => 'node_title',
));
$handler->override_option('attachment_position', 'after');
$handler->override_option('inherit_arguments', TRUE);
$handler->override_option('inherit_exposed_filters', TRUE);
$handler->override_option('inherit_pager', FALSE);
$handler->override_option('render_pager', TRUE);
$handler->override_option('displays', array(
  'calendar_1' => 'calendar_1',
  'default' => 0,
  'calendar_block_1' => 0,
));
$handler->override_option('calendar_type', 'day');
$handler = $view->new_display('calendar_period', 'Week view', 'calendar_period_4');
$handler->override_option('style_plugin', 'calendar_style');
$handler->override_option('style_options', array(
  'name_size' => '99',
  'with_weekno' => 0,
  'max_items' => 0,
  'max_items_behavior' => 'more',
  'groupby_times' => 'custom',
  'groupby_times_custom' => '06:00:00,07:00:00,08:00:00,09:00:00,10:00:00,11:00:00,12:00:00,13:00:00,14:00:00,15:00:00,16:00:00,17:00:00,18:00:00,19:00:00,20:00:00,21:00:00,22:00:00,23:00:00',
  'groupby_field' => '',
));
$handler->override_option('attachment_position', 'after');
$handler->override_option('inherit_arguments', TRUE);
$handler->override_option('inherit_exposed_filters', TRUE);
$handler->override_option('inherit_pager', FALSE);
$handler->override_option('render_pager', TRUE);
$handler->override_option('displays', array(
  'calendar_1' => 'calendar_1',
  'default' => 0,
  'calendar_block_1' => 0,
));
$handler->override_option('calendar_type', 'week');
$handler = $view->new_display('calendar_period', 'Block view', 'calendar_period_5');
$handler->override_option('style_plugin', 'calendar_style');
$handler->override_option('style_options', array(
  'display_type' => 'month',
  'name_size' => '1',
));
$handler->override_option('attachment_position', 'after');
$handler->override_option('inherit_arguments', TRUE);
$handler->override_option('inherit_exposed_filters', TRUE);
$handler->override_option('inherit_pager', FALSE);
$handler->override_option('render_pager', TRUE);
$handler->override_option('displays', array(
  'calendar_1' => 0,
  'default' => 0,
  'calendar_block_1' => 'calendar_block_1',
));
$handler->override_option('calendar_type', 'month');
$handler = $view->new_display('block', 'Upcoming', 'block_1');
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'field' => 'title',
    'table' => 'node',
    'relationship' => 'none',
    'format' => 'default',
  ),
  'field_date' => array(
    'label' => '',
    'link_to_node' => 0,
    'exclude' => 0,
    'id' => 'field_date_value',
    'field' => 'field_date_value',
    'table' => 'node_data_field_date',
    'relationship' => 'none',
    'label_type' => 'none',
    'format' => 'default',
    'multiple' => array(
      'group' => 0,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
  ),
));
$handler->override_option('arguments', array());
$handler->override_option('filters', array(
  'status' => array(
    'operator' => '=',
    'value' => 1,
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status',
    'table' => 'node',
    'field' => 'status',
    'relationship' => 'none',
  ),
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'date' => 'date',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
  'date_filter' => array(
    'operator' => '>=',
    'value' => array(
      'value' => NULL,
      'min' => NULL,
      'max' => NULL,
      'default_date' => 'now',
      'default_to_date' => '',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'date_fields' => array(
      'node_data_field_date.field_date_value' => 'node_data_field_date.field_date_value',
    ),
    'granularity' => 'day',
    'form_type' => 'date_select',
    'default_date' => 'now',
    'default_to_date' => '',
    'id' => 'date_filter',
    'table' => 'node',
    'field' => 'date_filter',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('title', 'Upcoming');
$handler->override_option('items_per_page', 5);
$handler->override_option('use_more', 1);
$handler->override_option('style_plugin', 'list');
$handler->override_option('style_options', array(
  'grouping' => '',
  'type' => 'ul',
));
$handler->override_option('block_description', 'Upcoming');
$handler->override_option('block_caching', -1);
chrisfromredfin’s picture

Just FYI it seems like the schema updates should still work with 2.8 (seem to for me); I had to revert to 2.8 so my production site worked, and seems to be running OK (till a fix comes). (This happened to me when applying the security update for 2.9, not the -dev version - though it's presumably the same problem.)

Anonymous’s picture

Version: 6.x-2.x-dev » 6.x-2.9
Priority: Normal » Critical

Since upgrading views to 2.9 I am also seeing this issue on calendar pages

jmcclelland’s picture

Same here.

chrisal’s picture

Same error on my two sites. (same error with 3.0 alpha). Thanks for patch or workaround

jmcclelland’s picture

I have no idea what the real problem is - but this patch makes the error go away:

--- theme.inc.orig      2010-04-08 11:07:25.000000000 -0400
+++ theme.inc   2010-04-08 11:19:00.000000000 -0400
@@ -222,6 +222,11 @@
  */
 function theme_views_view_field($view, $field, $row) {
   // Reference safe for PHP 4:
+  if(!is_object($view->field[$field->options['id']])) {
+       if($field->options['id'] == 'field_date_value') {
+               $field->options['id'] = 'field_date';
+       }
+  }
   return $view->field[$field->options['id']]->advanced_render($row);
 }
merlinofchaos’s picture

http://drupal.org/node/765410 is reporting a similar problem with views_custom_field

It's going to take some private time with debugging the flow, I think, to figure out what's wrong here.

Island Usurper’s picture

It's not just Date, because I'm having the same problem with an Imagefield field. I don't know what's special about it because I can add an identical field to the view, and it works. But if I take the new field off again, it stops working.

Druper’s picture

I had the same problem after upgrading to Views 2.9. Reverted to 2.8 until fix is found.

Just wanted to point out that problem exists in PHP 5.2.13 too, not restricted to 5.3

georgedamonkey’s picture

Sadly, that does not work for me at all...

merlinofchaos’s picture

Ok, the problem is that the 'id' does not match the actual key on some fields.

I do not currently know why this would be. I'm trying to figure out a good fix.

As a workaround, you might be able to export your view, go through the 'fields' section and ensure that the 'id' matches the key to the array, then re-import. I know that's a bad workaround but I think it'll fix the views until I can find the right way to do this.

bishless’s picture

/sigh... wish I'd read this thread before upgrading this morning. I'm borked w/ the same issue.

merlinofchaos’s picture

Status: Active » Needs review
FileSize
2.71 KB

Urgent testing needed: Anyone experiencing this trouble, does this fix it?

Steve Hanson’s picture

Earl -
I made a quick pass at trying this out on the site where I'm having trouble with the 2.9 update, and this patch doesn't seem to have fixed anything -- I'll try to take a closer look in a little while.

chrisfromredfin’s picture

I have a good safe test environment where I can test this. I applied the patch (and I'm pretty sure I verified that it applied correctly. It doesn't seem to fix my issue, but additionally, it introduces:

Fatal error: Cannot use object of type views_display as array in /var/www/tc.redfinsolutions.net/sites/all/modules/views/includes/view.inc on line 1869.

UPDATE: I reversed the patch (so I'm at straight views 2.9 now) and instead just put in some debug statements to show $id and $this->handler[$id]['id']... those statements weren't even being executed (nothing in my watchdog), so it makes me think that the code to fix the ID is too late to fix the root cause of MY particular problem, anyway. I can provide my exported view if you want, but it's a total bear. It's the default 'Calendar' view that's generated, plus a bunch of additional filters, etc. How else can I help?

merlinofchaos’s picture

Oh hm. Ok, that means my patch is wrong. Thanks for the report, I'll roll a new one.

chrisfromredfin’s picture

It is something with the ID's, as you likely know by now. In the $view object the id is "field_date," and in the field object the ID is "field_date_value."

merlinofchaos’s picture

FileSize
2.42 KB

Yes, first patch was *really* wrong. Sigh. Try this one?

timb’s picture

I received this error after upgrading to views 2.9 on a site using calendar. Reverting to views 2.8 has brought the site back on line.

timb’s picture

Issue tags: +date
merlinofchaos’s picture

Issue tags: -date

We don't need tags for specific issues. That's a needless creation of tags in the drupal.org database. :/

dawehner’s picture

Issue tags: +date

The last tag is just not true. Thats not caused by the security update.

This kind of tags are not really helping.

views-3.x roadmap or novice or needs tests are some good example for tags.

dawehner’s picture

Issue tags: -date

and remove

chrisfromredfin’s picture

Patch in #22's a winner for me.

dawehner’s picture

FileSize
672 bytes

Patch worked fine for this view:


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

/* Display: Defaults */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
/* Field: Node: Nid */
$handler->display->display_options['fields']['nid']['id'] = 'nid23';
$handler->display->display_options['fields']['nid']['table'] = 'node';
$handler->display->display_options['fields']['nid']['field'] = 'nid';
$handler->display->display_options['fields']['nid']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['nid']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['nid']['alter']['trim'] = 0;
$handler->display->display_options['fields']['nid']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['nid']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['nid']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['nid']['alter']['html'] = 0;
$handler->display->display_options['fields']['nid']['hide_empty'] = 0;
$handler->display->display_options['fields']['nid']['empty_zero'] = 0;
$handler->display->display_options['fields']['nid']['link_to_node'] = 0;

Attached a patch for views3

merlinofchaos’s picture

Status: Needs review » Fixed

Committed to all branches.

endiku’s picture

Version: 6.x-2.9 » 6.x-2.x-dev
Priority: Critical » Normal
Status: Fixed » Active

Just wanted to say cudos and thanks for the dedication. The quick response time was amazing.

Crap, I didn't intend to change the issue, my bad.

dawehner’s picture

you shouldn't change the issue stuff after fixing it :) I think this is not open anymore

IreneKraus’s picture

Version: 6.x-2.x-dev » 6.x-2.9
Priority: Normal » Critical
Status: Active » Fixed

I was referred to this thread as the update in Views has rendered one of my sites inoperable. That site is run as part of a multi-site install and the other sites are fine. Site is for a regional computer user group that does promote both live and web-based events. When operational, it can be found at http://cebug.org/

While I'd like to try applying the patch listed in #22, I would have to do this manually as it is on a live server. According to the directions for manually applying a patch:
http://drupal.org/node/534548

The patch directions should begin with telling me what file I need to alter. That isn't provided in this patch so I don't know how to apply it. The one in #29 is much the same thing with no clear idea of what needs to be changed.

As the other site in the install is fine and I have no desire to rollback to an insecure version of Views, I'm going to have to do something else. What I think I will do is setup and install in XAMPP using the database backup for the site I made before the upgrade. The database in use on the site will be wiped clean and I'll do a fresh install of Drupal making sure I avoid activating the Calendar and so forth. (Those that differ from what is in use on other sites that are working fine.) I'll copy the content from that backup into the new install and have to come up with some sort of workaround for publicizing those events until a fix is found for those things. Going to be a lot of work, but it is the best choice I can see as of the moment on what to do.

I am working on establishing a completely separate install of Drupal for testing work. Had thought to use that mainly for testing as I build themes for the sites I support, but I am setting up examples of all of the content types in use on those active sites. From now on I will do upgrades on THAT install first so as to avoid screwing up live sites. (Having made a backup to that prior to doing upgrades.) If there is such a critical issue this should help me avoid a repeat of this kind of situation.

merlinofchaos’s picture

The patch in #22 is already released in Views 2.10. Perhaps you should try that first.

IreneKraus’s picture

I'd love to, but how can I upgrade the site to using Views 2.10 when I can't get into it in anyway from the previous upgrade. Site is still off-line, so maybe if I just trying to run the update script again? Worth a shot...

IreneKraus’s picture

For anyone wondering, I was indeed able to run the update script on the site. It worked! Site is back and operational again. Thanks everyone for all the GREAT work and suggestions. Saved me a lot of frustration and work time as I'm rebuilding that site from scratch anyway. (Long story involving corrupted and lost databases from a hosting move.) Very happy camper right now!

Status: Fixed » Closed (fixed)

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