Wrong datatype for second argument in feedapi.module

randomuser - April 23, 2008 - 16:41
Project:FeedAPI
Version:6.x-1.2-beta2
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hey, I've install feedapi successful and have tested it on a few feeds without problems but I'm getting the following error on a few of the feeds....

warning: in_array() [function.in-array]: Wrong datatype for second argument in public_html/sthinstall4/modules/feedapi/feedapi.module on line 914.

Is this a bug or is this on my end? What other info do you need to debug?

Simpletest fails....

The node is created. at [/public_html/sthinstall4/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module.test line 49] FAIL

The feed node is in the database at [/public_html/sthinstall4/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module.test line 53] FAIL

The feed can be loaded. at [/public_html/sthinstall4/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module.test line 55] FAIL

The source's page is empty before refreshing. at [/public_html/sthinstall4/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module.test line 64] FAIL

The proper number of items were created. at [/public_html/sthinstall4/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module.test line 68] FAIL

The third news title can be read at the source page. at [/public_html/sthinstall4/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module.test line 71] FAIL

The proper number of items can be found in the database. at [/public_html/sthinstall4/modules/feedapi/feedapi_aggregator/feedapi_aggregator.module.test line 75] FAIL

Any help appreciated.

#1

Rob T - May 8, 2008 - 12:48
Title:Unknown error on a few feeds» Wrong datatype for second argument in feedapi.module
Version:5.x-1.1» 6.x-1.2-beta2

The initial report was with 5.x-1.1. I am also experiencing this issue in my FeedAPI 6.x-1.2-beta2 .

There were some other symptoms I noticed...

  1. The feed was working fine for weeks until today.
  2. When attempting a manual refresh of the feed, I received a "Page not found"
  3. Editing the feed (saving without changes) resulted in a loss of the Feed URL and Feed Title, and the notification "Wrong datatype for second argument in... feedapi.module" (line 933)
  4. Creating a new feed with the same Feed URL gave me a "Title could not be retrieved from feed" notice.
  5. I was using the SimplePie parser
  6. The Feed URL was ".xml"
  7. Visiting the feed in Safari 3 showed the source feed was indeed active.
  8. Attempts to use the Common Syndication parser were unsuccessful as well.
  9. The same feed source also offers a feed in ".rss" --- When I used this Feed URL (after deleting the original feed), everything worked fine.
  10. Switching back to the ".xml" feed again resulted in the above error and symptoms.
  11. Other ".xml" feeds from the source also work fine. The issue is only with this one particular feed.

It seems something minor changed in the XML source feed, though Safari 3.x and my newsreader both still process the feed data (URL and Title) properly.

 
 

Drupal is a registered trademark of Dries Buytaert.