2

Not a single command working when I type php artisan "command".

Last login: Mon Feb 16 20:17:50 on ttys000
Pro:~ nzrv$ cd ~/Sites/t
Pro:t nzrv$ php artisan --version
Pro:t nzrv$ php artisan make:controller PagesController
Pro:t nzrv$ php artisan
Pro:t nzrv$ 

Log files are empty, nothing related to artisan.

Problem not present on a newly installed apps. Output when I run composer update command:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
Script php artisan clear-compiled handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output:

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [packages1] ... [packagesN]

It seems composer can't run clear-compiled because of not working artisan and I don't know where to look.

Any help would be appreciated.

17
  • Do you get a more descriptive error when running php artisan clear-compiled on its own? Commented Feb 16, 2015 at 18:40
  • it's completely ignoring me Commented Feb 16, 2015 at 18:41
  • Does php artisan --version work? Commented Feb 16, 2015 at 18:42
  • nope, nothing works. Just thinks about one second and thats it. Commented Feb 16, 2015 at 18:44
  • But the framework itself works? Commented Feb 16, 2015 at 18:46

3 Answers 3

1

Today I have faced this issue when running artisan command. While searching what is the problem to not let artisan command to be executed saw that for test purpose only written exit() exist in my routes folder in web.php file. And after disabling exit() everything worked as waited. I think that is weird issue but this solved my problem.

Sign up to request clarification or add additional context in comments.

Comments

0

I can't do comments. So, take care this things:

Comments

0

It was an issue with config file. I've installed breadcrumbs package and it's config was causing it.

return array(
    'separator' => '&nbsp;<img src="'.asset('img/breadcrumbsDivider.gif').'">&nbsp;',
    'view'  => 'frontend/breadcrumbs',
    'min_depth' => 2,
    'last_linkable' => false
);

I've changed it with following code and it started working.

return array(
    'separator' => '&nbsp;<img src="/img/breadcrumbsDivider.gif">&nbsp;',
    'view'  => 'frontend/breadcrumbs',
    'min_depth' => 2,
    'last_linkable' => false
);

There is was not difference to my application but not for artisan.

1 Comment

which config file exactly?can you elaborate. Facing the same issue,artisan works in other projects but not in one of them.no response at all.How to figure out what might be blocking it?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.