Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"php artisan clear-compiled" is Fatal #3382

Closed
2 tasks done
rela1470 opened this issue Mar 3, 2017 · 1 comment
Closed
2 tasks done

"php artisan clear-compiled" is Fatal #3382

rela1470 opened this issue Mar 3, 2017 · 1 comment

Comments

@rela1470
Copy link

rela1470 commented Mar 3, 2017

Expected Behavior (or desired behavior if a feature request)

I want to Install Dependencies...
but, composer install is fatal error.
https://snipe-it.readme.io/docs/install-dependencies

Actual Behavior

su - nginx
cd /var/httpdocs/
git clone https://github.com/snipe/snipe-it
cd snipe-it
curl -sS https://getcomposer.org/installer | php
php composer.phar install --no-dev --prefer-source

php artisan clear-compiled
PHP Fatal error: Uncaught ReflectionException: Class log does not exist in /var/httpdocs/snipe-it/vendor/laravel/framework/src/Illuminate/Container/Container.php:734
Stack trace:
#0 /var/httpdocs/snipe-it/vendor/laravel/framework/src/Illuminate/Container/Container.php(734): ReflectionClass->__construct('log')
#1 /var/httpdocs/snipe-it/vendor/laravel/framework/src/Illuminate/Container/Container.php(629): Illuminate\Container\Container->build('log', Array)
#2 /var/httpdocs/snipe-it/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(697): Illuminate\Container\Container->make('log', Array)
#3 /var/httpdocs/snipe-it/vendor/laravel/framework/src/Illuminate/Container/Container.php(849): Illuminate\Foundation\Application->make('log')
#4 /var/httpdocs/snipe-it/vendor/laravel/framework/src/Illuminate/Container/Container.php(804): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 /var/httpdocs/snipe-it/vendor/laravel/framework/src/Illuminate/Container/Container.php(773): Illuminate\Container\Co in /var/httpdocs/snipe-it/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:

I tred init .env

rm -rf .env
cp -a .env.example .env
php composer.phar install --no-dev --prefer-source

.... same error!


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

  • Version of Snipe-IT you're running
    v3.6.4

  • What OS and web server you're running Snipe-IT on

cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)

nginx -v
nginx version: nginx/1.10.2

php -v
PHP 7.1.2 (cli) (built: Feb 15 2017 08:36:40) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

php-fpm -v
PHP 7.1.2 (fpm-fcgi) (built: Feb 15 2017 08:39:14)
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

mysql --version
mysql Ver 15.1 Distrib 5.5.52-MariaDB, for Linux (x86_64) using readline 5.1

  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)
    git clone

  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error
    can not

  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error
    can not

  • If a stacktrace is provided in the error, include that too.
    can not

  • Any errors that appear in your browser's error console.
    can not

  • Confirm whether the error is reproduceable on the demo.
    can not

  • Include any additional information you can find in app/storage/logs and your webserver's logs.
    empty

  • Include what you've done so far in the installation, and if you got any error messages along the way.
    empty

  • Indicate whether or not you've manually edited any data directly in the database
    empty

@rela1470
Copy link
Author

rela1470 commented Mar 5, 2017

I was missing install PDO.

yum --enablerepo=remi-php71 install php-pdo

fixed!

Can you add that to this document?
https://snipe-it.readme.io/docs/install-dependencies

@rela1470 rela1470 closed this as completed Mar 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant