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: There are no commands defined in the "tracker" namespace. #43

Closed
AMAFsoft opened this issue Oct 29, 2014 · 12 comments
Closed

Error: There are no commands defined in the "tracker" namespace. #43

AMAFsoft opened this issue Oct 29, 2014 · 12 comments

Comments

@AMAFsoft
Copy link

I get that error when i trayed to create the UA Parser regex file using the command : "php artisan tracker:updateparser".

@antonioribeiro
Copy link
Owner

Looks like the ServiceProvider is not loaded and/or enabled is still false on config.

@AMAFsoft
Copy link
Author

How to fix this please?

@AMAFsoft
Copy link
Author

I already add this line : [ 'PragmaRX\Tracker\Vendor\Laravel\ServiceProvider', ] on app.php file.

@antonioribeiro
Copy link
Owner

Run

php artisan config:publish pragmarx/tracker

And edit the file to enable it:

'enabled' => true,

@AMAFsoft
Copy link
Author

I get this error :
{"error":{"type":"ReflectionException","message":"Class auth does not exist","file":"[domaine]\vendor\laravel\framework\src\Illuminate\Container\Container.php","line":504}}

@antonioribeiro
Copy link
Owner

You added

'PragmaRX\Tracker\Vendor\Laravel\ServiceProvider'

At the end of your providers list?

@AMAFsoft
Copy link
Author

Yes i do.

@antonioribeiro
Copy link
Owner

That's strange because this command is probably failing in Tracker:

$app->make($this->config->get('authentication_ioc_binding'));

Which means Auth in your Laravel app is still not registered at the time you load Tracker service provider.

@AMAFsoft
Copy link
Author

Oh sorry the problem is in my app.php file , i commented this line by mistake : 'Illuminate\Auth\AuthServiceProvider',

@AMAFsoft
Copy link
Author

Thank you very much sir, you helped me alot

@antonioribeiro
Copy link
Owner

Nice! No problem.

@arunkspkm
Copy link

I get an error "PHP Fatal error: Class 'PragmaRX\Tracker\Vendor\Laravel\ServiceProvider' not found in /var/www/storage/framework/compiled.php on line 6391"

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