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

installation error #299

Closed
cpalop opened this issue Jan 28, 2017 · 17 comments
Closed

installation error #299

cpalop opened this issue Jan 28, 2017 · 17 comments

Comments

@cpalop
Copy link

cpalop commented Jan 28, 2017

I've just followed the steps for manual installation and when i'm trying to install it get this error

Warning: require(/home/u771664184/public_html/attendize/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /home/u771664184/public_html/attendize/bootstrap/autoload.php on line 17
PHP Fatal error: require(): Failed opening required '/home/u771664184/public_html/attendize/bootstrap/../vendor/autoload.php' (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/u771664184/public_html/attendize/bootstrap/autoload.php on line 17

@andresnijder
Copy link

try php composer install

@daveearley
Copy link
Contributor

Did you get this working? as @andresnijder said, it looks like you haven't run composer

@cpalop
Copy link
Author

cpalop commented Feb 1, 2017

I've tried but i get this error "could not open input file: composer"

@andresnijder
Copy link

@cpalop first you need to install Composer. Just install it in the root of the project.
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('SHA384', 'composer-setup.php') === '55d6ead61b29c7bdee5cccfb50076874187bd9f21f65d8991d46ec5cc90518f447387fb9f76ebae1fbbacf329e583e30') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');"
When finished, run php composer.phar install

@cpalop
Copy link
Author

cpalop commented Feb 2, 2017

Ive installed composer on project folder and the run the attendize installation, got this error

$ php artisan attendize:install PHP Warning: require(/var/www/html/attendize/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/attendize/bootstrap/autoload.php on line 17 PHP Fatal error: require(): Failed opening required '/var/www/html/attendize/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/attendize/bootstrap/autoload.php on line 17

@andresnijder
Copy link

Did you run php composer.phar install before running artisan?

@cpalop
Copy link
Author

cpalop commented Feb 2, 2017

yes it's intalled but then run artisan and got this
PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class log does not exist' in /var/www/html/attendize/bootstrap/cache/compiled.php:1355 Stack trace: #0 /var/www/html/attendize/bootstrap/cache/compiled.php(1355): ReflectionClass->__construct('log') #1 /var/www/html/attendize/bootstrap/cache/compiled.php(1309): Illuminate\Container\Container->build('log', Array) #2 /var/www/html/attendize/bootstrap/cache/compiled.php(1871): Illuminate\Container\Container->make('log', Array) #3 /var/www/html/attendize/bootstrap/cache/compiled.php(1410): Illuminate\Foundation\Application->make('Psr\\Log\\LoggerI...') #4 /var/www/html/attendize/bootstrap/cache/compiled.php(1387): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter)) #5 /var/www/html/attendize/bootstrap/cache/compiled.php(1373): Illuminate\Container\Container->getDependencies(Array, Array) #6 /var/www/html/attendize/bootstrap/cache/compiled.php(1309): Illuminate\Container\Container->build('App\\Exceptions\\...', Array) #7 /var/www/html/att in /var/www/html/attendize/bootstrap/cache/compiled.php on line 1355

@andresnijder
Copy link

make sure that composer installed all packages, check for any errors in the output.
try to remove: /var/www/html/attendize/bootstrap/cache/compiled.php
then please run php composer.phar dump-autoload
and php artisan optimize

@cpalop
Copy link
Author

cpalop commented Feb 2, 2017

I did it and this happen

$ sudo rm /var/www/html/attendize/bootstrap/cache/compiled.php $ cd /var/www/html/attendize $ php composer.phar dump-autoload Generating autoload files $ php artisan optimize PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class log does not exist' in /var/www/html/attendize/vendor/laravel/framework/src/Illuminate/Container/Container.php:734 Stack trace: #0 /var/www/html/attendize/vendor/laravel/framework/src/Illuminate/Container/Container.php(734): ReflectionClass->__construct('log') #1 /var/www/html/attendize/vendor/laravel/framework/src/Illuminate/Container/Container.php(629): Illuminate\Container\Container->build('log', Array) #2 /var/www/html/attendize/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(697): Illuminate\Container\Container->make('log', Array) #3 /var/www/html/attendize/vendor/laravel/framework/src/Illuminate/Container/Container.php(849): Illuminate\Foundation\Application->make('Psr\\Log\\LoggerI...') #4 /var/www/html/attendize/vendor/laravel/framework/src/Illuminate/Container/Container.php(804): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter)) #5 /var/www/html/attendize/vendor/laravel/framework/src/Illuminate/Con in /var/www/html/attendize/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 734

@andresnijder
Copy link

could you post the contents of you .env file. if some value contains a space, it will break and trigger the error

@cpalop
Copy link
Author

cpalop commented Feb 2, 2017

You were right, there was a space on .env

Success! You can now run Attendize

Now i navigate the the url where is installed and get this

Sorry, the page you are looking for could not be found.

@andresnijder
Copy link

make sure 'public' is your webroot. edit you vhost conf

@cpalop
Copy link
Author

cpalop commented Feb 2, 2017

I'm using amazon linux and have everything on /var/www/html attendize is there installed

@andresnijder
Copy link

locate /etc/httpd/conf/httpd.conf
change DocumentRoot "/var/www/html" to DocumentRoot "/var/www/html/public"
restart Apache

@cpalop
Copy link
Author

cpalop commented Feb 2, 2017

nothing still getting the same error, and restarted mysql also. Repeated the same process and getting the same error

Sorry, the page you are looking for could not be found.

Whoops, looks like something went wrong.

@andresnijder
Copy link

Check the error logs and the Laravel logs located at storage/logs
Also check the permissions of the storage directory

@jeremyquinton
Copy link
Contributor

If anyone is experiencing similar issues please see the new installation guide https://www.attendize.com/getting_started.html or try the troubleshooting guide

https://www.attendize.com/troubleshooting.html

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

4 participants