Hey guys, sorry if my question has an obvious answer.
My web developer installed FeedAPI and SimplePie yesterday and has created a new content type called Feed (feedapi_node), etc. After creating a few feeds I have noticed that they work great (bring in new nodes into a "newswire" view of the site) BUT I have to manually refresh them in order for the stories to come through. www.wallstreetoasis.com/newswire
Is there anything in the settings of the Feed Content type (parsers / processors) or that would prevent the Fees from being updated with every cron run? It seems like they are set up properly because they work when I manually refresh, but how do I make sure they are refreshing with every cron run or automatically. I'm on Drupal 5.2 and PHP 5.
Sorry if this is ignorant but my developer is tied up and I've been searching all over the forums for hours trying to find a solution with no luck.
Thank you.
Comments
Comment #1
aron novak"I have to manually refresh them in order for the stories to come through" - Can you explain me this more? As I understand you, cron normally creates the new nodes, but something is not applied to the nodes? Hm. Sorry, i need a little more verbose explanation of the problem.
Anyway, let's see this: http://drupal.org/node/200037 please ask your developer to try out simpletest tests of feedapi. If the tests are successful, basically fedapi works ok.
Comment #2
iboasis commentedAron, thanks for the quick response.
What I mean is that when I manually refresh the feeds by hitting "refresh" under admin/content/feed it brings in the latest news items as nodes into the Newswire, but the new stories aren't coming in with the cron runs for some reason (ie feeds are not updating automatically).
Do I have to set cron up so that it refreshes these feeds? I am using the poormanscron module now. I will point my web developer to the simpletests.
Thanks,
Patrick
Comment #3
cpelham commentedIt may be that your feeds are just too slow in responding and your cron gives up on them and moves on.
admin/settings/feedapi has a setting option for Cron time for FeedAPI [%]:
You can try boosting this to a higher percentage.
Comment #4
aron novakI suggest to the developer to insert some watchdog() calls to feedapi_cron() and see what happens (if there is no other debugging possibility)
Comment #5
jean-bernard.addor commentedI observ a similar situation with feeds which are not refreshed regularly. Here are simpletest and version information :
FeedAPI Aggregator basic functions
15 passes, 7 fails and 3 exceptions.
FeedAPI Aggregator basic functions: Refresh a feed and find out if it's okay. Uses Common Syndication Parser for parsing and downloading.
[role] created name: simpletest_ng96, id: 3 at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/simpletest/drupal_test_case.php line 278] OK
[role] created permissions: administer feedapi, advanced feedapi options, administer nodes, access news feeds, create aggreg_simpletest_xl1N content at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/simpletest/drupal_test_case.php line 282] OK
[user] name: simpletest_h8fa pass: qhHSbJPhDQ created at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/simpletest/drupal_test_case.php line 312] OK
[browser] GET http://bulletins.alimentsdici.info/?q=user at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/simpletest/drupal_test_case.php line 107] OK
[browser] Setting name="simpletest_h8fa" at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/simpletest/drupal_test_case.php line 111] OK
[browser] Setting pass="qhHSbJPhDQ" at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/simpletest/drupal_test_case.php line 111] OK
[browser] POST by click on Se connecter at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/simpletest/drupal_test_case.php line 125] OK
[login] found name: simpletest_h8fa at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/simpletest/drupal_test_case.php line 343] OK
[login] not blocked at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/simpletest/drupal_test_case.php line 344] OK
[login] not reserved at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/simpletest/drupal_test_case.php line 345] OK
[browser] GET http://bulletins.alimentsdici.info/?q=node/add/aggreg_simpletest_xl1N at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/simpletest/drupal_test_case.php line 107] OK
[browser] Setting feedapi[feedapi_url]="http://novaak.net/rss.xml?simpletest_oBlF" at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/simpletest/drupal_test_case.php line 111] OK
[browser] POST by click on Soumettre at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/simpletest/drupal_test_case.php line 125] OK
The node is created. at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module.test line 49] FAIL
The feed node is in the database at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module.test line 53] FAIL
The feed can be loaded. at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module.test line 55] FAIL
The source's page is empty before refreshing. at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module.test line 64] FAIL
The proper number of items were created. at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module.test line 68] FAIL
The third news title can be read at the source page. at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module.test line 71] FAIL
The proper number of items can be found in the database. at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module.test line 75] FAIL
All the news items are deleted from the database. at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module.test line 84] OK
The content-type's setting variable is successfully deleted. at [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/sites/all/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module.test line 94] OK
Unexpected PHP error [Invalid argument supplied for foreach()] severity [E_WARNING] in [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/modules/node/node.module line 521] EXCEPTION
Unexpected PHP error [implode() [function.implode]: Bad arguments.] severity [E_WARNING] in [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/modules/node/node.module line 525] EXCEPTION
Unexpected PHP error [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 '' at line 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM bulletinsnode n INNER JOIN bulletinsusers u ON u.uid = n.uid INNER JOIN bulletinsnode_revisions r ON r.vid = n.vid WHERE ] severity [E_USER_WARNING] in [/var/alternc/html/s/spc/drupal_farm/lib/drupal-5.7/includes/database.mysql.inc line 172]
Drupal 5.7
Base de données MySQL 5.0.32
Fichier de configuration Protégé
Librairie GD 2.0 or higher
Librairie Unicode Extension PHP mbstring
PHP 4.4.4-8+etch4
PHP register globals Désactivé
Schéma de base de données À jour
Serveur web Apache
SimplePie Parser Installed correctly
The current installed version of SimplePie is 1.1
Système de fichiers Inscriptible (méthode de téléchargement privée)
Comment #6
jean-bernard.addor commentedDrupal 5.7
Includes: Locale, Filter, Taxonomy, Comment, Block, Watchdog, Help, Node, Forum, System, Menu, Color, User
À jourok
Advanced Forum 5.x-1.0-alpha2
Includes: Advanced Forum
À jourok
Auto locale import 5.x-1.x-dev (2007-oct.-13)
Includes: Autolocale
À jourok
Bibliography Module 5.x-1.13
Includes: Biblio
À jourok
Diff 5.x-1.2-rc1
Includes: Diff
À jourok
Email Verification 5.x-2.0
Includes: Email verify
À jourok
Event 5.x-1.0
Includes: Event, Event Views, Event All Day, Basic event
À jourok
FeedAPI 5.x-1.0
Includes: FeedAPI, FeedAPI Aggregator, FeedAPI Node, FeedAPI Inherit, SimplePie parser, FeedAPI Node Views
À jourok
Feed Element Mapper 5.x-1.0-beta4
Includes: FeedAPI Mapper
À jourok
Localization client 5.x-1.x-dev (2008-janv.-04)
Version recommandée : 5.x-1.0 (2007-oct.-10) Téléchargement · Notes de mise à jour
Includes: Localization client
À jourok
Poormanscron 5.x-1.1
Includes: Poormanscron
À jourok
Translation template extractor 5.x-1.2
Includes: Translation template extractor
À jourok
Simpletest 5.x-1.0
Includes: Simpletest_xmlrpc, SimpleTest module
À jourok
Update status 5.x-2.2
Includes: Update status
À jourok
Views 5.x-1.6
Includes: Views UI, Views
Comment #7
bennos commentedHello
I have the same Problem. I have created a Feed Type and added somer Feeds. Only when I refresh the Feed manualy, new items are fetched.
I use the poormancron Module. The Cron runs every 15 minutes. The cron output in the watchdog says nothing about fetching the feeds.
This is the entry in the watchdog
Executed feedapi_cron via poormanscron, took 0 Sek..
It seems that Feedapi does not work with the Poormancrom Module, because when I run the Cron manualy the feeds are fetched and nodes are created.
Anything I can do?
bennos
Comment #8
aron novakI have one guess that maybe causes poormanscron incompatibility.
At feedapi_cron_time() function, there feedapi checks against cron_semaphore variable. Please make sure, that this variable has value "0" or poormanscron handle this variable nicely.
Comment #9
bennos commentedthx
this worked with poormanscron.
benjamin
Comment #10
alex_b commented@bennos: I don't quite understand your last response - could you fix your issue?
Alex
Comment #11
Júlio Boaro commentedI have the same problem. The poormanscron module don't refresh feeds created by freeapi module.
Comment #12
aron novakYes. This is a very unfortunate thing.
I assume poormanscron module has to set up cron semaphore correctly (as Drupal core does), because for example FeedAPI depends on it. poormanscron even does not try to set the maximum execution php value. I'll post my suggestions to poormanscron issue queue.
Comment #13
aron novakThe relevant ticket at poormanscron module: http://drupal.org/node/235328
Comment #14
giorgoskI am still not clear how you fix this issue with poormanscron !!!
Comment #15
summit commentedSubcribing, needing refresh through poormanscon also.
greetings, Martijn