Closed (fixed)
Project:
FeedAPI
Version:
6.x-1.x-dev
Component:
Code feedapi (core module)
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2009 at 20:32 UTC
Updated:
13 Jul 2009 at 09:50 UTC
Cron run fails to import feed on cron run and gives this message
* warning: pg_query() [function.pg-query]: Query failed: ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list in /var/www/sparcsnew/includes/database.pgsql.inc on line 139.
* user warning: query: SELECT DISTINCT nid FROM feedapi WHERE checked <= 1240863940 AND skip = 0 ORDER BY checked LIMIT 100 OFFSET 0 in /var/www/sparcsnew/sites/all/modules/feedapi/feedapi.module on line 683.
Comments
Comment #1
spydmobile commentednote this does not happen during a manual refresh of the feed.
Comment #2
spydmobile commentedok, I am seeing other errors that may be related:
Comment #3
spydmobile commentedthe last bit was upon saving the feed after editiing it.
Comment #4
spydmobile commentedok, so I found some of the problems for postgres syntax.
line 903 of feedapi.module is:
but should read:
because:
line 683 says:
but should say
becuase:
this should solve my problems with cron not running the feed update.
I will come back and confirm when I know.
Franco
Comment #5
spydmobile commentedOk, this solved all evident errors, but cron still does not refresh the feed :-(
[EDIT] See next message, its fixed, it just takes a while.
Comment #6
spydmobile commentedOk, the above two lines of code seems to have solved the problem, it just takes way longer than I thought.
The RSS feed is produced on demand on the source, but the data changes every hour, and feedapi is not getting the nodes until 20 minutes past the hour,
line 15 of feedapi.module is configured as 60 seconds:
so technically it should be able to get the feed every 61 seconds.
Cron occurs every 5 minutes.
the feed node itself is configured with:
So I cannot explain why my nodes dont show up until 20 minutes after the hour. BUT THEY DO SHOW UP. so the lines above do fix the syntax problem.
Comment #7
spydmobile commentedOk, I am bewildered, but after doing nothing, over a few hours the system seems to have fixed itself - My nodes arraived at 10 minutes after this time, exactly when I expected them to. So I am content and need no further resolution except to get my changes rolled into the next dev.
Franco
Comment #8
spydmobile commentedTested, Fixed in dev of apr 30-2009
works! - thanks, sorry for the confusion!!!!
Comment #9
spydmobile commentedArgh, sorry, this is still an issue in the latest dev! Line numbers have changed but code is stil wrong.
Comment #10
alex_b commentedAnyone of the postgres people up for a patch?
Comment #11
spydmobile commentedHi alex, I am not sure if you are asking me to make a patch, which I honestly dont know how to do at this point, or if you are asking If I want you to make a patch, which I cant really use, but if you wish to do a dev release I can do that. Sorry if I am not being much help here....
Franco
Comment #12
alex_b commented#11: spydmobile: I'm asking anybody who's using postgres and FeedAPI if they want to roll a patch for this :-)
Comment #13
aron novakAll of the problematic queries were fixed.