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

cpill - May 18, 2009 - 17:00

heres the error report CSV

AttachmentSize
kak-goods-test-set-stock-reject.csv_.txt 701 bytes

#2

cpill - May 18, 2009 - 17:24

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

andor_pds - June 4, 2009 - 10:04

I have the same problem too...

did you solve this somehow?

#4

jadwigo - June 8, 2009 - 13:19

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.

 
 

Drupal is a registered trademark of Dries Buytaert.