I'm using the SQL Fetcher for feeds and keep getting log message warning during the sanitizeRaw() method.

Warning: substr() expects parameter 1 to be string, array given in FeedsFetcherResult->sanitizeRaw() 
CommentFileSizeAuthor
#1 1388544-feeds-sanitize.patch514 bytesnrambeck

Comments

nrambeck’s picture

StatusFileSize
new514 bytes

Attached is a patch that tests that the raw value is a string before attempting to sanitize it.

agoradesign’s picture

had the same problem (in combination with Feeds SQL --> there's an array here and no string) and the patch works for me :)

nrambeck’s picture

This bug is still in the latest release of the module. Could we get it committed?

twistor’s picture

Status: Active » Closed (duplicate)

Feeds SQL needs to override that method.

They have this issue in their queue. #1839022: Array to string conversion in FeedsFetcherResult.

robw92’s picture

Issue summary: View changes

Where exactly is the patch applied?

basvredeling’s picture

This is an issue in wsclient_feeds too. See: #2403205: FeedsWSClientFetcherResult::sanitizeRaw() method expects string. Should we override all possible FeedsFetcher class extenders?