framework: [8.72.0] Method Illuminate\Auth\RequestGuard::getRecallerName does not exist.
- Laravel Version: 8.72.0
- PHP Version: 8.0.3
- Database Driver & Version: MySQL5.7.24
Description:
Upgrade from Laravel v8.71.0 to 8.72.0 seems to contain a breaking change in src/Illuminate/Routing/SortedMiddleware.php (line 104 to line 111)
https://github.com/laravel/framework/compare/v8.71.0...v8.72.0
Trying to impersonate a User now returns a Session Guard error: Method Illuminate\Auth\RequestGuard::getRecallerName does not exist.
https://github.com/404labfr/laravel-impersonate/issues/145
Steps To Reproduce:
- Fresh install of Laravel
- Install third-party Impersonate package https://github.com/404labfr/laravel-impersonate
- Impersonate a user
- Result: Logged out of the session (back to login page)
This issue should be closed if you think the issue lays with that package (that hasn’t been updated recently), but I thought it was worth mentioning as it could potentially affect other official packages using Sessions, like Jetstream or Breeze.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (6 by maintainers)
@peterfox Got the same problem with Jetstream/Inertia stack on Laravel 9. PR #41429 solves the problem in my case.
I’m oddly receiving this at the moment. It happens with a Jetstream/Livewire app. It happens after not using the site for a while but still being logged in, you go to load a page and it fails. Refreshing the page again quickly after is then fine. Unsure how to demo the issue as it’s fairly specific.
@PhiloNL It was fixed in
8.73.1after the changes added by this PR were reverted: https://github.com/laravel/framework/commit/fbdc9723353fb0ab17039fd3d0f470059bc4f3b7I’m experiencing the same, although I haven’t found the issue just yet. It happens quite randomly 🤷♂️ I’m still looking for the cause. If someone has some pointers on where to look let me know 🙌
Stacktrace:
Edit I’ve been able to replicate the issue via the following steps:
session.phpconfig, set'expire_on_close' => true,