Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

webrobert's avatar

BadMethodCallException Method Illuminate\Auth\RequestGuard::getRecallerName does not exist.

So this is a jetstream install. I’m having a bit of a head scratcher. I figured someone knows a quick fix..

Circumstance,

app works fine.

On mobile safari however when clicking from a bookmark on the Home Screen to a auth protected page (user remembered). It gives this error if the page is stale. Refreshing the page it goes away.

So it seems like the session is missing and it doesn’t know how to cycle thru and create a new one?

0 likes
5 replies
webrobert's avatar

@Sinnbeck,

Interesting. I am running 8.73.2 Maybe downgrading as he suggests would work. Seems it is probably a bug. I'm going to leave it for now. It's a personal app anyway.

1 like
Sinnbeck's avatar

@webrobert yeah seems like a new bug. Sadly I cannot recreate it to test what goes wrong. Hopefully a future release will fix it

bobwurtz's avatar

I am getting this error now as well.

BadMethodCallException: Method Illuminate\Auth\RequestGuard::getRecallerName does not exist. in /var/task/vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php:113

My experience is slightly different, though. I just used Laravel Shift to update from 8.x to 9.x. My app works fine for everyone who is already logged in, but when I tried a new login I got this error in my logging. The login attempt simply takes my back to the login page over and over again. When my credentials are wrong, it tells me they are wrong. But then sometimes I can login without issue and no errors are reported. Very strange. Any additional thoughts about what could be going on here?

Also, this error started showing up at the same time:

BadMethodCallException: Cannot serialize Symfony\Component\Routing\CompiledRoute in /var/task/vendor/symfony/routing/CompiledRoute.php:71

I am not sure if they are related. Here is the first few lines of the stack trace:

BadMethodCallException: Cannot serialize Symfony\Component\Routing\CompiledRoute in /var/task/vendor/symfony/routing/CompiledRoute.php:71
Stack trace:
#0 /var/task/vendor/rollbar/rollbar/src/Utilities.php(145): Symfony\Component\Routing\CompiledRoute->serialize()
#1 /var/task/vendor/rollbar/rollbar/src/Utilities.php(105): Rollbar\Utilities::serializeObject(Object(Symfony\Component\Routing\CompiledRoute), NULL, Array, -1, 2)
#2 /var/task/vendor/rollbar/rollbar/src/Utilities.php(159): Rollbar\Utilities::serializeForRollbar(Object(Illuminate\Routing\Route), NULL, Array, -1, 2)
#3 /var/task/vendor/rollbar/rollbar/src/Utilities.php(105): Rollbar\Utilities::serializeObject(Object(Illuminate\Routing\Route), NULL, Array, -1, 1)
#4 /var/task/vendor/rollbar/rollbar/src/Utilities.php(117): Rollbar\Utilities::serializeForRollbar(Array, NULL, Array, -1, 1)

It looks like an issue with Rollbar (my error reporting system) not Laravel. But I thought I'd mention it because in my upgrade to 9.x, Shift said I needed to run

composer require symfony/mailgun-mailer symfony/http-client

because Laravel 9 transitioned from SwiftMailer to Symfony Mailer. While this transition should be relatively seamless and Shift automates any tedious changes, there are some changes which are not reliably automated. And now I'm getting an error in Symfony.

bobbbbb's avatar
Method Illuminate\Auth\RequestGuard::getRecallerName does not exist.

Also getting this with Laravel 9 upgrade. On Laravel vapor using dynamodb for sessions. Only ever happens on the first request for an already logged in user. Refreshing the page error never comes back. Cannot quite find what is going on. @.bobwurtz just noticed you are on Vapor too. Maybe vapor related

in /var/task/vendor/laravel/framework/src/Illuminate/Session/Middleware/AuthenticateSession.php

$passwordHash = explode('|', $request->cookies->get($this->auth->getRecallerName()))[2] ?? null;

Please or to participate in this conversation.