Referencing to the file used in the field is not allowed (?)
cpill - May 18, 2009 - 16:51
| Project: | Node import |
| Version: | HEAD |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Getting this message on preview:
"Referencing to the file used in the field is not allowed."
followed by:
values = Array
(
[created] =>
[node_import_build_mode] => 1
[title] => Southern Cross
[cck:field_image_cache:fid] => Array
(
[0] => 6
)
[cck:field_image_cache:list] => Array
(
[0] => 1
)
[cck:field_image_cache:data] => Array
(
)
[format] => 1
[body] => Gunn-worn 10oz, -two large bellow chest pockets. -Cowhide collar. -Epaulets. -Full fitting.
[type] => shirt
[model] => 4S07
[list_price] => 222.99
[cost] => 333.99
[sell_price] => 111.99
[shippable] => 1
[weight] => 500
[weight_units] => g
[length_units] => in
[length] =>
[width] =>
[height] =>
[pkg_qty] =>
[default_qty] => 1
[ordering] => 0
[active] => 1
[stock] => 1
[threshold] => 1
[revision] => 0
[log] => Imported with node_import.
[uid] => 1
[promote] => 0
[sticky] => 0
[status] => 1
[path] =>
[comment] => 0
[name] => admin
[taxonomy] => Array
(
[2] => Array
(
[0] => 3
)
)
[field_image_cache] => Array
(
[0] => Array
(
[fid] => 6
[list] => 1
[data] =>
)
)
[op] => Preview
)for a CCK filefield (imagefield) when importing an image to Ubercart. the following 2 products had no errors and their image came up fine.

#1
heres the error report CSV
#2
looks like the image has already been imported on a previous import and its now pointing to the same file which is causing the error. The worse thing is that its stopping the import of the whole row :(
Should this be an error? Can't see where it originates from. The CCK filefield perhaps?
#3
I have the same problem too...
did you solve this somehow?
#4
This certainly has something to do with the CCK filefield because I have the same error for a file upload that's imported, but it looks not related to the actuial re-referencing of files...
(In an import I am trying there are a lot less duplicate files than the errors suggest.)
The actual error is actually on line 421 of filefield/filefield_widget.inc of filefield.module
form_error($element, t('Referencing to the file used in the %field field is not allowed.', array('%field' => $element['#title'])));where you can see that the title is empty - which is probably wrong.
#5
Duplicate of: #441280: Editing node causes Referencing to the file used in the field is not allowed ?