-
Notifications
You must be signed in to change notification settings - Fork 11k
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
[8.72.0] Method Illuminate\Auth\RequestGuard::getRecallerName does not exist. #39705
Comments
@relaypilot I tried to replicate your problem but I could not, could you look into whats the different between this and your code? I followed your guide, are you using any additional packages? |
@netpok I am also using Laravel Jetstream
|
Experiencing the same with 8.72 since our morning's upgrade. Jetstream as well, Livewire. I'm looking into it at the moment |
I did not have much time to look into this, I'm 99% sure the package has a bug in it (or at least it tries to work around a bug). The main problem is that Jetstram replaces AuthenticatesSession middleware which in turn will use the default guard name. For now the fix was reverted. |
@netpok if we can identify that bug we might have a better understanding at how those changes impacted it. And how to avoid that. |
I'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
|
The issue seems to be fixed for me when upgrading |
I am getting the same error. here's my stack trace.. I am going to update to
|
I am now getting this error after upgrading to Laravel 9.x yesterday from 8.x. I am now experiencing all kinds of strange behavior when users attempt to login that I never had before the upgrade. Sometimes the page throws a 500 error. And then sometimes it just keeps returning users to the login page. I am using a custom middleware to manage access to certain parts of the site. Here is the stack trace:
I am not sure if this is related, but I'm now getting this error as well:
This looks like a Rollbar issue but it started showing up at the same time so I thought I'd mention it. Does anyone have any insight into what could be happening here? |
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. |
FYI, this is still happening. I recently built a fresh Laravel Application with Jetstream + Livewire.
Stack Trace
|
...same thing with Laravel 8.83.13 / Inertia 0.5.4 / Jetstream 2.8.1 / Sanctum 2.15.1 😕 composer requires:
trace:
|
I did some investigations this is happened when using Guards other than the default SessionGuard which implements the StatefulGuard RequestGuard and TokenGuard do not implements the StatefulGuard which include the attempt methods. The solution for now is to use a custom guard the implements the StatefulGuard hoping that is new versions some one fixes this |
Description:
Upgrade from Laravel
v8.71.0
to8.72.0
seems to contain a breaking change insrc/Illuminate/Routing/SortedMiddleware.php
(line 104 to line 111)framework/src/Illuminate/Routing/SortedMiddleware.php
Lines 104 to 111 in 5168f85
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.
404labfr/laravel-impersonate#145
Steps To Reproduce:
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.
The text was updated successfully, but these errors were encountered: