Closed (fixed)
Project:
Feed Import
Version:
7.x-2.6
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2012 at 13:25 UTC
Updated:
14 Jun 2013 at 14:29 UTC
Hello,
I've tried to use this module, because I have to transfert over of 24000 users in a new drupal.
I've followed your CSV example here (http://drupal.org/node/1360374#import-csv) with exactly the same data.
I can't import anything because of this error :
Exception : Uncaught Feed Import Exception dans FeedImport::errorHandler() (ligne 209 dans /www/sites/all/modules/feed_import/feed_import.inc.php).
Do you know how to fix this ?
Thanks
Comments
Comment #1
Sorin Sarca commentedHi,
there can be two reasons:
1) you missed something from that example
2) you have other modules that alter user before saving
In order to discover real error please follow next steps:
1) open feed_import.inc.php file and find line
(I think is line number 209)
2) before that line add the following line which will show us the real error:
3) save file and re-run import
A message which contains error info should appear; please post the error here.
Comment #2
striknin commentedHi,
Thank for your answer ...
I've verified my import params : I've not missed anything.
I've not any module that could alter users before saving.
With your script line added before line 209, drupal shows me this :
I've a question in your example : when you say "mail and init", this means two separated fields? Or there is any way to define only one field for both ?
Have you any idea? thanks
Comment #3
Sorin Sarca commentedYes, mail and init are two separate fields with the same xpath (init is the mail when user registered -- because he can change his mail address).
Back to error:
You need at least php 5.3.0 (then was added last parameter: escape). If you cannot upgrade to php 5.3.0 then consider removing the last parameter $escape from each fgetcsv() function call (there are only 2 calls).
Don't forget to remove or comment that line added for debugging.
If you need any help write back.
Comment #4
striknin commentedOf course, you're right ! Thank you.
My serveur was in 5.2.17. I've updated to 5.3.9 and imports work perfectly.
I suggest you to specify PHP version needed on project page, It should be necessary in some cases (like mine !)
My problem is solved.
Thanks a lot.
Comment #5
Sorin Sarca commentedI found this after checking php changelog, I didn't know about it before.
Comment #6
openmode commentedArray
(
[0] => Array
(
[error] => set_time_limit() has been disabled for security reasons
[error number] => 8
[line] => 266
[file] => /sites/all/modules/feed_import/feed_import.inc.php
)
)
Messaggio di errore
Exception: Uncaught Feed Import Exception in FeedImport::errorHandler() (linea 212 di /sites/all/modules/feed_import/feed_import.inc.php).
Feed Import 7.x-2.6
PHP 5.3
Comment #7
Sorin Sarca commentedHi,
open feed_import.inc.php file and search for set_time_limit(0);
Prepend a @ to set_time_limit(0); function, your line should look like this:
Save the file and try again.
Comment #8
openmode commentedNo result...
Array
(
[0] => Array
(
[error] => simplexml_load_file(http://www.domain.com/sites/default/files/public/feeds/dati.xml) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden
[error number] => 2
[line] => 1011
[file] => /domain/sites/all/modules/feed_import/feed_import.inc.php
)
)
Feed Dati from XML processed!
Comment #9
Sorin Sarca commentedAs the message says, the error is not in feed import module.
That url is not pointing to an xml file (nor to other file).
Comment #10
openmode commentedI suggest to use Feeds with Feeds import+Feeds XLS+PHP Excel library. It's better.
Comment #11
Sorin Sarca commentedSince you just reopened this bug for nothing, I will close it again. This issue was a bug report not a poll about which module is better.