Menu

#386 Import IP Addresses from CSV array error

1.2
open
nobody
None
1
2017-01-29
2016-02-15
Anonymous
No

Hi,

when I try to import IP Addresses from CSV the show addresses works correctly but when I confirm to import I receive an PHP error but phpipam shows "Import Successfull".

The PHP error is: Cannot use a scalar value as an array in /var/www/html/app/subnets/import-subnet/import-file.php on line 100

The IPs are created but are somehow "bugged" (see attachement)

1 Attachments

Discussion

  • Anonymous

    Anonymous - 2016-02-16

    This seem to be 2 different issues - when I use the xls template I dont receive the PHP error but I still have the problem that the added IPs are added with a zero at the end and are not recognized as part of the subnet (not marked in green or effect the pie chart)

     
  • Anonymous

    Anonymous - 2016-02-16

    After trying to narrow the issue I discovered that the insert process is actually fine.
    My assumption was that the conversion of the IP is somehow wrong and therefore shown with a tailing 0. I was not aware that this 0 indicates the "state".

    The problem is a mistake in the documentation. The insert IP address popup shows the state "Active" but this state does not exist (anymore?). When I changed the state to "Used" the import worked correctly and did not show the confusing 0 anymore.

    Guess this can be closed.

     
  • Anonymous

    Anonymous - 2016-04-26

    I am having the exact same issue, my csv file looks fine.

     
  • Don Jolley

    Don Jolley - 2016-05-06

    I'm no developer but found that I had to include all information in the import file.
    If you dont have any data for that field have a , (comma) to hold the field. That goes for all 9 fields.

     
  • Anonymous

    Anonymous - 2017-01-29
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel