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

Error on Laravel 5 : php artisan serve #349

Open
patriciorasquetti opened this issue Jul 22, 2016 · 5 comments
Open

Error on Laravel 5 : php artisan serve #349

patriciorasquetti opened this issue Jul 22, 2016 · 5 comments

Comments

@patriciorasquetti
Copy link

Hi everyone, I'm Patricio from Argentina.
I'm new in Laravel 5, and I'm having an error when I try to excecute php artisan serve.
The problem appeared after trying to unsuccessfully install compose require intervention/image, with the following error : Using version ^2.3 for intervention/image
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files

Illuminate\Foundation\ComposerScripts::postUpdate
php artisan optimize
[ErrorException]

The use statement with non-compound name 'Image' has no effect

Script php artisan optimize handling the post-update-cmd event returned with an error

Installation failed, reverting ./composer.json to its original content.

[RuntimeException]

Error Output:

Now when I try to run php artisan serve, I get this error: (Please can anyone help me?)
[Symfony\Component\Debug\Exception\FatalThrowableError]

Parse error: syntax error, unexpected ';', expecting identifier (T_STRING) or function (T_FUNCTION) or const (T_CONST) or \ (T_NS_SEPARATOR)

The problem is that the error does not describe where that typo is. Does that wrong installation have something to do with the artisan error, or you can tell for sure that is it just a typo somewhere coused by me according to that error?
Thanks in advance.-

@patriciorasquetti
Copy link
Author

Problem solved, regards.-

@mmguide2003
Copy link

Be helpful to state how you solved this. Because I have a php artisan error that is non-specific, so other than searching through a vast amount of files, how do you find it?

@patriciorasquetti
Copy link
Author

Hi, it was long time ago now. But I remember it was a sintax error in one of my controllers.
Regards.-

@mmguide2003
Copy link

Thanks. Easy way to find the error is in the laravel.log, which i only just realised.

@EvgenyVetrov
Copy link

this version not supported!

new version here:
https://github.com/LaravelRUS/SleepingOwlAdmin

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

3 participants