Closed (fixed)
Project:
Entity reference feeds
Version:
7.x-1.0-beta2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2014 at 17:51 UTC
Updated:
19 Jan 2015 at 17:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rcodinaI enclose a patch I made to avoid the error and get data imported. Could you test it please? I have done some testing and it works ok for me. Thank you!
Comment #2
johnkareoke commentedHave the same error, but the patch doesn't seem to work for me. I'm going to try and update it manually and report back
Putting the error in text so it helps people searching for it:
"An error has occurred.
Please continue to the error page
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=1221&op=do StatusText: Service unavailable (with message) ResponseText: Recoverable fatal error: Argument 4 passed to date_feeds_set_target() must be of the type array, string given, called in sites/all/modules/entityreference_feeds/entityreference_feeds.module on line 219 and defined in date_feeds_set_target() (line 38 of sites/all/modules/feeds/mappers/date.inc)."
Comment #3
johnkareoke commentedThe patch doesn't seem to work for me. Even after applying it manually I still get the same Ajax error on import
Comment #4
gnucifer commentedI can't reproduce this using 7.x-2.0-alpha8, but I think it has less to do with the version of feeds and more so with the parser used. The values comes directly from the parser(?), and since I'm using the Xpath-parser also single values will be parsed as arrays (I guess). I will look into this a bit deeper, the current patch is absolutely too "special case":ish. There should be a general solution for this, but currently I'm not sure if it is the responsibility of this module to correct these invalid values.
Comment #5
gnucifer commentedSorry, I did not realize it was the dev-version you where referring too. I also forgot that array values from the parser will become single values as a consequence as multiple values will be matched up as single values on multiple entities. This is the "hack" this module was build upon. It therefore should make sense to convert all values to arrays before delegating them to the mapper in question, not just for the text mapper. I just hope this will not have any nasty side effects.
Comment #6
gnucifer commentedHere is a patch that should cover all cases. I hope it's alright if I attribute it to you (rcodina) although I changed it to fix this issue just not for the textfield mapper.
Comment #7
gnucifer commentedCommited
Comment #8
rcodina@gnucifer Thank you so much for this!