[2] ErrorException in Url.php line 143

trim() expects parameter 1 to be string, array given

  1. // 参数组装
  2. if (!empty($vars)) {
  3. // 添加参数
  4. if (Config::get('url_common_param')) {
  5. $vars = http_build_query($vars);
  6. $url .= $suffix . '?' . $vars . $anchor;
  7. } else {
  8. $paramType = Config::get('url_param_type');
  9. foreach ($vars as $var => $val) {
  10. if ('' !== trim($val)) {
  11. if ($paramType) {
  12. $url .= $depr . urlencode($val);
  13. } else {
  14. $url .= $depr . $var . $depr . urlencode($val);
  15. }
  16. }
  17. }
  18. $url .= $suffix . $anchor;
  19. }

Call Stack

  1. in Url.php line 143
  2. at Error::appError(2, 'trim() expects param...', '/www/wwwroot/jiagenq...', 143, ['url' => 'job', 'vars' => ['c1' => null, 'c2' => null, 'c3' => ['canyinyuleshenghuofu...', 'xiaoshoukefucaigoudi...', 'qichewuliuzhikongshe...', ...]], 'suffix' => '.html', ...])
  3. at trim(['canyinyuleshenghuofu...', 'xiaoshoukefucaigoudi...', 'qichewuliuzhikongshe...', ...]) in Url.php line 143
  4. at Url::build('job', ['c1' => null, 'c2' => null, 'c3' => ['canyinyuleshenghuofu...', 'xiaoshoukefucaigoudi...', 'qichewuliuzhikongshe...', ...]], '.html', true) in common.php line 921
  5. at url('index/job/index', ['c1' => null, 'c2' => null, 'c3' => ['canyinyuleshenghuofu...', 'xiaoshoukefucaigoudi...', 'qichewuliuzhikongshe...', ...]]) in common.php line 822
  6. at P(['c1' => null, 'c2' => null, 'c3' => ['canyinyuleshenghuofu...', 'xiaoshoukefucaigoudi...', 'qichewuliuzhikongshe...', ...]]) in Job.php line 295
  7. at Job->index()
  8. at ReflectionMethod->invokeArgs(object(Job), []) in App.php line 343
  9. at App::invokeMethod([object(Job), 'index'], []) in App.php line 611
  10. at App::module(['index', 'job', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  11. at App::exec(['type' => 'module', 'module' => ['index', 'job', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  12. at App::run() in start.php line 19
  13. at require('/www/wwwroot/jiagenq...') in index.php line 32

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_ALI_CDN_REAL_IP
3.80.131.164
HTTP_X_CLIENT_SCHEME
http
HTTP_X_FORWARDED_FOR
3.80.131.164
HTTP_ALI_SWIFT_STAT_HOST
level2.www.jiagenqian.com
HTTP_ALI_SWIFT_LOG_HOST
www.jiagenqian.com
HTTP_EAGLEEYE_TRACEID
3adad01717116456449778689e
HTTP_VIA
cn192.l1, kunlun9.cn192, l2cn2647.l2, cache3.l2cn2647
HTTP_HOST
www.jiagenqian.com
PATH_INFO
//job/c1/4/c2/28/c3/227.html
REDIRECT_STATUS
200
SERVER_NAME
www.jiagenqian.com
SERVER_PORT
80
SERVER_ADDR
172.22.244.91
REMOTE_PORT
46612
REMOTE_ADDR
153.35.52.151
SERVER_SOFTWARE
nginx/1.21.4
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/jiagenqian.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/job/c1/4/c2/28/c3/227.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=//job/c1/4/c2/28/c3/227.html
SCRIPT_FILENAME
/www/wwwroot/jiagenqian.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711645645.02
REQUEST_TIME
1711645645
ALL_HTTP
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/jiagenqian.com/public/../application/
API_LIB_PATH
/www/wwwroot/jiagenqian.com/public/../application/common/lib/
SYS_UPLOAD_DIR_NAME
upload
SYS_UPLOAD_PATH
/www/wwwroot/jiagenqian.com/public/upload/
TOKEN_PATH
/www/wwwroot/jiagenqian.com/public/../runtime/jwttokens/
STATIC_PATH
/www/wwwroot/jiagenqian.com/public/static/
PUBLIC_PATH
/www/wwwroot/jiagenqian.com/public/
THINK_VERSION
5.0.24
THINK_START_TIME
1711645645.0203
THINK_START_MEM
371560
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/jiagenqian.com/thinkphp/
LIB_PATH
/www/wwwroot/jiagenqian.com/thinkphp/library/
CORE_PATH
/www/wwwroot/jiagenqian.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/jiagenqian.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/jiagenqian.com/
EXTEND_PATH
/www/wwwroot/jiagenqian.com/extend/
VENDOR_PATH
/www/wwwroot/jiagenqian.com/vendor/
RUNTIME_PATH
/www/wwwroot/jiagenqian.com/runtime/
LOG_PATH
/www/wwwroot/jiagenqian.com/runtime/log/
CACHE_PATH
/www/wwwroot/jiagenqian.com/runtime/cache/
TEMP_PATH
/www/wwwroot/jiagenqian.com/runtime/temp/
CONF_PATH
/www/wwwroot/jiagenqian.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
PHP_FLOAT_DIG
15
PHP_FLOAT_EPSILON
2.2204460492503E-16
PHP_FLOAT_MIN
2.2250738585072E-308
PHP_FLOAT_MAX
1.7976931348623E+308
PHP_OS_FAMILY
Linux
FILTER_VALIDATE_BOOL
258