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()
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1388544-feeds-sanitize.patch | 514 bytes | nrambeck |
Comments
Comment #1
nrambeck commentedAttached is a patch that tests that the raw value is a string before attempting to sanitize it.
Comment #2
agoradesign commentedhad the same problem (in combination with Feeds SQL --> there's an array here and no string) and the patch works for me :)
Comment #3
nrambeck commentedThis bug is still in the latest release of the module. Could we get it committed?
Comment #4
twistor commentedFeeds SQL needs to override that method.
They have this issue in their queue. #1839022: Array to string conversion in FeedsFetcherResult.
Comment #5
robw92 commentedWhere exactly is the patch applied?
Comment #6
basvredelingThis is an issue in wsclient_feeds too. See: #2403205: FeedsWSClientFetcherResult::sanitizeRaw() method expects string. Should we override all possible FeedsFetcher class extenders?