Last night I upgraded from 6.x-3.0-alpha2 to 6.x-3.0-alpha3,
Update process went alright no errors where displayed, however, all my views where broken, all the custom outputs where broken. with plain text rather than views display.
I could not add any filter, header, footer or any text or argument to the views even after selecting header global text, nothing was displayed.
Reverted back to 6.x-3.0-alpha2 views display normally...
So decided to go to 6.x-2.10 version as it was stable.
Now I can't apply any filter. Even when applying filter all the values are display..
Did a fresh install of Drupal 6.16 installed views and made the view from scratch DID NOT IMPORT..again filters not working.
Attached is the copy of the view:
$view = new view;
$view->name = 'user_stats_online_users_pictures';
$view->description = 'Shows who is online by displaying their user pictures (avatars).';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'users';
$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(
'uid' => array(
'id' => 'uid',
'table' => 'users',
'field' => 'uid',
'exclude' => TRUE,
'alter' => array(
'alter_text' => 0,
'make_link' => 0,
'trim' => 0,
'word_boundary' => 1,
'ellipsis' => 1,
'html' => 0,
),
'link_to_user' => 0,
),
'picture' => array(
'id' => 'picture',
'table' => 'users',
'field' => 'picture',
'label' => '',
'alter' => array(
'alter_text' => 0,
'make_link' => 0,
'trim' => 0,
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'hide_empty' => 0,
'empty_zero' => 0,
),
'name' => array(
'id' => 'name',
'table' => 'users',
'field' => 'name',
'label' => '',
'alter' => array(
'alter_text' => 0,
'make_link' => 0,
'trim' => 0,
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_user' => 1,
'overwrite_anonymous' => 0,
),
));
$handler->override_option('filters', array(
'is_online' => array(
'operator' => '=',
'value' => '1',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'is_online',
'table' => 'users',
'field' => 'is_online',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('title', 'Online users');
$handler->override_option('use_ajax', TRUE);
$handler->override_option('style_plugin', 'grid');
$handler->override_option('style_options', array(
'columns' => '2',
));
$handler = $view->new_display('block', 'Block', 'block_1');
$handler->override_option('block_description', 'Online users (pictures)');
$handler->override_option('block_caching', -1);
I am using Ubuntu 9.10, PHP 5.2.10, MySQL 5.1.37,
Comments
Comment #1
dagmarHi, first to all, downgrade from views 3 to views 2 is not supported, so you have to use a previous backup of your site. Remember, alpha is not suitable for production sites.
Related to your applied filter, What is "is online" where did you get this filter to apply to the view? Is a custom filter created by you? As far I know, views doesn't provide a filter to determine if a user is online.
Comment #2
troyl commentedI did not downgrade directly from the views 3 to 2 as I have indicated. I am not using views 3.x-alpha on productions site.
The filter is online is provided by project user_stats ....
The issue was with caching as it was storing the variable in cache so the user didn't go offline until cache was rebuild..... the filters are working properly... in 6.x-2.10 version...
Thanks for such a great module, can't think drupal site with out...:-) keep up the good work
SO I will close this as it's not an issue anymore... and sorry for a false issue