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

Clean installation not working #229

Closed
svenpool opened this issue Mar 23, 2016 · 12 comments
Closed

Clean installation not working #229

svenpool opened this issue Mar 23, 2016 · 12 comments

Comments

@svenpool
Copy link

Hi,

I'm very curious about the firefly-iii program. So I created a VM, installed al the requirements and software needed. After a few attempts I finally got this far, but now I'm stuck. I hope you can help me out. After the command 'composer install' the scripts fails with the following message;

[root@finance firefly-iii]# composer install
> php artisan clear-compiled
PHP Fatal error:  Uncaught ReflectionException: Class log does not exist in /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php:738
Stack trace:
#0 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(738): ReflectionClass->__construct('log')
#1 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(633): Illuminate\Container\Container->build('log', Array)
#2 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(687): Illuminate\Container\Container->make('log', Array)
#3 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(853): Illuminate\Foundation\Application->make('log')
#4 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(808): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(777): Il in /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 738
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error


  [RuntimeException]
  Error Output: PHP Fatal error:  Uncaught ReflectionException: Class log does not exist in /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php:738
  Stack trace:
  #0 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(738): ReflectionClass->__construct('log')
  #1 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(633): Illuminate\Container\Container->build('log', Array)
  #2 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(687): Illuminate\Container\Container->make('log', Array)
  #3 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(853): Illuminate\Foundation\Application->make('log')
  #4 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(808): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
  #5 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(777): Il in /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 738


install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...

I've tried a git pull, perhaps I was missing files. I even deleted the previous git clone and started over, but I got the same message.

Looking forward to hear from you.

Regards,
Sven

@JC5
Copy link
Member

JC5 commented Mar 23, 2016

Hi! I'm back from holiday on Tuesday and will look into it!

On Wed, Mar 23, 2016, 16:21 svenpool notifications@github.com wrote:

Hi,

I'm very curious about the firefly-iii program. So I created a VM,
installed al the requirements and software needed. After a few attempts I
finally got this far, but now I'm stuck. I hope you can help me out. After
the command 'composer install' the scripts fails with the following message;

I've tried a git pull, perhaps I was missing files. I even deleted the
previous git clone and started over, but I got the same message.

Looking forward to hear from you.

[root@finance firefly-iii]# composer install

php artisan clear-compiled
PHP Fatal error: Uncaught ReflectionException: Class log does not exist in /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php:738
Stack trace:
#0 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(738): ReflectionClass->__construct('log')
#1 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(633): Illuminate\Container\Container->build('log', Array)
#2 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(687): Illuminate\Container\Container->make('log', Array)
#3 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(853): Illuminate\Foundation\Application->make('log')
#4 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(808): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(777): Il in /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 738
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error

[RuntimeException]
Error Output: PHP Fatal error: Uncaught ReflectionException: Class log does not exist in /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php:738
Stack trace:
#0 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(738): ReflectionClass->__construct('log')
#1 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(633): Illuminate\Container\Container->build('log', Array)
#2 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(687): Illuminate\Container\Container->make('log', Array)
#3 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(853): Illuminate\Foundation\Application->make('log')
#4 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(808): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(777): Il in /var/www/html/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 738

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] []...

Regards,
Sven


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#229

@JC5
Copy link
Member

JC5 commented Mar 28, 2016

What does php -v say?

@svenpool
Copy link
Author

[root@finance ~]# php -v
PHP 7.0.4 (cli) (built: Mar  5 2016 01:22:48) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies

@JC5
Copy link
Member

JC5 commented Mar 29, 2016

Alright, this is strange. I can't seem to reproduce your problem. Try the following:

rm -rf vendor/ composer.lock
composer update --no-dev --no-scripts
composer update --no-dev

@svenpool
Copy link
Author

Tried the commands, but I get the same error message.

I will delete the firefly-iii directory and try a fresh installation.

Could it be that I'm missing a PHP plugin?

@JC5
Copy link
Member

JC5 commented Mar 29, 2016

Possibly, but I am not sure which one it would be.

@svenpool
Copy link
Author

Hi,

Perhaps voor your installation page, if you try to install on CentOS.

#For the latest PHP7 version: 
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
#Install the programs needed
yum install apache mysql mysql-server php70w php70w-mbstring php70w-mcrypt php70w-bcmath php70w-gd php70w-intl
#Install composer
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

I've created a new VM (CentOS 6.5), installed apache, php7 (php 5.6 doesn't work) and composer. And again I stumble across the same error message.

The command composer install, makes sure it downloads files but with the php artisan command it goes wrong.

@JC5
Copy link
Member

JC5 commented Mar 29, 2016

Could you try this?

yum install php70w-pdo

@svenpool
Copy link
Author

Thanks, it was missing php70w-pdo and php70w-xml, after installing these 2 it finally run throug the composer install command.

Now when I try to run the next step I get the error message:

[root@localhost firefly-iii]# php artisan migrate --seed --env=production

     Application In Production!     

 Do you really wish to run this command? [y/N] (yes/no) [no]:
 > y

  [PDOException]
  could not find driver

@JC5
Copy link
Member

JC5 commented Mar 30, 2016

There is a DB_CONNECTION in your .env file which is most likely mysql. Find and install a php-pdo-mysql package (or something similar) and install that one. The error is caused by PHP not being able to connect (over PDO) to your DB_CONNECTION.

If you have found the package, reply with the name and I'll expand the installation instructions.

@svenpool
Copy link
Author

The final plugin that was missing was php70w-mysql.x86_64;

And i needed to allow mod_rewrite in the apache conf :)

It works now! Thanks for you help! I really appreciate it.

@JC5
Copy link
Member

JC5 commented Mar 30, 2016

You're welcome! Thanks for tackling the CentOS installation. I'll expand the installation guide for future use.

I'm closing the issue, let me know if there's anything I can help with.

@JC5 JC5 closed this as completed Mar 30, 2016
JC5 added a commit that referenced this issue Apr 8, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants