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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 688766-node_import includes_v01.patch | 1000 bytes | kars-t |
Comments
Comment #1
ressaFantastic 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:
Changing them to the two other lines, from above, still fixes the problem.
Comment #2
kars-t commentedMade 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.
Comment #3
Wappie08 commentedThanks abdulFarooqui and Kars-T, I just had te same problem and changing the lines works on removing the errors!
Comment #4
djmolny commentedThanks for the fix! This appears to be the same error as http://drupal.org/node/642680, albeit with slightly different line numbers.
Comment #5
blackdog commentedLooks allright, fixes the errors.
Comment #6
shawn dearmond commentedConfirmed. #2 works.
Comment #7
bitflippings commentedI 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.
Comment #8
goldhat commentedsecond that, I applied the suggested fix and immediately began getting a white screen (error code 500, general server error).
Comment #9
bohz commented@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
Comment #10
darrellduane commentednode_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');
Comment #11
hermes_costell commentedMaybe 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.
Comment #12
robert castelo commentedI 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.