[0] InvalidArgumentException in Response.php line 316

variable type error: array

  1. {
  2. if (null == $this->content) {
  3. $content = $this->output($this->data);
  4. if (null !== $content && !is_string($content) && !is_numeric($content) && !is_callable([
  5. $content,
  6. '__toString',
  7. ])
  8. ) {
  9. throw new \InvalidArgumentException(sprintf('variable type error: %s', gettype($content)));
  10. }
  11. $this->content = (string) $content;
  12. }
  13. return $this->content;
  14. }
  15. /**
  16. * 获取状态码

Call Stack

  1. in Response.php line 316
  2. at Response->getContent() in Response.php line 94
  3. at Response->send() in start.php line 19
  4. at require('/www/wwwroot/dongci/...') in index.php line 24

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

think_var
en
PHPSESSID
td8huaq84haeobon5p3v7qe3j7
Session
empty

Server/Request Data

USER
www
HOME
/home/www
PHP_DEBUG
HTTP_COOKIE
think_var=en; PHPSESSID=td8huaq84haeobon5p3v7qe3j7
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.chinadmegc.com
HTTP_USER_AGENT
Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)
PATH_INFO
/product/5.html
REDIRECT_STATUS
200
SERVER_NAME
chinadmegc.com
SERVER_PORT
443
SERVER_ADDR
10.1.1.209
REMOTE_PORT
43922
REMOTE_ADDR
50.2.184.114
SERVER_SOFTWARE
nginx/1.28.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/dongci/public
DOCUMENT_URI
/index.php
REQUEST_URI
/product/5.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/product/5.html
SCRIPT_FILENAME
/www/wwwroot/dongci/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1757604519.0406
REQUEST_TIME
1757604519
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/dongci/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1757604519.0411
THINK_START_MEM
410064
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/dongci/thinkphp/
LIB_PATH
/www/wwwroot/dongci/thinkphp/library/
CORE_PATH
/www/wwwroot/dongci/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/dongci/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/dongci/
EXTEND_PATH
/www/wwwroot/dongci/extend/
VENDOR_PATH
/www/wwwroot/dongci/vendor/
RUNTIME_PATH
/www/wwwroot/dongci/runtime/
LOG_PATH
/www/wwwroot/dongci/runtime/log/
CACHE_PATH
/www/wwwroot/dongci/runtime/cache/
TEMP_PATH
/www/wwwroot/dongci/runtime/temp/
CONF_PATH
/www/wwwroot/dongci/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/www/wwwroot/dongci/addons/
XML 地图