I installed the Node Views module per your instructions here: http://drupal.org/node/202234 but I get the following on the screen on an otherwise white page:

'feedapi_node_item', 'join' => array( 'left' => array( 'table' => 'node', 'field' => 'nid' ), 'right' => array( 'field' => 'nid' ) ), 'fields' => array( 'feed_nid' => array( 'name' => t('Parent feed'), ), ), 'sorts' => array( 'timestamp' => array( 'name' => t('FeedAPI Item: Time of the news item'), 'handler' => 'views_handler_sort_data', 'option' => views_handler_sort_date_options(), 'help' => t('Sort by the arrival date for a feed item.') ) ), 'filters' => array( 'feed_nid' => array( 'name' => t('FeedAPI Item: Parent Feed'), 'option' => 'integer', 'operator' => views_handler_operator_gtlt(), 'help' => t('This allows you to filter feed items based on parent feed. You should supply the feed\'s nid.'), ), ) ); return $tables; } /** * Implementation of hook_views_arguments(). */ function feedapi_node_views_views_arguments() { $arguments = array( 'feed_nid' => array( 'name' => t('FeedAPI Item: Parent Feed'), 'handler' => 'views_handler_arg_feed_nid', 'help' => t('This argument will find all feed items for the specified feed node id.'), ), ); return $arguments; } /** * Pass in a URL argument to find all feed items for a specific feed node id. */ function views_handler_arg_feed_nid($op, &$query, $a1, $a2 = '') { switch ($op) { case 'summary': $query->ensure_table('feedapi_node_item'); $query->add_field('feed_nid', 'feedapi_node_item'); $query->add_field('title', 'node'); $query->add_where('feedapi.nid IS NOT NULL'); $fieldinfo['field'] = 'node.nid'; return $fieldinfo; case 'sort': $query->add_orderby('feedapi_node_item', 'timestamp', $a1); break; case 'filter': $join = array(); $join['left']['table'] = 'node'; $join['left']['field'] = 'nid'; $join['right']['table'] = 'feedapi_node_item'; $join['right']['field'] = 'nid'; $query->add_table('feedapi_node_item', TRUE, 1, $join); $query->add_field('nid', 'feedapi_node_item'); $query->add_orderby('feedapi_node_item', 'timestamp', 'DESC'); $query->add_where('feedapi_node_item.feed_nid = %d', $a2); break; case 'link': $query->num_nodes .= format_plural($query->num_nodes, ' item', ' items'); return l($query->title, "$a2/$query->fpnid"); case 'title': if ($query) { $title = db_result(db_query('SELECT title FROM {node} WHERE nid = %d', $query)); return check_plain($title); } } } /* * Format a field as a link to the book parent node */ function views_handler_field_feed_parent_title($fieldinfo, $fielddata, $value, $data) { return l($value, "node/$data->feed_parent_node_nid"); } function views_handler_field_feed_parent_title_nl($fieldinfo, $fielddata, $value, $data) { return check_plain($value); } /** * Implementation of hook_views_default_views(). */ function feedapi_node_views_views_default_views() { // feeds overview page $view = new stdClass(); $view->name = 'feeds'; $view->description = t('Show a listing of all feed items for a feed'); $view->access = array(); $view->view_args_php = ''; $view->page = TRUE; $view->page_title = t('Feed items'); $view->page_header = ''; $view->page_header_format = '1'; $view->page_footer = ''; $view->page_footer_format = '1'; $view->page_empty = t('No feed items found.'); $view->page_empty_format = '1'; $view->page_type = 'teaser'; $view->url = 'feed-item'; $view->use_pager = TRUE; $view->nodes_per_page = '10'; $view->sort = array ( array ( 'tablename' => 'node', 'field' => 'created', 'sortorder' => 'DESC', 'options' => 'normal', ), ); $view->argument = array ( array ( 'type' => 'feed_nid', 'argdefault' => -1, 'title' => '%1', 'options' => '', 'wildcard' => '', 'wildcard_substitution' => '', ), ); $views[$view->name] = $view; return $views; } /** * Implementation of hook_link(). * Provide link for feedapi_node processor's feed to get instant access to default view */ function feedapi_node_views_link($type, $node = NULL, $teaser = FALSE) { if ($type == 'node') { if (count($node->feed->processors) > 0) { if (in_array('feedapi_node', $node->feed->processors)) { $links['view_items'] = array( 'title' => t('Feed items'), 'href' => 'feed-item/'. $node->nid ); } } return $links; } }

and I am unable to go to any page without seeing this same jibberish at the top of the page. Any ideas? I'm using the latest dev. My Views version is the latest. After the installation white-page, the other pages are all normal except for the quote above.

Comments

rconstantine’s picture

I don't know whether this is related, but I also got this error when visiting the module page to uninstall the Node Views module:

warning: Cannot modify header information - headers already sent by (output started at D:\path to Drupal\sites\all\modules\feedapi\feedapi_node_views\feedapi_node_views.module:1) in D:\path to Drupal\includes\common.inc on line 141.

rconstantine’s picture

BTW, when I disable the module, it appears to not work as I am again presented the white jibberish page and no confirmation button. However, manually typing in the URL warning: admin/build/modules shows the box unchecked. The database likewise shows a disabled module; strange behavior.

chrisroditis’s picture

I am getting the same error and same behaviour too. What would be wrong?

chrisroditis’s picture

ok got it, duh, there's a "php" missing at the beginning of the module
<?
// $Id:

rconstantine’s picture

I'm glad you had time to look at this. Will give it a whirl.

rconstantine’s picture

Status: Active » Reviewed & tested by the community

Confirmed. A simple but critical mistake that is now being propagated through new releases. <?php is all that's needed.

aron novak’s picture

Assigned: Unassigned » aron novak
Status: Reviewed & tested by the community » Fixed

Thanks, what a nasty bug. :( It's fixed. Unfortunately I did not meet with the problem because it's only a problem w/ some specific php settings.

rconstantine’s picture

it's only a problem w/ some specific php settings

Oh, yeah, I forgot.

chrisroditis’s picture

it's the short_open_tag attribute in php.ini

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.