lumberjack icon indicating copy to clipboard operation
lumberjack copied to clipboard

Database session - "Call to undefined method App\Session\Drivers\DatabaseSessionDriver::start()"

Open tcunhagwm opened this issue 5 months ago • 1 comments

As per documentation, i am trying to implement a database driver due to issues with WPEngine, but i get the following error:

Image

Deprecation notices related: Image

Configuration i set as shown below:

app.php Image

SessionProvider.php Image

DatabaseSessionProvider.php Image

session.php Image

Already tested troubleshoot mode (all plugins disabled) but the issue remains. Any help debugging the issue is welcome.

tcunhagwm avatar Aug 01 '25 10:08 tcunhagwm

Hi @tcunhagwm I've not had time to dig deep into this, but I think the warnings you are seeing might be because your DatabaseSessionDriver.php file needs to have return types and typed parameters. For example:

public function read ($session_id) {}

should become:

public function read (string $session_id): string|false {}

This is something we are missing in the documentation - I will make a note to address it.

AliceKLWilliams avatar Aug 20 '25 14:08 AliceKLWilliams