神人

A field name was provided without a field value in zend-http/src/Headers.php:192

  • 0

大家有没有碰到这种奇怪的错误

PHP Fatal error:  Uncaught ZendHttpHeaderExceptionInvalidArgumentException: A field name was provided without a field value in /var/www/magento2/vendor/zendframework/zend-http/src/Headers.php:192
Stack trace:
#0 /var/www/magento2/vendor/zendframework/zend-http/src/Headers.php(155): ZendHttpHeaders->addHeaderLine('Mozilla/5.0 (Wi...')
#1 /var/www/magento2/vendor/zendframework/zend-http/src/PhpEnvironment/Request.php(236): ZendHttpHeaders->addHeaders(Array)
#2 /var/www/magento2/vendor/zendframework/zend-http/src/PhpEnvironment/Request.php(84): ZendHttpPhpEnvironmentRequest->setServer(Object(ZendStdlibParameters))
#3 /var/www/magento2/vendor/magento/framework/HTTP/PhpEnvironment/Request.php(136): ZendHttpPhpEnvironmentRequest->__construct()
#4 /var/www/magento2/vendor/magento/framework/App/Request/Http.php(123): MagentoFrameworkHTTPPhpEnvironmentRequest->__construct(Object(MagentoFrameworkStdlibCookiePhpCookieReader), Object(MagentoFrameworkStdlibStringUtils), NULL)
#5 /var/www/w in /var/www/magento2/vendor/zendframework/zend-http/src/Headers.php on line 192

m2版本2.3.3

非常诡异,无法重现,这是var/log/日志里的。

我谷歌了一圈,说是zf的一个bug,还没修复?

https://github.com/laminas/laminas-http/issues/1

分享到

您必须登录才能添加回答。