snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Asset Import: PHP Fatal error

Open SynchronGmbH opened this issue 10 years ago • 7 comments

Hello

Expected Behavior (or desired behavior if a feature request)

1.) Import a csv-file according to the user manuel --> Importing Asset (http://docs.snipeitapp.com/manual/importing-assets.html) screenshot - 14 06 2016 - 13 36 52

2.) Import a csv-file according to the issue #1578


Actual Behavior

1.) When I upload a csv-file it keeps on saying "Process". If I click "Process" I get the follow message: "Success: Youre file has been imported" screenshot - 14 06 2016 - 13 44 01 Unfortunately I can't find the content assets of the csv-file.

2.) I upload the csv-file and tried to import the csv-file "Test2.csv" ... root@Snipe-IT01:/var/www/snipeit/snipe-it-master# php artisan asset-import:csv /var/www/snipeit/snipe-it-master/Test2.csv

PHP Warning: require(/var/www/snipeit/snipe-it-master/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/snipeit/snipe-it-master/bootstrap/autoload.php on line 17

PHP Fatal error: require(): Failed opening required '/var/www/snipeit/snipe-it-master/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/snipeit/snipe-it-master/bootstrap/autoload.php on line 17

So I opened the php-file autoload.php: screenshot - 14 06 2016 - 13 55 30

Please assist. Where is my issue ?

Thanks in advance


Please confirm you have done the following before posting your bug report:


Please provide answers to these questions before posting your bug report:

Version of Snipe-IT you're running: v2.1.0-8-g1b1a733 What OS and web server you're running Snipe-IT on: Linux 14.04 LTS (Linux 3.13.0-24-generic x86_64), Webserver is Apache2, Laravel Version 4.2.17

SynchronGmbH avatar Jun 14 '16 12:06 SynchronGmbH

It looks like you didn't run composer install (missing the vendor directory?) but that should have stopped the website from loading at all...

mnemonicly avatar Jun 14 '16 12:06 mnemonicly

Composer is installed: screenshot - 14 06 2016 - 14 22 49

SynchronGmbH avatar Jun 14 '16 12:06 SynchronGmbH

If composer didn't run, the page itself wouldn't load. My guess is that that's an older log message that's unrelated to the import. My money is on there being something wrong with the CSV.

snipe avatar Jun 14 '16 17:06 snipe

I imported the sample CSV file with the dummy data for v2.1.1. (http://docs.snipeitapp.com/manual/importing-assets.html) unbenannt But I still can 't find the records in SnipeIT.

SynchronGmbH avatar Jun 15 '16 06:06 SynchronGmbH

Did this get resolved?

snipe avatar Jul 09 '16 23:07 snipe

Unfortunately not. This way doesn't work.

SynchronGmbH avatar Jul 28 '16 12:07 SynchronGmbH

I still don't see a vendor directory in that screenshot you posted. I don't understand how your install is running at all without the vendor directory.

Do you see the records in your database? Are they just not displaying correctly on the assets listing page?

snipe avatar Jul 28 '16 12:07 snipe