I am not sure if it is my configuration or if it is an issue. In any case, I am using content profile and wanted to use user import.
I enable node_import. I kept getting an error that module can not locate the include files from node_import. Something like:

warning: include_once(/var/ww/drupal-6.15/sites/all/modules/node_import/node_import.api.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/drupal/sites/all/modules/user_import/supported/content_profile.inc on line 8.

I changed the line 8 and 9 from:

include_once('/web/apps/drupal-6.15-acwa-dev/'. drupal_get_path('module', 'node_import') . '/node_import.api.php');
include_once('/web/apps/drupal-6.15-acwa-dev/'. drupal_get_path('module', 'node_import') . '/node_import.inc');

to:

  module_load_include('php', 'node_import', '/node_import.api') ;
  module_load_include('inc', 'node_import', '/node_import') ;

And the user import worked well.

Just thought I should bring this to your notice.
Thanks for this wonderful module.

CommentFileSizeAuthor
#2 688766-node_import includes_v01.patch1000 byteskars-t

Comments

ressa’s picture

Fantastic module and a great tip -- and just when I needed it.

For some reason line 8-9 in my /user_import/supported/content_profile.inc says:

include_once('./'. drupal_get_path('module', 'node_import') . '/node_import.api.php');
include_once('./'. drupal_get_path('module', 'node_import') . '/node_import.inc');

Changing them to the two other lines, from above, still fixes the problem.

kars-t’s picture

Status: Active » Needs review
StatusFileSize
new1000 bytes

Made a patch against HEAD of the code by abdulFarooqui. I had this with the latest release applied the patch and the error gone away. Imho RTBC.

Wappie08’s picture

Thanks abdulFarooqui and Kars-T, I just had te same problem and changing the lines works on removing the errors!

djmolny’s picture

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

blackdog’s picture

Category: task » bug
Status: Needs review » Reviewed & tested by the community

Looks allright, fixes the errors.

shawn dearmond’s picture

Confirmed. #2 works.

bitflippings’s picture

I was getting these errors so I applied the suggested fix but now I just get a white screen when I click after selecting the CSV to import.

There are no messages in Reports -> Recent Log Entries.

Has anyone encountered this white screen after selecting a file for import?

(I have tried UTF8 with and without BOM, both with a ".csv" suffix and with a ".txt" suffix. I even trimmed the CSV file down to six lines and made sure each line is less than 1000 bytes.)

Thank you in advance for any help.

goldhat’s picture

second that, I applied the suggested fix and immediately began getting a white screen (error code 500, general server error).

bohz’s picture

@bitflippings
@goldhat
Maybe try node_import 6.x-1.x-dev
AFAIK both mentioned files are not present in the stable 6.x-1.0-rc4 version
cheers

darrellduane’s picture

node_import.api.php no longer exists. To fix this problem, just remove this line in
user_import/supported/content_profile.inc

include_once('./'. drupal_get_path('module', 'node_import') . '/node_import.api.php');

hermes_costell’s picture

Maybe try node_import 6.x-1.x-dev
+1

Using the node_import dev version as of this date (Feb 2011) fixes the above problem, I've found.

robert castelo’s picture

Status: Reviewed & tested by the community » Closed (cannot reproduce)

I haven't been able to replicate this in the User Import 6.x-4.0 version with the latest Node Import module.

Please test and if same problem comes up again feel welcome to re-open this issue.