[1] ErrorException in Response.php line 113

Uncaught exception 'think\exception\ErrorException' with message 'http_response_code() expects parameter 1 to be long, string given' in /var/www/webs/nhdro/tdr_v2/thinkphp/library/think/Response.php:113
Stack trace:
#0 [internal function]: think\Error::appError(2, 'http_response_c...', '/var/www/webs/n...', 113, Array)
#1 /var/www/webs/nhdro/tdr_v2/thinkphp/library/think/Response.php(113): http_response_code('')
#2 /var/www/webs/nhdro/tdr_v2/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

PHP_PATH
FREETDSLOCALES
FREETDSCONF
OPENSSL_ENGINES
OPENSSL_CONF
SSL_CERT_FILE
CURL_CA_BUNDLE
LDAPCONF
GS_LIB
MAGICK_CODER_MODULE_PATH
MAGICK_CONFIGURE_PATH
MAGICK_HOME
PATH
/opt/bitnami/php/bin:/opt/bitnami/php/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
USER
daemon
HOME
/usr/sbin
FCGI_ROLE
RESPONDER
PATH_INFO
//info.htm
SCRIPT_FILENAME
/var/www/webs/nhdro/tdr_v2/index.php
QUERY_STRING
s=//info.htm
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/info.htm
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/var/www/webs/nhdro/tdr_v2
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.15.12
REMOTE_ADDR
3.92.1.156
REMOTE_PORT
57434
SERVER_ADDR
192.168.0.7
SERVER_PORT
80
SERVER_NAME
thedesignrepublic.com
REDIRECT_STATUS
200
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
www.thedesignrepublic.com
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711706136.3031
REQUEST_TIME
1711706136
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/var/www/webs/nhdro/tdr_v2/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711706136.3034
THINK_START_MEM
234504
EXT
.php
DS
/
THINK_PATH
/var/www/webs/nhdro/tdr_v2/thinkphp/
LIB_PATH
/var/www/webs/nhdro/tdr_v2/thinkphp/library/
CORE_PATH
/var/www/webs/nhdro/tdr_v2/thinkphp/library/think/
TRAIT_PATH
/var/www/webs/nhdro/tdr_v2/thinkphp/library/traits/
ROOT_PATH
/var/www/webs/nhdro/tdr_v2/
EXTEND_PATH
/var/www/webs/nhdro/tdr_v2/extend/
VENDOR_PATH
/var/www/webs/nhdro/tdr_v2/vendor/
RUNTIME_PATH
/var/www/webs/nhdro/tdr_v2/runtime/
LOG_PATH
/var/www/webs/nhdro/tdr_v2/runtime/log/
CACHE_PATH
/var/www/webs/nhdro/tdr_v2/runtime/cache/
TEMP_PATH
/var/www/webs/nhdro/tdr_v2/runtime/temp/
CONF_PATH
/var/www/webs/nhdro/tdr_v2/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false