Fatal error: Uncaught think\exception\ErrorException: http_response_code() expects parameter 1 to be integer, string given in /www/wwwroot/zhierde.com/simplewind/thinkphp/library/think/Response.php:113 Stack trace: #0 [internal function]: think\Error::appError(2, 'http_response_c...', '/www/wwwroot/zh...', 113, Array) #1 /www/wwwroot/zhierde.com/simplewind/thinkphp/library/think/Response.php(113): http_response_code('id\xE4\xB8\x8D\xE5\x8F\xAF\xE7\xA9\xBA') #2 /www/wwwroot/zhierde.com/simplewind/thinkphp/library/think/Error.php(52): think\Response->send() #3 [internal function]: think\Error::appException(Object(think\exception\HttpException)) #4 {main} thrown in /www/wwwroot/zhierde.com/simplewind/thinkphp/library/think/Response.php on line 113
System Error

[1] ErrorException in Response.php line 113

Uncaught think\exception\ErrorException: http_response_code() expects parameter 1 to be integer, string given in /www/wwwroot/zhierde.com/simplewind/thinkphp/library/think/Response.php:113
Stack trace:
#0 [internal function]: think\Error::appError(2, 'http_response_c...', '/www/wwwroot/zh...', 113, Array)
#1 /www/wwwroot/zhierde.com/simplewind/thinkphp/library/think/Response.php(113): http_response_code('id\xE4\xB8\x8D\xE5\x8F\xAF\xE7\xA9\xBA')
#2 /www/wwwroot/zhierde.com/simplewind/thinkphp/library/think/Error.php(52): think\Response->send()
#3 [internal function]: think\Error::appException(Object(think\exception\HttpException))
#4 {main}
thrown

  1. $this->header['Cache-Control'] = 'max-age=' . $cache[1] . ',must-revalidate';
  2. $this->header['Last-Modified'] = gmdate('D, d M Y H:i:s') . ' GMT';
  3. $this->header['Expires'] = gmdate('D, d M Y H:i:s', $_SERVER['REQUEST_TIME'] + $cache[1]) . ' GMT';
  4. Cache::tag($cache[2])->set($cache[0], [$data, $this->header], $cache[1]);
  5. }
  6. }
  7. if (!headers_sent() && !empty($this->header)) {
  8. // 发送状态码
  9. http_response_code($this->code);
  10. // 发送头部信息
  11. foreach ($this->header as $name => $val) {
  12. if (is_null($val)) {
  13. header($name);
  14. } else {
  15. header($name . ':' . $val);
  16. }
  17. }
  18. }

Call Stack

  1. in Response.php line 113
  2. at Error::appShutdown()

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/article/default/20181218/51bafdc463407826c5151734e55e4e3b.jpg
QUERY_STRING
s=article/default/20181218/51bafdc463407826c5151734e55e4e3b.jpg
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
s=article/default/20181218/51bafdc463407826c5151734e55e4e3b.jpg
REDIRECT_URL
/article/default/20181218/51bafdc463407826c5151734e55e4e3b.jpg
REMOTE_PORT
8962
SCRIPT_FILENAME
/www/wwwroot/zhierde.com/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/zhierde.com
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/www/wwwroot/zhierde.com
REMOTE_ADDR
3.145.202.60
SERVER_PORT
80
SERVER_ADDR
172.26.217.230
SERVER_NAME
www.zhierde.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.zhierde.com Port 80</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
HTTP_HOST
www.zhierde.com
HTTP_REFERER
http://zhierde.com/article/default/20181218/51bafdc463407826c5151734e55e4e3b.jpg
HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT
*/*
proxy-nokeepalive
1
REDIRECT_STATUS
200
REDIRECT_dont-vary
1
REDIRECT_no-gzip
1
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1735439519.4446
REQUEST_TIME
1735439519
PATH_INFO
article/default/20181218/51bafdc463407826c5151734e55e4e3b.jpg
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
CMF_ROOT
/www/wwwroot/zhierde.com/
APP_PATH
/www/wwwroot/zhierde.com/app/
CMF_PATH
/www/wwwroot/zhierde.com/simplewind/cmf/
WEB_ROOT
/www/wwwroot/zhierde.com/
PLUGINS_PATH
/www/wwwroot/zhierde.com/plugins/
EXTEND_PATH
/www/wwwroot/zhierde.com/simplewind/extend/
VENDOR_PATH
/www/wwwroot/zhierde.com/simplewind/vendor/
RUNTIME_PATH
/www/wwwroot/zhierde.com/data/runtime/
THINKCMF_VERSION
5.0.190111
THINK_VERSION
5.0.24
THINK_START_TIME
1735439519.4449
THINK_START_MEM
368928
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/zhierde.com/simplewind/thinkphp/
LIB_PATH
/www/wwwroot/zhierde.com/simplewind/thinkphp/library/
CORE_PATH
/www/wwwroot/zhierde.com/simplewind/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/zhierde.com/simplewind/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/zhierde.com/
LOG_PATH
/www/wwwroot/zhierde.com/data/runtime/log/
CACHE_PATH
/www/wwwroot/zhierde.com/data/runtime/cache/
TEMP_PATH
/www/wwwroot/zhierde.com/data/runtime/temp/
CONF_PATH
/www/wwwroot/zhierde.com/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/www/wwwroot/zhierde.com/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.7