I received the following:
Fatal error: Only variables can be passed by reference in ..../sites/all/modules/node_import/node_import.inc on line 588

I noticed it only happens when importing to my "Contact" content type (a custom content type created in CCK.) My suspicion is that it's because of the computed field, but I'll have to play around to see what's causing the issue.

Comments

Mac Clemmens’s picture

Note, this is between steps 6 and 7. It didn't appear to be related to the computed field. I'll keep investigating...

Mac Clemmens’s picture

Assigned: Mac Clemmens » Unassigned

On another content type, I am able to import without the fatal error, but I'm getting another error. The field_provider array looks a little fishy. Note I uploaded both 93 in the Provider field and the title of the Nodereference field, but both returned this error. Tried making the CCK field multivalue and 1 value also, to no avail.

Provider: found no valid post with that title.

values = Array
(
    [created] => 
    [node_import_build_mode] => 1
    [title] => Another Rock Family Clinic
    [cck:field_provider:nid] => Array
        (
            [0] => 93
        )

    [format] => 1
    [body] => New Quarters
    [type] => contact
    [revision] => 1
    [log] => Imported with node_import.
    [uid] => 1
    [sticky] => 0
    [promote] => 0
    [status] => 1
    [path] => 
    [comment] => 0
    [name] => admin
    [taxonomy] => Array
        (
        )

    [field_provider] => Array
        (
            [0] => Array
                (
                    [nid] => Array
                        (
                            [nid] => 93
                        )

                )

        )

    [op] => Preview
)

Update: Still getting the error, but nevermind about the structure looking fishy. Saw the comment in node_import/supported/cck/nodereference.inc. :

// This is just braindead - because of some wrapper, the value
        // needs to be:
        // array(0 => array('nid' => array('nid' => 'name')))
        // instead of:
        // array(0 => array('nid' => 'name')).

Update #2 Fixed nodereference import by changing the nodereference widget to select list instead of autocomplete widget.

Mac Clemmens’s picture

Figured it out. The error was caused by a multiline text field that had been assigned an input format. When I changed it to plain text, I no longer got the error. Hope this helps someone, somewhere. If you have any questions for me to help track down the error, let me know. Whew!

presleyd’s picture

I'm having this issue too, I can't for the life of me figure out what's causing it though because it's not multiline text fields, both of those are definitely set to plain text input formats.

presleyd’s picture

In my case this seems to be the result of have a User reference field with auto complete widget. Select widget seems ok.

catch’s picture

Had the same error with an unlimited value file field. Reducing it to one value worked fine. Didn't get very far tracking down why it was happening though.

Robrecht Jacques’s picture

Status: Active » Fixed

Pass by reference error fix has been committed to CVS. Will be included in -rc5.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.