After setting up the FeedAPI to publish feed as items (like the default aggregator), whenever I go to the source page (News aggregator > Sources), I would get the following error message:

warning: Wrong parameter count for array_merge() in local/home/sites/all/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module on line 669.
warning: in_array(): Wrong datatype for second argument in local/home/sites/all/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module on line 669.

This started to happen after I chose to "enable all HTML" in feeds. But even after disabling the option, the error messages still come up.

Comments

aron novak’s picture

Assigned: Unassigned » aron novak

Thanks for the clear bugreport. Can you give me some more information? It would be good if you can post the exact configuration of the FeedAPI-enabled content-type. (feedapi_settings_foo variable) foo - content-type name
I'll fix it as soon as I'll have some time for FeedAPI development. I promise you a fix around the next week.

Anonymous’s picture

Hi,

Below are my content type configurations (I currently have 2):

Name: Blog Feed
Type: news_blog_feeds
Parser Common Syndication - only for PHP5: Enabled

Name: News Feed
Type: news_feed
Parser Common Syndication - only for PHP5: Enabled
FeedAPI Aggregator - classic style aggregator items: Enabled

And some other settings:

Drupal: 5.2
MySQL: 5.0.41
PHP: 5.2.1

The error message seems to appear on some other pages as well, like the edit panel page (I'm using panel to display feed blocks, using Panels 2.0rc7).

Also, after trying it on a clean install, the error started happening again after I added a LiveJournal/Feedburner feed (so now I'm not sure what exactly is causing this). Another thing worth noting is that after adding the Feedburner feed, then clicking on refresh, I get this error:

* warning: Invalid argument supplied for foreach() in /hsphere/local/home/myaccount/mysite.com/sites/all/modules/feedapi/feedapi.module on line 229.
* This feed (http://feeds.feedburner.com/myfeed) doesn't have any processor. It's not possible to refresh the feed.

The same feed works with the other Aggregator module, so I don't think it's Feedburner's problem, not sure if this is related to the issue at hand though :P

aron novak’s picture

I enabled all HTML tags and added
http://feeds.feedburner.com/myfeed
feed, but i cannot reproduce your error with your feedapi configuration using DRUPAL-5 branch of code.
It'd be great if you can try out the following:
- uninstall the current FeedAPI (not only turn off the modules and delete, use the uninstall tab at modules page)
- grab DRUPAL-5 branch source code of FeedAPI from CVS
- try to reproduce the problem again.

I'm not sure, maybe your problem is related to: http://drupal.org/node/168627

Anonymous’s picture

After a clean install using the latest version of the module, the issue seems to be fixed. I'll probably do some more testing with the module regarding this issue in the next few weeks. I'll post again if the problem comes back. (By the way, the feedburner feed isn't actually "myfeed", I just used that as a placeholder ;)

aron novak’s picture

Status: Active » Fixed

Let me allow to change this ticket status to fixed. Feel free to repoen if you experience this again.

Anonymous’s picture

Status: Fixed » Closed (fixed)