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
When using a helper {{ route('anyroute') }} without the necessary route parameters (by accident), Laravel throws a UrlGenerationException, sending a log line to stderr that breaks the server.
The issue is the datetime string at the beginning, which getRequestPortFromLine is not prepared to parse. In Laravel 10, the same line does not display that datetime.
The problem only occurs when using LOG_CHANNEL=stderr.
Laravel Version
11.32.0
PHP Version
8.2.25
Database Driver & Version
No response
Description
When using a helper
{{ route('anyroute') }}
without the necessary route parameters (by accident), Laravel throws aUrlGenerationException
, sending a log line to stderr that breaks the server.The issue is the datetime string at the beginning, which
getRequestPortFromLine
is not prepared to parse. In Laravel 10, the same line does not display that datetime.The problem only occurs when using
LOG_CHANNEL=stderr
.Steps To Reproduce
Install Laravel 11
composer create-project --prefer-dist laravel/laravel laravel-11 cd laravel-11
Change LOG_CHANNEL to stderr
# .env LOG_CHANNEL=stderr
Create routes with any parameter
Create their views with routes missing required parameters
Run the server
Access any route with parameter
Server will throw an error, exit to the command line, and stop working
The text was updated successfully, but these errors were encountered: