Hi,
i've got a critical problem with the View module (using the last dev version at the moment), if i create more than 1 view with a block output i can see just one of the block in my block admin page and.. it isn't the one who you think it is!
I.E.
i make a block view to list the news and i make a new block view to list 1 video-news, in the block admin page i see the block with the name that i've choose for the news list, if i put it somewhere it shows the other view and not the one that you believe to have selected.
(my english is abd i know but i hope is clear enough :S )
I'm doing maybe something wrong?
I'm forced to use the dev version of the view module or else i can't use the CCK module, so i can go back to the alpha version; unfortunately i'm need of both the modules.
Thanks for any help.
Mat.
Comments
Comment #1
merlinofchaos commentedHmm. I just checked with my current code; I have at least 5 different blocks on my test system and they all show up correctly on my block admin page.
Are you being sure to put a description in the 'Admin' link for the block? Maybe there's a problem if you have multiple blocks with no description?
Comment #2
DominatorMaster commentedHi,
thanks for your reply, yes i'm using different block names when creating the new views but the last view created override the previous one so in the block admin page i've the name of the view n°1 that shows the view n°2 instead :S
Comment #3
DominatorMaster commentedOk, i've discovered an exploit to avoid this bug.
I've created another block view under my first view (the news list) and i've put some override (for example on the filters) to have 2 views of different content types.
But still impossible to have 2 different views with 2 different block view defined inside :S
I'm using both CCK and Views modules to the last dev update.
Comment #4
merlinofchaos commentedI've made a commit that might fix this; but I'm not sure, because I don't know why this is happening for you.
Please cvs up (or wait until after noon/midnight GMT and get the newest -dev) and see if this fixes the problem?
Comment #5
DominatorMaster commentedI've downloaded the last dev of both CCK and view modules, nice features added :) But still impossible for me to have 2 views with block views defined.
Dunno if can help but, what i need to define is:
- a block that simply show teasers of normal news
- a block that show a cck content, that content only have to show the content of a field in the teaser view, the field defined is a standard text field
At the moment i've defined a single view with 2 block views and it works (unfortunately the last updates have messed up my template personalization :S)
Comment #6
merlinofchaos commentedI have no idea why you have this problem. It doesn't happen on my system -- I've got lots of blocks from different views and they all work flawlessly.
I've been over the code that sets this up, and I cannot figure out what's going on. I'm at a loss at to what to do here. I'm sure other people will start to see this problem too.
I'll poke at this some more and see if I can figure it out.
Comment #7
merlinofchaos commentedI just tried this with a different PHP version too. I can't duplicate this error you're getting.
What PHP version is your server running?
Comment #8
DominatorMaster commentedI'm using PHP 4.3.9, GD library 2.0.28, web server Apache/2.0.52 (CentOS), MySQL 4.1.20 and the last ZendOptmizer
Comment #9
DominatorMaster commentedI've tryed on a new installation, drupal 6.1, same server and i get the same problem. Plus many many problems when i try to import field defined into a new content type.
I'm strating to think that can be my PHP and MySQL version that give all those problems :S
Comment #10
iainsimons commentedI'm also having *exactly* this problem. views 6.x.2-0 alpha 4, drup 6.1, php 4.4.4, mysql 4.1.22.
Comment #11
bubu+1
I'm also having *exactly* this problem. views 6.x.2-0 alpha 4, drupal 6.2, php 4.3.10-22, mysql 4.1.11.
Comment #12
allvirtualnow commentedIm getting the same problem here. I create tthe first view with a block and a page and everything works e.g i can go to blocks and selct my view and it show up. I then create anouther view and the new view overwirtes my first block. In blocks i can only select my first view even it show the content for my second views block.
Using drupal 6.2, Views Alpha 4, PHP 4.3.11, Mysql 5.0.45
Export of first view- require content type "Security Feed"
$view = new view;
$view->name = 'Apple_Security_Updates';
$view->description = 'Apple Security Updates Block';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = '0';
$view->api_version = 2;
$view->disabled = FALSE; // Edit this to true to make a default view disabled initially
$view->display = array();
$display = new views_display;
$display->id = 'default';
$display->display_title = 'Apple Security Updates';
$display->display_plugin = 'default';
$display->position = '1';
$display->display_options = array (
'style_plugin' => 'default',
'style_options' =>
array (
),
'row_plugin' => 'fields',
'row_options' =>
array (
),
'relationships' =>
array (
),
'fields' =>
array (
'title' =>
array (
'id' => 'title',
'table' => 'node',
'field' => 'title',
'label' => 'Node: Title',
'relationship' => 'none',
'link_to_node' => 1,
),
),
'sorts' =>
array (
),
'arguments' =>
array (
),
'filters' =>
array (
'type' =>
array (
'id' => 'type',
'table' => 'node',
'field' => 'type',
'operator' => 'in',
'value' =>
array (
'securityfeed' => 'securityfeed',
),
'group' => 0,
'exposed' => false,
'expose' =>
array (
'operator' => false,
'label' => '',
),
'relationship' => 'none',
'expose_button' =>
array (
'button' => 'Expose',
),
),
),
'items_per_page' => 5,
'use_more' => 1,
'offset' => 0,
'title' => 'Latest Apple Security Updates',
);
$view->display['default'] = $display;
$display = new views_display;
$display->id = 'block';
$display->display_title = 'Apple Security Updates Block';
$display->display_plugin = 'block';
$display->position = '2';
$display->display_options = array (
'defaults' =>
array (
'access' => true,
'title' => true,
'header' => true,
'header_format' => true,
'header_empty' => true,
'footer' => true,
'footer_format' => true,
'footer_empty' => true,
'empty' => true,
'empty_format' => true,
'use_ajax' => true,
'items_per_page' => true,
'offset' => true,
'use_pager' => true,
'pager_element' => true,
'use_more' => true,
'link_display' => true,
'php_arg_code' => true,
'exposed_options' => true,
'style_plugin' => true,
'style_options' => true,
'row_plugin' => true,
'row_options' => true,
'relationships' => true,
'fields' => true,
'sorts' => true,
'arguments' => true,
'filters' => true,
),
'relationships' =>
array (
),
'fields' =>
array (
),
'sorts' =>
array (
),
'arguments' =>
array (
),
'filters' =>
array (
),
'block_description' => 'Apple Security Updates',
);
$view->display['block'] = $display;
$display = new views_display;
$display->id = 'page';
$display->display_title = 'Apple Security Updates Page';
$display->display_plugin = 'page';
$display->position = '3';
$display->display_options = array (
'defaults' =>
array (
'access' => true,
'title' => true,
'header' => true,
'header_format' => true,
'header_empty' => true,
'footer' => true,
'footer_format' => true,
'footer_empty' => true,
'empty' => true,
'empty_format' => true,
'use_ajax' => true,
'items_per_page' => false,
'offset' => false,
'use_pager' => false,
'pager_element' => false,
'use_more' => true,
'link_display' => true,
'php_arg_code' => true,
'exposed_options' => true,
'style_plugin' => false,
'style_options' => false,
'row_plugin' => false,
'row_options' => false,
'relationships' => true,
'fields' => true,
'sorts' => true,
'arguments' => true,
'filters' => true,
),
'relationships' =>
array (
),
'fields' =>
array (
),
'sorts' =>
array (
),
'arguments' =>
array (
),
'filters' =>
array (
),
'path' => 'asu',
'items_per_page' => 15,
'offset' => 0,
'use_pager' => '1',
'pager_element' => 0,
'style_plugin' => 'default',
'style_options' =>
array (
),
'row_plugin' => 'node',
'row_options' =>
array (
'teaser' => true,
'links' => true,
),
);
$view->display['page'] = $display;
Export of second view - requires content type "Software Feed"
$view = new view;
$view->name = 'latest_software';
$view->description = 'latest software';
$view->tag = 'latest software';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = '0';
$view->api_version = 2;
$view->disabled = FALSE; // Edit this to true to make a default view disabled initially
$view->display = array();
$display = new views_display;
$display->id = 'default';
$display->display_title = 'Latest Software';
$display->display_plugin = 'default';
$display->position = '1';
$display->display_options = array (
'style_plugin' => 'default',
'style_options' =>
array (
),
'row_plugin' => 'fields',
'row_options' =>
array (
),
'relationships' =>
array (
),
'fields' =>
array (
'title' =>
array (
'id' => 'title',
'table' => 'node',
'field' => 'title',
'label' => 'Node: Title',
'relationship' => 'none',
'link_to_node' => 1,
),
),
'sorts' =>
array (
),
'arguments' =>
array (
),
'filters' =>
array (
'type' =>
array (
'id' => 'type',
'table' => 'node',
'field' => 'type',
'operator' => 'in',
'value' =>
array (
'softwarefeed' => 'softwarefeed',
),
'group' => 0,
'exposed' => false,
'expose' =>
array (
'operator' => false,
'label' => '',
),
'relationship' => 'none',
'expose_button' =>
array (
'button' => 'Expose',
),
),
),
'items_per_page' => 10,
'title' => 'Latest Software',
);
$view->display['default'] = $display;
$display = new views_display;
$display->id = 'block';
$display->display_title = 'Latest Software Block';
$display->display_plugin = 'block';
$display->position = '2';
$display->display_options = array (
'defaults' =>
array (
'access' => true,
'title' => true,
'header' => true,
'header_format' => true,
'header_empty' => true,
'footer' => true,
'footer_format' => true,
'footer_empty' => true,
'empty' => true,
'empty_format' => true,
'use_ajax' => true,
'items_per_page' => true,
'offset' => true,
'use_pager' => true,
'pager_element' => true,
'use_more' => true,
'link_display' => true,
'php_arg_code' => true,
'exposed_options' => true,
'style_plugin' => false,
'style_options' => false,
'row_plugin' => false,
'row_options' => false,
'relationships' => true,
'fields' => true,
'sorts' => true,
'arguments' => true,
'filters' => true,
),
'relationships' =>
array (
),
'fields' =>
array (
),
'sorts' =>
array (
),
'arguments' =>
array (
),
'filters' =>
array (
),
'block_description' => 'Latest Software',
'style_plugin' => 'list',
'style_options' =>
array (
'type' => 'ul',
),
'row_plugin' => 'fields',
'row_options' =>
array (
),
);
$view->display['block'] = $display;
$display = new views_display;
$display->id = 'page';
$display->display_title = 'Latest Software Page';
$display->display_plugin = 'page';
$display->position = '3';
$display->display_options = array (
'defaults' =>
array (
'access' => true,
'title' => true,
'header' => true,
'header_format' => true,
'header_empty' => true,
'footer' => true,
'footer_format' => true,
'footer_empty' => true,
'empty' => true,
'empty_format' => true,
'use_ajax' => true,
'items_per_page' => true,
'offset' => true,
'use_pager' => true,
'pager_element' => true,
'use_more' => true,
'link_display' => true,
'php_arg_code' => true,
'exposed_options' => true,
'style_plugin' => false,
'style_options' => false,
'row_plugin' => false,
'row_options' => false,
'relationships' => true,
'fields' => true,
'sorts' => true,
'arguments' => true,
'filters' => true,
),
'relationships' =>
array (
),
'fields' =>
array (
),
'sorts' =>
array (
),
'arguments' =>
array (
),
'filters' =>
array (
),
'path' => 'ls',
'style_plugin' => 'default',
'style_options' =>
array (
),
'row_plugin' => 'node',
'row_options' =>
array (
'teaser' => true,
'links' => true,
),
);
$view->display['page'] = $display;
Comment #13
allvirtualnow commentedPlayed with this for a while including testing alpha 5. After deleting a recreating my "Software" custom content type everything works as expected. I hope this helps.
Comment #14
bubualpha 5: I have same bug (after recreating custom content type too).
Comment #15
merlinofchaos commentedthis should be fixed in -dev (the fix went in shortly after alpha5). Give it a try, please?
Comment #16
bubuYes, views-6.x-2.x-dev (April 17, 2008 - 00:17) works for me :-)
Comment #17
bhu-day commentedsame problem here....but it is only happen in PHP 4. I have tried in my localhost using PHP 5 and it works.
Comment #18
bhu-day commentedoh I forgot to mention the views version.....I'm using alpha5....however how to download views dev version? because I want to fix my views in PHP4 (in my web hosting)..thanks
Comment #19
bubuHi bhu-day,
http://drupal.org/project/views > View all releases > Find "Views 6.x-2.x-dev"
Comment #20
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.