By Anonymous (not verified) on
Hi!
I've created this block with Views, but when it's enabled on a page, I can't load the page...
Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/da5/includes/menu.inc on line 953
$view = new stdClass();
$view->name = 'bloghead';
$view->description = 'Headline blog';
$view->access = array (
);
$view->view_args_php = '';
$view->block = TRUE;
$view->block_title = 'A la Une';
$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 = 'list';
$view->nodes_per_block = '1';
$view->block_more = FALSE;
$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' => 'normal',
),
);
$view->argument = array (
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => '',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array (
'tablename' => 'node',
'field' => 'created',
'label' => '',
'handler' => 'views_handler_field_date',
),
array (
'tablename' => 'node_data_field_imgae_du_billet',
'field' => 'field_imgae_du_billet_fid',
'label' => '',
'handler' => 'content_views_field_handler_group',
'options' => 'normal',
),
array (
'tablename' => 'users',
'field' => 'name',
'label' => '',
),
array (
'tablename' => 'node',
'field' => 'body',
'label' => '',
'handler' => 'views_handler_field_teaser',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array (
0 => 'blog',
),
),
);
$view->exposed_filter = array (
array (
'tablename' => 'node',
'field' => 'type',
'label' => '',
'optional' => '0',
'is_default' => '0',
'operator' => '0',
'single' => '0',
),
);
$view->requires = array(node, node_data_field_imgae_du_billet, users);
$views[$view->name] = $view;
Do you know why ?
Thank you
Comments
The page is loaded only if I
The page is loaded only if I disable the field "body"... It may be a bug with the module.
No ideas ?
No ideas ? No I run drupal 5.1 with the latest update for view.... same problem
path alias
So, I had this same problem and found that my problem was related to overloading a path alias. I had a custom panel with two views replacing the /blog page. It displayed fine, but as soon as I added node->body to the list view, the page started timing out. Changing the panel alias to /blogs stops it from timing out (but creates other problems I haven't solved yet).