An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /batch?id=29&op=do StatusText: OK ResponseText: Fatal error: Cannot access empty property in /www/htdocs/a-drupal7-testspace/sites/all/modules/feeds/plugins/FeedsProcessor.inc on line 506
Seems to stay in connection with the following function in the FeedsProcessor.inc
public function setTargetElement(FeedsSource $source, $target_item, $target_element, $value) {
switch ($target_element) {
case 'url':
case 'guid':
$target_item->feeds_item->$target_element = $value;
break;
default:
$target_item->$target_element = $value;
break;
}
}I've created a custom import with csv parser and the "use standalone form" and "file upload" options with mapping customfields (d7 fields, not CCK). I mapped wordpress post ID to Node ID and set it as unique. I left GUID without any mapping. Maybe this causes the issue, but it needs clearifying advices and maybe some more code to avoid it.
thanks for this great tool! hope it will work soon for me.
Comments
Comment #1
dqdFound the reason: It is one of the things never can be expected from the developers side before it happens. In certain cercumstances an unwanted browserrefresh can cause a set up of an undefinded field entry in the mapping queue. I only saw it by carefully looking on my mapping twice. There was a field defined like this: "Select a source" was the name of the source field and "choose a target" (or something) was the other one. Exactly like the selector below. Meaning that the description of the selector is shown in a new mapped entry. You can reproduce this by pressing "add" without selecting anything. After all, this is what causes the error and will interrupt the import.
Hope it helps. Best regards
Comment #2
bonjourmr commentedThis fixed my issues, didn't even notice it. Thanks
Comment #3
dqdyou're welcome.
Comment #5
flak commentedMake sure you always have every field mapped on both sides (source/target) with real fields in your CSV/SQL and in your Content Type. Never leave "choose target" in a mapping. And, make sure that you pick a unique content type for one of the fields, go with GUID if you don't have one.