Node Import

warning: Creating default object from empty value in /home3/blacked1/public_html/drupalwizardry/modules/taxonomy/ on line 33.
Oz's picture

Node Import playing nice with Organic Groups

Out of the box the Node Import module doesn't play nice with the Organic Groups module. When trying to configure nodes to be posted into a group after the content import, two Drupal database tables are important: og_access_post and og_ancestry. The og_access_post table has two columns, nid and og_public. The og_public field should either 0 or 1 depending on whether you want the post to be public or not. The og_ancestry table also has two columns, nid and group_nid. After importing content, it is import to update these two tables with the appropriate data.

Oz's picture

Node Import Tip

I was unable to import node reference fields that were autocomplete fields. To make this work, I had to change the node reference field to a select field. Then in the csv, use the Title of the node to import that reference. Also, when trying to import a field that is a single on/off checkbox, I wasn't able to import the on value. I kept receiving an invalid value error. To fix this I had to change the single on/off value to a regular select field.

Oz's picture

Node Import Step 7 Bug

During step 7 of importing a csv file, I receive this warning

warning: Parameter 2 to drupal_retrieve_form() expected to be a reference, value given in E:\webserver\xampp\htdocs\database\sites\all\modules\node_import\ on line 1842

To fix this, all that needs to be done is change:

$form = call_user_func_array('drupal_retrieve_form', $args);


$form = call_user_func_array('drupal_retrieve_form', &$args);

Syndicate content