antonioribeiro / tracker

Laravel Stats Tracker
MIT License
2.9k stars 596 forks source link

Undefined method Tracker::getSessionData() #218

Open sebdesign opened 8 years ago

sebdesign commented 8 years ago

Hello,

I ecountered the following exception while checking for the authenticated user.

This happens on the registerUserCheckCallback method of service provider. I've switched the router.before event to the Illuminate\Routing\RoutesMatched because it didn't work in laravel 5.3.

FatalThrowableError in Tracker.php line 67:
Call to undefined method PragmaRX\Tracker\Tracker::getSessionData()
in Tracker.php line 67
at Tracker->checkCurrentUser() in ServiceProvider.php line 584
at ServiceProvider->PragmaRX\Tracker\Vendor\Laravel\{closure}(object(RouteMatched))
at call_user_func_array(object(Closure), array(object(RouteMatched))) in Dispatcher.php line 221
at Dispatcher->fire('Illuminate\Routing\Events\RouteMatched') in Router.php line 616
at Router->dispatchToRoute(object(Request)) in Router.php line 596
at Router->dispatch(object(Request)) in Kernel.php line 267
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Debugbar.php line 51
at Debugbar->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 46
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 104
at Pipeline->then(object(Closure)) in Kernel.php line 149
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 116
at Kernel->handle(object(Request)) in index.php line 53
deivide commented 7 years ago

Same error here with version 2.0.10 I use Laravel 4.2