You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[2024-11-28 09:40:33] local.ERROR: call_user_func(): Argument #1 ($callback) must be a valid callback, no array or string given {"exception":"[object] (TypeError(code: 0): call_user_func(): Argument #1 ($callback) must be a valid callback, no array or string given at /var/www/statamic-cms/statamic/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:304)
I'd suggest that some of the blame lies with Laravel as the Illuminate\Session\SessionServiceProvider is responsible for attaching a Illuminate\Contracts\Cache\Factory instance but it only does this on the Illuminate\Session\Middleware\StartSession middleware specifically (in Illuminate\Session\SessionServiceProvider and hence it's missed from Statamic\Http\Middleware\CP\StartSession.
How to reproduce
Enable session blocking with the config session.block set to true and proceed to the admin panel.
Bug description
The admin panel throws an error when session blocking is enabled, see https://laravel.com/docs/11.x/session#session-blocking
I'd suggest that some of the blame lies with Laravel as the
Illuminate\Session\SessionServiceProvider
is responsible for attaching aIlluminate\Contracts\Cache\Factory
instance but it only does this on theIlluminate\Session\Middleware\StartSession
middleware specifically (inIlluminate\Session\SessionServiceProvider
and hence it's missed fromStatamic\Http\Middleware\CP\StartSession
.How to reproduce
Enable session blocking with the config
session.block
set totrue
and proceed to the admin panel.Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
The text was updated successfully, but these errors were encountered: