I use the Common syndication parser, and the Drupal Feed Aggregator (FeedAPI Aggregator is version 5.x-1.0 and will not work in my Drupal 6 installation).

When I setup a feed, the feed URL shows up in preview, but as soon as I go to edit, it is gone. The script creates a feed page, but there are no feed items at all.

I'm not sure if this has anything to do with FeedAPI or not, but I use the Digg Module and the Digg button doesn't show up in the created feed page either.

Comments

ilbeppe’s picture

I have the same problem with my drupal 6 installation clean

aron novak’s picture

Assigned: Unassigned » aron novak
Priority: Normal » Critical

Thanks for the report, sometimes i also experienced this. Any report for 6.x is highly appreciated!
I need the following information to step forward in this problem:
- please run simpletest tests of feedapi. There are tests for Drupal 6 too and even the tests are more sophisticated. (the tests only uses the enabled / sane parsers automatically, for example) Please do not copy the whole output, only the lines with FAIL, if any.
- what is the feed url what you try to submit

aron novak’s picture

Category: support » bug
go7’s picture

I ran simpletest for FeedAPI but it doesn't show any error. Used both parsers for the test. The problem persists with SimplePie, and/or the Common syndication parser turned on.

Test result:
99 passes, 0 fails and 0 exceptions.

Found one error in actions

Check to make sure the node is automatically published at [/hsphere/local/home/gkajba/everything4u.info/modules/simpletest/tests/content_actions.test line 50]

Don't know if that might cause the problem. Tried also to run a full simpletest, but then I either end up with a blank page or, page can not be found.

Tried it with various URLs, always the same result. Tried them also in the integrated Aggregator and SimpleFeed and they worked fine there.

Could the problem be caused because I can't use the FeedAPI Aggregator? (still Drupal5 version). I use at the moment the integrated Aggregator.

aron novak’s picture

Well, currently FeedAPI for Drupal 6.x cannot operate like the classic aggregator in Drupal core because FeedAPI aggregator is not ported.
Have you enabled FeedAPI Node module? Currently, everybody, who likes to use FeedAPI under Drupal 6.x, need to enable FeedAPI Node module. FeedAPI cannot co-operate with the core Aggregator.

go7’s picture

I uploaded the new script.

Urls are now saved, but now I have the same problem I had with Simplefeed (you can see the feed items on the front page and you can follow this link, but if you click Feed items - you get a 404 error).

I use the FeedAPI Node module.

There are two other things that are quite odd.

First, the feed shows that videos are tagged with the feed, but they don't show up. I have no idea if I have to download an other module, or how I can show the videos on my site.

The other thing that is quite strange is that it's not possible to change the story settings generally to full htm mode, which is needed to show at least the thumb nails. I'm pretty sure that has to do with Drupal, but maybe you can tell me how I could change that.

Also would you recommend to use SimplePie or the Common syndication parser? Which one is better?

Is there any way that I can just publish the Feed items but not the Feed by itself? Think it looks somewhat strange in some cases to have the Feed Title without any Feed items showing up (especially when Drupal can't find the page for the Feed items).

Thanks for the help
Gaby

aron novak’s picture

Priority: Critical » Normal

Well, it's good to hear that you can save and refresh the feed.
Can you submit here the feed url?
The videos can be shown, it's not a problem normally.
I suggest you the SimplePie parser, it's more tested at the moment, especially when you'd like to show videos on your page.
admin/settings/feedapi - here you can enable all the HTML tags.
You can adjust the items promoted to the front page.

aron novak’s picture

"especially when Drupal can't find the page for the Feed items"
- as it's written in the release notes (http://drupal.org/node/229549), there is no feedapi node views. So please turn off that module, the Feed items link will disappear from the feeds.

sinaghazi’s picture

Priority: Normal » Critical

I am facing the same situation on Feed URLs not being saved after going to edit mode once.

Env:
Drupal 6.1
SimplePie is 1.1
Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.3

installed modules:
FeedAPI 6.x-1.2-beta1
FeedAPI Node 6.x-1.2-beta1
SimplePie parser 6.x-1.2-beta1
FeedAPI Inherit 6.x-1.2-beta1
Common syndication parser 6.x-1.2-beta1

aron novak’s picture

Status: Active » Postponed (maintainer needs more info)

Can you refresh the feed when it's created at the first time?
Which parsers do you use from the two enabled parsers? What are the feed URLs? For some specific feed URLs, i experienced the same things at Common Syndication parser.

go7’s picture

The feeds were not updated since the creation, so I deleted them and tried to reproduce what I did on the weekend.

Tried to use http://www.youtube.com/rss/tag/animals.rss. The URL is saved. But depending on which parser I use, I receive different error messages now, when I go to refresh, so I receive Feed items.

Don't use the Aggregator, nor Common syndication parser, nor FeedAPI Node Views but SimplePie:
warning: Invalid argument supplied for foreach() in /hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi.module on line 1141.

or

Don't use the Aggregator, nor SimplePie, nor FeedAPI Node Views but Common syndication parser:
Fatal error: Cannot use object of type stdClass as array in /hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi.module on line 133

No Feed items are created at all.

When I try to use http://feeds.delicious.com/rss/tag/animals, then it saves the feed information, but not the URL! (no error message at all). Tried it with SimplePie and Common syndication parser, both with and without Aggregator enabled.

Ran simple test again for FeedAPI and the Node Module.
FeedAPI: 35 passes, 5 fails and 3 exceptions.
FeedAPI Node basic functions

Unexpected PHP error [sort() expects parameter 1 to be array, null given] severity [E_WARNING] in [/hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 95] EXCEPTION

Unexpected PHP error [sort() expects parameter 1 to be array, null given] severity [E_WARNING] in [/hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 96] 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 node WHERE nid IN ()] severity [E_USER_WARNING] in [/hsphere/local/home/gkajba/everything4u.info/includes/database.mysqli.inc line 128] EXCEPTION

The proper number of items were created at [/hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 74] FAIL

The first news item is a story. at [/hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 93] FAIL

All news items have the same type. at [/hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 94] FAIL

All news item titles are longer than 0 character. at [/hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 97] FAIL

All news item bodies are longer than 0 character. at [/hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 98] FAIL

Node Tests
Edit Story Test:
25 passes, 5 fails and 0 exceptions.
[browser] clicked link Edit (URL NOT FOUND!) from http://everything4u.info/story/simpletest-test-titlesimpletestbyqfx7mfpe... at [/hsphere/local/home/gkajba/everything4u.info/modules/simpletest/tests/story_edit.test line 34] FAIL

Equal expectation fails at character 25 with [http://everything4u.info/node/566/edit] and [http://everything4u.info/story/simpletest-test-titlesimpletestbyqfx7mfpe... at [/hsphere/local/home/gkajba/everything4u.info/modules/simpletest/tests/story_edit.test line 39] FAIL

Edit text is here at [/hsphere/local/home/gkajba/everything4u.info/modules/simpletest/tests/story_edit.test line 41]

test is over, the body's still there at [/hsphere/local/home/gkajba/everything4u.info/modules/simpletest/tests/story_edit.test line 43]

test is over, the body's still there at [/hsphere/local/home/gkajba/everything4u.info/modules/simpletest/tests/story_edit.test line 55]

Node Revision Test:
87 passes, 2 fails and 0 exceptions.

Check to make sure correct revision text appears on "view revisions" page. at [/hsphere/local/home/gkajba/everything4u.info/modules/simpletest/tests/node_revisions.test line 55] FAIL

Check to make sure log message is properly displayed. at [/hsphere/local/home/gkajba/everything4u.info/modules/simpletest/tests/node_revisions.test line 69] FAIL

Hope that information helps.

aron novak’s picture

Well, if the simpletest tests are unsuccessful, that's quite strange.
My questions and suggestions:
- do you use PHP4? If yes, do not try to use parser common syndication
- which version of simplepie do you use? I recommend the latest devel package.
- do admin/reports/status page reports errors about the environment?
- did you do a clean install of D6?
- do you have any other 3rd party modules installed?
- do you use a restrictive shared hosting environment? Try it out at localhost.

go7’s picture

I use:
- PHP 5.2.3
- SimplePie 1.1
- No errors on status page (aside from update warning for FCKeditor - use .dev version which is not the recommended one)
- Started with a fresh install
- Have shared hosting but dedicated IP. Have no idea how I can try out (especially what) on localhost.

Here are my parameters:
Drupal 6.1
Access to update.php Protected
Configuration file Protected
Cron maintenance tasks Last run 45 min 41 sec ago
Database updates Up to date
Drupal core update status Up to date
File system Writable (public download method)
GD library bundled (2.0.34 compatible)
Module and theme update status Out of date (that's the FCKeditor)
MySQL database 5.0.41
PHP 5.2.3
PHP memory limit 128M
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Update notifications Enabled
Web server Apache/1.3.37 (Unix) mod_throttle/3.1.2 FrontPage/5.0.2.2635 mod_psoft_traffic/0.2 mod_ssl/2.8.28 OpenSSL/0.9.8b

Modules I have activated are:
Blog 6.1
Blog API 6.1
Book 6.1
Color 6.1
Contact 6.1
Content translation 6.1
Database logging 6.1
Forum 6.1
Help 6.1
Locale 6.1
Menu 6.1
OpenID 6.1
Path 6.1
PHP filter 6.1
Ping 6.1
Poll 6.1
Profile 6.1
Search 6.1
Statistics 6.1
Syslog 6.1
Taxonomy 6.1
Throttle 6.1
Tracker 6.1
Update status 6.1
Upload 6.1
Img 6.x-0.12
Img comments 6.x-0.12
Simplenews (Head)
Automatic Nodetitles 6.x-1.x-dev
Diggthis 6.x-1.0
FCKeditor 6.x-1.x-dev
Flag content 6.x-1.x-dev
Form block 6.x-1.x-dev
Google Analytics 6.x-1.0
Meta tags 6.x-1.0-rc1
Nice Menus 6.x-1.0
Pathauto 6.x-1.x-dev
Search Engine Referers 6.x-1.0
Token 6.x-1.10
Token actions 6.x-1.10
SimpleTest module 6.x-1.x-dev
Simpletest_xmlrpc 6.x-1.x-dev
External Links 6.x-1.6
Views 6.x-2.x-dev Required by: FeedAPI Node Views (disabled), Views UI (enabled)
Views UI 6.x-2.x-dev

Just saw that all the modules that I had set to throttle are unchecked now.

Downloaded yesterdays version of FeedAPI. Still get the same errors.

When creating feed with SimplePie or updating it: Fatal error: Cannot use object of type stdClass as array in /hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi.module on line 134

Even though I have the error message FeedAPI creates feed and saves URL but doesn't refresh or pull any feed items

Using Common Syndication Parser: warning: Invalid argument supplied for foreach() in /hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi.module on line 1140.

Doesn't create any feed items either. When I click on Feed items - 404 error.

I have the external link module active and that creates the proper link to the right RSS feed page.

SimpleTest result:
The proper number of items were created at [/hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 74] FAIL
The first news item is a story. at [/hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 93] FAIL
All news items have the same type. at [/hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 94] FAIL
All news item titles are longer than 0 character. at [/hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 97] FAIL
All news item bodies are longer than 0 character. at [/hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 98] FAIL
Unexpected PHP error [sort() expects parameter 1 to be array, null given] severity [E_WARNING] in [/hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 95] EXCEPTION
Unexpected PHP error [sort() expects parameter 1 to be array, null given] severity [E_WARNING] in [/hsphere/local/home/gkajba/everything4u.info/modules/feedapi/feedapi_node/tests/feedapi_node.module.test line 96] 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 node WHERE nid IN ()] severity [E_USER_WARNING] in [/hsphere/local/home/gkajba/everything4u.info/includes/database.mysqli.inc line 128]

MySQL shows following warning for Feed node Item: PRIMARY and INDEX keys should not both be set for column `nid
Feed is saved in feedapi table but not in feedapi_node_item

There are some things that are strange with my setup:
1) I had to split the .htaccess and put parts into a php.ini file to get Drupal to work (since my hosting company switched servers, the configurations are more restrictive)
2) They put php5 into cgi
3) settings.php shows mysqli instead of mysql and I'm not able to change that (for what ever reason). The connection to the database was horrifying slow at one point, but it was fixed by my host.

The only other thing that is somewhat strange is, that I uninstalled FeedAPI now twice, made sure the tables were deleted too, but every time I reinstall it, it automatically has the same permissions and also same settings as the previous install.

Ok, that's all the information I can give you :)

aron novak’s picture

Hm. can you try out feedapi without the other 3rd party modules?
If it does not help, it would be really good if you can install the devel module (http://drupal.org/project/devel) and send me an account to the site. I'm happily involve in debugging on the remote site. This is the best way to catch the problem. Currently i haven't seen a better way, because i cannot reproduce the problem at all.

go7’s picture

Just sent you an email with Devel and account information. Nothing changed without 3r party modules.
Thanks for the help.
Gaby

aron novak’s picture

The problem is here:

      case 'presave':
        // Todo: the first case essentially copies the entire feed array from feedapi to feed.
        // Figure out a way how to save this step.
        $node->feed = isset($node->feedapi_object) ? $node->feedapi_object : _feedapi_build_feed_object($node->type, $node->feedapi['feedapi_url']);
        break;

FeedAPI has to check here if is it really a feed saving or just a feed item saving. Think about feed items where the node type is also feedapi-enabled. The fix will be available soon. Workaround: disable feedapi for feed item content-types.

aron novak’s picture

Status: Postponed (maintainer needs more info) » Fixed

The fix is committed. I tested that DRUPAL-5 line is not affected. Thanks a lot for go7, who helped me to find the bug.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

vinoth.3v’s picture

Version: 6.x-1.x-dev » 6.x-1.5
Component: Code » Code feedapi (core module)
Status: Closed (fixed) » Postponed (maintainer needs more info)

Me too having this same Issues in feedapi-6.x-1.5.tar.gz PHP 5.2.6

aron novak’s picture

Category: bug » support
Priority: Critical » Normal

Can you paste here your content-type configuration? The easiest way is to attach the variable table.