Active
Project:
FeedAPI
Version:
6.x-1.x-dev
Component:
Code feedapi (core module)
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
11 Dec 2007 at 21:02 UTC
Updated:
18 Aug 2009 at 10:17 UTC
If you have simpletest (http://drupal.org/project/simpletest) installed, you can try out that your FeedAPI installation is sane or not. Please install simpletest and go to admin/build/simpletest and run FeedAPI's test. If some of the tests fail, it means that there is a problem with your FeedAPI installation or with the server environment (or the test contains a bug :) ).
Please tell me if you experience that the tests are not successful. Share me the details: list of enabled modules, exact server environment, possibly disabled php functions, settings of feedapi and like this.
All of the FeedAPI installations should pass those tests.
Comments
Comment #1
wolfderby commentedSorry don't have the time for the details but the simpletest module didn't even seem to be there after installed.
Comment #2
alex_b commentedComment #3
vitozzo commentedI've installed it and when I run the test for FeedAPI, I get this error:
"You mustn't manually delete a usernode! Delete the according user and the usernode is going to be deleted too."
but I don't get any report about the test... any help?
I'm using PHP5 and MySQL4.1.
Thanks!
Vito
Comment #4
serving commentedHello,
I am running a fresh install of 6.2. All seems fine. Feedapi 1.2 is the only module enabled.
FeedAPI Inherit and SimplePie parser components are not enabled.
I am getting blank page when I create new feed content using any URL.
http://syndication.boston.com/business?mode=rss_10 is the last one I used.
The site is on shard hosting serve. MySQL database 4.1.22 PHP 5.2.1
Here is the failed output of simpletest:
1 test case complete:
22 passes, 12 fails and 3 exceptions.
[browser] POST by click on Save at [/hsphere/local/home/path/modules/simpletest/drupal_test_case.php line 212] FAIL
The node is created. at [/hsphere/local/home/path/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 64] FAIL
The feed node is in the database at [/hsphere/local/home/path/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 68] FAIL
The feed can be loaded. at [/hsphere/local/home/path/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 70] FAIL
The proper number of items were created at [/hsphere/local/home/path/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 79] FAIL
The first news item is a story. at [/hsphere/local/home/path/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 98] FAIL
All news items have the same type. at [/hsphere/local/home/path/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 99] FAIL
All news item titles are longer than 0 character. at [/hsphere/local/home/path/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 102] FAIL
All news item bodies are longer than 0 character. at [/hsphere/local/home/path/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 103] FAIL
[browser] POST by click on Add at [/hsphere/local/home/path/modules/simpletest/drupal_test_case.php line 212] FAIL
The node is created via the simplified form block. at [/hsphere/local/home/path/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 147] FAIL
The feed node is in the database at [/hsphere/local/home/path/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 151] FAIL
Unexpected PHP error [sort() expects parameter 1 to be array, null given] severity [E_WARNING] in [/hsphere/local/home/path/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 100] EXCEPTION
Unexpected PHP error [sort() expects parameter 1 to be array, null given] severity [E_WARNING] in [/hsphere/local/home/path/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 101] 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 COUNT(*) FROM dw61_1node WHERE nid IN ()] severity [E_USER_WARNING] in [/hsphere/local/home/path/includes/database.mysql.inc line 128]
If you need any more info please let me know.
Have a great one. :)
Serving
Comment #5
aron novakFrom the whole FeedAPI package, you only enabled the FeedAPI module itself, right? If it's true, the reason is obvious:
- you need to enable at least 3 modules to get FeedAPI working: FeedAPI, one parser and one processor. (http://tinyurl.com/56lwfp)
If you've enabled parser common syndication and feedapi_node modules too, of course the module should work.
Comment #6
serving commentedHello Aron,
Thank you for your reply.
I have these enabled from FeedApi package already, before I ran the test:
Common syndication parser
FeedAPI 6.x-1.2
FeedAPI Node 6.x-1.2
SimpleTest module
The reason I am running the test is the blank page I get when I save a feed. The URL is not being saved and no nodes are generated from the feed.
Please help.
Serving
Comment #7
paulhenrich commentedI am having the same problem as Serving, which happens only on some feeds.
Environment:
CentOS 5
PHP 5.1.6
Apache 2.2.3
Drupal 6.2:
Version 6.x-1.2 of the following enabled:
Some feeds have worked (slashdot.org, csmonitor.com), and others have failed in the way Serving describes. For instance, http://www.economist.com/rss/daily_columns_rss.xml causes FeedAPI to create a new Feed node with the title and description set from the Feed. However, the url to the feed is subsequently dropped and no feed item nodes are created.
Maybe it's a problem with the Common Syndication Parser? Are most users using SimplePie?
Also, as a drupal community neophyte, please let me know if I have made any errors in the manner in which I have reported this.
Comment #8
paulhenrich commentedSwitching to SimplePie after upgrading my PHP to 5.2.6 solved my problem.
Comment #9
gemini commentedI'm running FeedAPI 5.x-1.5 with a SimplePie enabled and having the same problem - URLs of the newly submitted feeds are not being saved. I had a floating problem with the 5.x-1.2, sometimes it worked and sometimes it didn't, but mostly I could get away with it, but now with the 5.x-1.5 it just doesn't save URLs at all.
Comment #10
aron novakgemini: this ticket is basically for sharing simpletest results. Did you run the simpletest tests of FeedAPI? What was the result? Which test(s) were failed, if any?
Comment #11
gemini commentedAron,
I ran the simpletest on my WAMP Test Server.
Here are the results (I only copied the failed lines):
2 test cases complete: 91 passes, 12 fails and 3 exceptions.
FeedAPI Aggregator basic functions: 20 passes, 9 fails and 3 exceptions.
FeedAPI Node basic functions: 71 passes, 3 fails and 0 exceptions.
My test environment
1. WampSertver (all extensions are by default), Apache/2.2.8, PHP 5.2.6, MySQL 5.0.51b
2. Drupal 5.5 (can't upgrade right now due to some core modifications)
3. FeedAPI 5.x-1.5, SimplePie 1.0.1
feedapi_node (content type) settings (weight assigned in the respective order)
Feed API
+ Is a feed content type
+ Refresh feed on creation
+ Update existing feed items
Delete news items older than:
+ 1 Week
Parser SimplePie
+ Enable
FeedAPI Aggregator
+ Enabled
FeedAPI Inherit
+ Enabled
+ Feed nodes inherit taxonomy settings from parent feed.
FeedAPI Node
+ Enabled
Node type of feed items
+ News
Created date of item nodes:
+ Retrieve from feed
Duplicates:
+ Check for duplicates only within feed
Enabled Modules
Comment #12
aron novakI got fine test results on a wampserver, except some OPML-related issues (feedapi aggregator tests are perfect, feedapi node test gives 3 errors, but only on opml import / export).
1) SimplePie 1.0.1 - this is really old, i even could not download this version! Use the latest simplepie, i'm sure there are no cons of upgrading
2) It's not related to the tests, but are you sure that you want to use all of the processors for the same content-type? Would you like to use both classic lightweight aggregator items and nodes for the same news items?
Comment #13
gemini commentedAron,
1. I updated the SimplePie on my production site, but that still didn't help to eliminate the problem with saving feed URLs when you submit them.
2. I wasn't sure how they worked - together or independently, so I had them both on. But you're right, I don't need the aggregator at this point.
BTW, just found a new problem. For some reason newly aggregated items come up in duplicates under different feeds. Not sure why. The most interesting thing - my own blog's items showed up as aggregated nodes under 2 completely irrelevant feeds, and the authors of those items (from my personal blog) appear users that submitted their original feeds. I do not include my blog's feed into the FeedAPI aggregation.
Comment #14
gemini commentedAron,
for whatever it's worth, I printed out node array for the feeds that have feed URLs and don't just to compare them. Those feeds that don't have feed URL they are missing the whole $node->feed section.
Comment #15
gemini commentedI'm posting too often...
Anyway, on my test WAMP server updating to SimplePie most current version made some improvements in the SimpleTest results, but still got a few errors. (BTW, turned off the FeedAPI Aggregator module as well).
FeedAPI Node basic functions: 71 passes, 3 fails and 0 exceptions.
Comment #16
aron novakgemini: Can you try out some other modules' simpletest test?
I'm curious because these errors are not strictly related to FeedAPI.
Comment #17
Sc0tt commentedI am unable view any feeds from the "View" option on feed's node page. I'm able to view individual nodes created by the feed and everything else seems to be working ok. Banging my head for hours and came across this thread. I don't know if this will help with debugging anything; but Simpletest's "FeedAPI Aggregator basic functions" test resulted in just one error:
Thanks for this module!
Scott
Comment #18
aron novakJust to log the things:
Tests for 6.x were broken, i committed the fix today.
Sc0tt: i'm not sure if i can understood your issue. "View" menu tab is not FeedAPI user interface. So using View menu tab, nothing will happen related to feeds. What would you like to see? The feed items that gathered from the feed? Install views module and use Feed items link below the feed node.
Comment #19
aron novakHere you can always report errors about simpletest tests of feedapi
Comment #20
aron novak