Run: php composer.phar install --no-dev --prefer-source
To: Installing and configuring composer
(what actually happens goes here)
Generating autoload files
php artisan clear-compiled
PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class log does not exist' in /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php:734
Stack trace:0 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container. php(734): ReflectionClass->__construct('log')
1 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container. php(629): Illuminate\Container\Container->build('log', Array)
2 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/Applicati on.php(697): Illuminate\Container\Container->make('log', Array)
3 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container. php(849): Illuminate\Foundation\Application->make('Psr\Log\LoggerI...')
4 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container. php(804): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
5 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container. php(775): Illuminate\Container\Con in /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 734
Script php artisan clear-compiled handling the post-install-cmd event returned with error code 255
Please confirm you have done the following before posting your bug report:
Version of Snipe-IT you're running
V3; I cloned it yestarday, by git clone https://github.com/snipe/snipe-it
What OS and web server you're running Snipe-IT on
Ubuntu server 14.04.4 LTS
What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)
manual installation, but I reference to the install.sh and the day before yesterday I tried use install.sh, same error.(I have )
php artisan clear-compiled
PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class log does not exist' in /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php:734
Stack trace:0 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container. php(734): ReflectionClass->__construct('log')
1 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container. php(629): Illuminate\Container\Container->build('log', Array)
2 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/Applicati on.php(697): Illuminate\Container\Container->make('log', Array)
3 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container. php(849): Illuminate\Foundation\Application->make('Psr\Log\LoggerI...')
4 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container. php(804): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
5 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container. php(775): Illuminate\Container\Con in /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 734
Script php artisan clear-compiled handling the post-install-cmd event returned with error code 255
- Include any additional information you can find in
app/storage/logsand your webserver's logs.
none
this is the first error i encountered
Appreciate it if anyone can help me out.
-Simon
Can you check and make sure there is no extra whitespace in your .env file? No trailing spaces, no empty lines at the bottom, etc. Also check that anything in double or single quotes there has the appropriate closing quotes. We usually see this when something is donked in the .env file
@snipe Great! Thanks for your suggestions. Yes, I did make a mistakes on .env file.
On "MAIL_FROM_NAME" setting field, I should write as 'Asset Admin'. At first i forgot to use quotes.
Thanks again.
Thanks for letting us know that worked. I've updated the documentation so that others may benefit:
https://snipe-it.readme.io/v3.0/docs/common-issues#fatal-error-uncaught-exception-reflectionexception
@snipe One thing that could be done to avoid this issue would be for the .env.example file's MAIL_FROM_NAME entry to have a name with space and quotes to indicate quotes being necessary.
By that I mean instead of:
MAIL_FROM_NAME=Snipe-IT
It could be set to this:
MAIL_FROM_NAME='Snipe-IT Asset Management'
I ran into this issue myself and resolved it the same way @WaGuan did.

Can anyone help me with this error in webhost. I checked the db name and and username, it isn't a problem.
@annsmarmalarki Hi there - this issue is closed. Please create a new issue and fill in all of the questions in the new issue form. (When you reply to old, closed threads, it sends an email notification to everyone who ever participated in it, which can be pretty annoying to have happen on a thread that's been resolved for a while.)
You'll need to check that anything with spaces or special characters in it is enclosed in quotes in your .env (not just the db username/password), per the documentation. https://snipe-it.readme.io/docs/installation-issues#section-fatal-error-uncaught-exception-reflectionexception-with-message-class-log-does-not-exist
Most helpful comment
Can you check and make sure there is no extra whitespace in your .env file? No trailing spaces, no empty lines at the bottom, etc. Also check that anything in double or single quotes there has the appropriate closing quotes. We usually see this when something is donked in the .env file