-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
ErrorException #53175
Comments
I'm getting this error after creating a fresh laravel project |
I have the exact same error with the same context. While not ideal, you can work around the issue by running the internal PHP server directly while waiting for the fix: |
Same here and then
|
Can anyone with Windows update -PHP_CLI_SERVER_WORKERS=4
+PHP_CLI_SERVER_WORKERS=1 |
crynobone
why does that cause an issue ? |
fixes #53175 Signed-off-by: Mior Muhammad Zaki <[email protected]>
thanks it works |
I solved it by changing code: vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php:368
// return Carbon::createFromFormat('D M d H:i:s Y', $matches[1]);
|
I got same error to when create new laravel project |
i am also getting same error with fresh laravel install. when i changed .env PHP_CLI_SERVER_WORKERS value 4 to 1 then its works. my question is why this error occurred while fresh laravel install? |
pareciera ser problema de versiones, sin embargo al usar el truco lo que hacemos es bajar la cantidad de workers comprometiendo el rendimiento, es mucho mejor alternativa modificar el metodo getDateFromLine($line) en el archivo ServeCommand.php, al fina en el return reemplazalo por: if (isset($matches[1])) {
|
its works. thnks ❤ |
its works, Thanks man |
Laravel Version
Laravel Framework 11.28.0
PHP Version
PHP 8.2.12 (cli)
Database Driver & Version
No response
Description
Undefined array key 1
at vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php:368
364▕ $line = str_replace(' ', ' ', $line);
365▕
366▕ preg_match($regex, $line, $matches);
367▕
➜ 368▕ return Carbon::createFromFormat('D M d H:i:s Y', $matches[1]);
369▕ }
370▕
371▕ /**
372▕ * Get the request port from the given PHP server output.
1 vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php:368
Illuminate\Foundation\Bootstrap\HandleExceptions::Illuminate\Foundation\Bootstrap{closure}("Undefined array key 1", "E:\LaravelChat\real-time-chat\vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php")
2 vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php:297
Illuminate\Foundation\Console\ServeCommand::getDateFromLine("[Wed Oct 16 01:37:06 2024] 127.0.0.1:58025 Accepted")
Steps To Reproduce
vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand
The text was updated successfully, but these errors were encountered: