Closed (fixed)
Project:
SimpleFeed
Version:
5.x-2.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 May 2008 at 23:14 UTC
Updated:
26 Sep 2008 at 03:55 UTC
Hi, After reading about this module in the Eureka! Science News article I thought I'd give it a try. The module works and I'd like to use it but when I click on a feed item I get the errors below (I have errors write to the screen on my MAMP installation). I got the same errors on a live site using Drupal 5.7, PHP 5.2.6, MySQL 5.0.45. Any suggestions?
Comments
Comment #1
leoleo commentedMe too, when I visit the feeds page.
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 INNER JOIN node_access na ON na.nid = node.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 1 AND na.realm = 'forum_access') OR (na.gid = 1 AND na.realm = 'term_access'))) AND ( (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_ti in home/public_html/includes/database.mysql.inc on line 172.
Comment #2
webdrips commentedI received the following message after installing this module:
Then when I attempt to create a feed, I receive several warnings:
Comment #3
mfer commentedHere's a patch that fixes #2. It's a start.
Comment #4
mfer commented@jt_jones and @leoleo I can't duplicate your errors. Can you give more detail on how you got it.
Comment #5
mfer commented@daneesia - I moved your issue to http://drupal.org/node/269704.
Comment #6
jtjones23 commentedDon't know what else I can say...the error messages are over my head. But, I get the same errors with version 5.x-2.1. Also tried an installation on the latest Drupal 5 head but there's no changes to the node module so I get the same errors.
Update: I just did a clean installation with SimpleFeed as the only contributed module. There are no MySQL errors when I click on a feed item. So, I'm guessing there's a conflict with another module but which one?
Comment #7
mfer commentedTrial and error. Keep turning modules on and off until you find the problem module. I'd start with modules you know affect nodes.
Or, you could install the devel module and turn on backtrace for error reporting. That would give you a lot more detail to the error.
Comment #8
jtjones23 commentedThanks for the backtrace tip. Image Attach 5.x-1.8 (part of the Image module package) appears to be the culprit. The MySQL errors go away when I disable Image Attach on my MAMP site that has silly amounts of modules enabled.
But, just to be sure I added the Image module to my clean installation (enabled Image, Image Attach & SimpleFeed only) and I did not get any errors so I'm not sure if Image Attach is really the problem.
Comment #9
mfer commentedDid you consistently use the same versions?
Comment #10
Andy Galaxy commentedRegarding post #1. I have this error also. I have too many modules to disable, so I may not be of any help to ascertain what may be bugging Simplefeed.
Comment #11
dmjossel commentedWith Image-Attach 1.9 enabled I get this error:
With Image-Attach disabled, the error goes away.
Comment #12
m3avrck commentedThis is not an issue with this module.