Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2006 at 22:29 UTC
Updated:
5 Sep 2007 at 18:32 UTC
I've recently upgraded to PHP 5 and now *one of* my previously created views is blank (strictly the block which is provided by this view).
Some numbers:
Exported view:
$view = new stdClass();
$view->name = 'Polecane';
$view->description = '';
$view->access = array (
);
$view->view_args_php = '';
$view->block = TRUE;
$view->block_title = '';
$view->block_header = "";
$view->block_header_format = '1';
$view->block_footer = "";
$view->block_footer_format = '1';
$view->block_empty = "";
$view->block_empty_format = '1';
$view->block_type = 'teaser';
$view->nodes_per_block = '1';
$view->block_more = '0';
$view->block_use_page_header = FALSE;
$view->block_use_page_footer = FALSE;
$view->block_use_page_empty = FALSE;
$view->sort = array (
array (
'tablename' => 'node',
'field' => 'created',
'sortorder' => 'DESC',
'options' => '',
),
);
$view->argument = array (
);
$view->field = array (
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
array (
'tablename' => 'node',
'field' => 'promote',
'operator' => '=',
'options' => '',
'value' => '1',
),
array (
'tablename' => 'node',
'field' => 'distinct',
'operator' => '=',
'options' => '',
'value' => array (
),
),
);
$view->exposed_filter = array (
);
$view->requires = array(node);
$views[$view->name] = $view;
Comments
Comment #1
archetwist commentedI made a mistake. It's not the whole block which is blank, just the content of a node (between the
<div class="content">and<div>tags).Comment #2
merlinofchaos commentedDoes this node happen to also be on display in the main content area at the same time?
Comment #3
archetwist commentedNo, it doesn't. I tried a lot of different configurations (teaser list, full nodes, being displayed in one or two views at the same time, different filters, fields, etc.) and it seems that the only thing which can play a role is the type of this node (story).
Comment #4
archetwist commentedIt's been a month since my last follow up... Has any work been done to fix the bug or at least discover its source?
Comment #5
merlinofchaos commentedUnfortunately I don't actually have a PHP5 system (nor a lot of time), so the answer is that no, no work has been done on this.
I do know that PHP5 has some bugs relating to object cloning, which has been shown to cause odd errors like this in the past.
From the basic description of this, the bug may be a deeper interaction with Drupal and PHP5 as well; if the node is being displayed at all (and you're saying the
<div>is there at least) Views doesn't handle that part. It just does a node_load() and passes it on to node_view() and lets Drupal do the work.Comment #6
merlinofchaos commented