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:

  • Drupal CVS version from 2006/10/04
  • PHP 5.1.6
  • Apache 1.3.37
  • Views CVS from 2006/10/08

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

archetwist’s picture

Title: Blank block after upgrading to PHP 5 » Blank node content after upgrading to PHP 5

I 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).

merlinofchaos’s picture

Does this node happen to also be on display in the main content area at the same time?

archetwist’s picture

No, 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).

archetwist’s picture

It's been a month since my last follow up... Has any work been done to fix the bug or at least discover its source?

merlinofchaos’s picture

Unfortunately 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.

merlinofchaos’s picture

Status: Active » Closed (fixed)