Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Import from h-inventory generated xml is not working

    Scheduled Pinned Locked Moved General
    1 Posts 1 Posters 4.0k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      agrana
      last edited by

      Hi Everybody

      I'm having trouble to import a xml file generated with h-inventory
      I'm working with idoit 0.9.9-7

      From 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]
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post