Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login
    1. Home
    2. agrana
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 0

    agrana

    @agrana

    0
    Reputation
    59
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online
    Age 24

    agrana Unfollow Follow

    Latest posts made by agrana

    • 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-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]
      
      posted in General
      A
      agrana