T
T
theEternalStudent2016-07-12 16:57:27
Laravel
theEternalStudent, 2016-07-12 16:57:27

Doesn't run through embedded server on ubuntu 16.04 and php 7, what's wrong?

Used to work on ubuntu 14.04, after installing 16.04 the project doesn't run on php 7 (was php5 before). In the terminal, when launched via php artisan serve, the following errors are generated:
PHP Fatal error: Uncaught ReflectionException: Class log does not exist in /media/dexter/DATA/Desktop/site (backup)/vendor/laravel/framework/src/Illuminate/ Container/Container.php:741
Stack trace:
#0 /media/dexter/DATA/Desktop/site (backup)/vendor/laravel/framework/src/Illuminate/Container/Container.php(741): ReflectionClass->__construct ('log')
#1 /media/dexter/DATA/Desktop/site (backup)/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\Container\Container->build( 'log', Array)
#2 /media/dexter/DATA/Desktop/site (backup)/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Container->make('log', Array )
#3 /media/dexter/DATA/Desktop/site (backup)/vendor/laravel/framework/src/Illuminate/Container/Container.php(842): Illuminate\Foundation\Application->make('log')
#4 /media/dexter/DATA/Desktop/site (backup)/vendor/lara in /media/dexter/DATA/Desktop/site (backup)/vendor/laravel/framework/src/Illuminate/Container/Container. php on line 741

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
theEternalStudent, 2016-07-13
@theEternalStudent

Installed ubuntu 14.04, everything worked in it

G
GavriKos, 2016-07-12
@GavriKos

Well, the most obvious:
1) Check where you have the log class, or if it is a class from the standard library - check if it was renamed in the new version
2) Remove spaces and Cyrillic from the path

V
Vyacheslav Plisko, 2016-07-12
@AmdY

Check .env for values ​​with spaces outside of quotes.
Make a composer update so that the vendor catches up with the php version.
Is the pdo_mysql extension installed.
Look at the logs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question