I just installed both modules and I get this error after uploading a csv file. Obviously the node_import_api.php is missing in the node_import folder. Is this file obsolete? Importing users works though.

CommentFileSizeAuthor
#3 content_profile.inc_.patch442 bytesngstigator

Comments

mamsden’s picture

Priority: Minor » Normal

I get the same error:

* warning: include_once(./modules/node_import/node_import.api.php) [function.include-once]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/first/modules/user_import/supported/content_profile.inc on line 8.
* warning: include_once() [function.include]: Failed opening './modules/node_import/node_import.api.php' for inclusion (include_path='.:/Applications/MAMP/bin/php5/lib/php') in /Applications/MAMP/htdocs/first/modules/user_import/supported/content_profile.inc on line 8.

aitala’s picture

I 'third' this issue.

Eric

ngstigator’s picture

Status: Active » Needs review
StatusFileSize
new442 bytes

It appears as though the API file has been moved and renamed. I made the following changes to user_import/supported/content_profile.inc starting at line 7:

From:

  // Load the required API files.
  include_once('./'. drupal_get_path('module', 'node_import') . '/node_import.api.php');
  include_once('./'. drupal_get_path('module', 'node_import') . '/node_import.inc');

To:

  // Load the required API files.
  include_once('./'. drupal_get_path('module', 'node_import') . '/supported/node_import.inc');
  include_once('./'. drupal_get_path('module', 'node_import') . '/node_import.inc'); 

I am now able to perform successful imports to create profile nodes. The only thing that didn't appear as a drop down import field was a phone number (CCK phone field). Patch attached.

djmolny’s picture

Thanks for the fix! This appears to be the same error as http://drupal.org/node/688766, albeit with slightly different line numbers.

MatthijsG’s picture

Priority: Normal » Critical

Thanks for the import!

Setting the priority to critical, because this error breaks the import!

blackdog’s picture

Status: Needs review » Closed (duplicate)

Marking this as duplicate of #688766: Errors with node_import includes.

tajindersingh’s picture

Thanks for the solution