Import from h-inventory generated xml is not working
-
Hi Everybody
I'm having trouble to import a xml file generated with h-inventory
I'm working with idoit 0.9.9-7From the web page fails instantly in the web server logs i find this line.
[Mon Mar 12 18:12:49 2012] [error] [client Edited] PHP Fatal error: Call to a member function attributes() on a non-object in /var/www/html/idoit/src/classes/import/handler/isys_import_handler_cmdb.class.php on line 290, referer: http://infraproject.edited.com/idoit/index.php?moduleID=50
I give the command line a try.
i try this
[root@invetario idoit]# ./import imports/-03-12-12-13161331569019.xml [*] Logging in.. [*] Connected to mandator: 1 (Edited) [*] Logged in as: adminPHP Fatal error: Call to a member function attributes() on a non-object in /var/www/html/idoit/src/classes/import/handler/isys_import_handler_cmdb.class.php on line 290 In the help off the command found Example for importing a client with an h-inventory xml export: ./import imports/client_1.xml inventory 10 --force So i give it a try [code][root@invetario idoit]# ./import imports/-03-12-12-13161331569019.xml inventory 10 --force [*] Logging in.. [*] Connected to mandator: 1 (Edited) [*] Logged in as: admin [*] Logging out [2012-03-12 22:16:30] NOTICE: i-doit import [2012-03-12 22:16:30] NOTICE: Import handler initialized at 2012-03-12 22:16:30 [2012-03-12 22:16:30] INFO: Running in force mode. [2012-03-12 22:16:30] ERROR: Import failed! Type inventory not registered. Any help will be very welcome. Regards. [/code]