When I browse to /feeds, I receive the following SQL error and the empty text for the view, even though I have 2 populated feeds. Overriding the default view and removing the "SimpleFeed Feed Item: Parent Feed Node ID" argument clears up the SQL error. Of course, this means that feed items are not restricted to the parent feed's nid.
SQL error:
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DISTINCT(node.nid) AS fpnid, count(node.nid) AS num_nodes, feed_parent_node.titl' at line 1 query: pager_query SELECT simplefeed_feed_item.fid, feed_parent_node.title, feed_parent_ DISTINCT(node.nid) AS fpnid, count(node.nid) AS num_nodes, feed_parent_node.title AS feed_parent_node_title FROM node node LEFT JOIN simplefeed_feed_item simplefeed_feed_item ON node.vid = simplefeed_feed_item.vid LEFT JOIN node feed_parent_node ON simplefeed_feed_item.fid = feed_parent_node.nid WHERE (node.status = '1') AND (node.type IN ('feed_item')) AND (feed_parent_node.nid IS NOT NULL) GROUP BY feed_parent_node.title, feed_parent_node_title ORDER BY feed_parent_node_title ASC LIMIT 0, 10 in .../includes/database.mysql.inc on line 172.
Comments
Comment #1
ezra-g commentedIt seems that I only receive this error when an argument is not specified for this view. When I specify an argument, it works fine.
Comment #2
lennart commentedYes. It is only when there is no argument, but I still think it is a bug that it throws such an error.
At least my other views with arguements in the URL do not throw errors when the argument is missing.
Comment #3
lennart commentedAlso consider that the direct link to /feeds without the argument is available in the breadcrumb when visiting one of the feeds - so many users will see this error.
Comment #4
ezra-g commentedI'm not disputing myself and saying that this is not a bug. I was merely adding information to my original bug report.
Comment #5
lennart commentedWe agree then :)
Comment #6
shane birley commentedJust for the record that this is happening. Thought another error message may help, or not...
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DISTINCT(node.nid) AS fpnid, count(node.nid) AS num_nodes, feed_parent_node.titl' at line 1 query: SELECT simplefeed_feed_item.fid, feed_parent_node.title, feed_parent_ DISTINCT(node.nid) AS fpnid, count(node.nid) AS num_nodes, feed_parent_node.title AS feed_parent_node_title FROM node node LEFT JOIN simplefeed_feed_item simplefeed_feed_item ON node.vid = simplefeed_feed_item.vid LEFT JOIN node feed_parent_node ON simplefeed_feed_item.fid = feed_parent_node.nid WHERE (node.status = '1') AND (node.type IN ('feed_item')) AND (feed_parent_node.nid IS NOT NULL) GROUP BY feed_parent_node.title, feed_parent_node_title ORDER BY feed_parent_node_title ASC LIMIT 0, 10 in .../includes/database.mysql.inc on line 172.Comment #7
m3avrck commentedWith clean checkouts of SimpleFeed dev-Oct3 and Views-Drupal5-Oct3 -- this is not reproducable.