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
Comment #1
rconstantine commentedI don't know whether this is related, but I also got this error when visiting the module page to uninstall the Node Views module:
Comment #2
rconstantine commentedBTW, 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.
Comment #3
chrisroditis commentedI am getting the same error and same behaviour too. What would be wrong?
Comment #4
chrisroditis commentedok got it, duh, there's a "php" missing at the beginning of the module
<?
// $Id:
Comment #5
rconstantine commentedI'm glad you had time to look at this. Will give it a whirl.
Comment #6
rconstantine commentedConfirmed. A simple but critical mistake that is now being propagated through new releases. <?php is all that's needed.
Comment #7
aron novakThanks, 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.
Comment #8
rconstantine commentedOh, yeah, I forgot.
Comment #9
chrisroditis commentedit's the short_open_tag attribute in php.ini
Comment #10
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.