[2] ErrorException in Query.php line 611

Missing argument 1 for think\db\Query::max(), called in /home/wwwroot/www_shengsci_com/application/common.php on line 745 and defined

  1. }
  2. /**
  3. * MAX查询
  4. * @access public
  5. * @param string $field 字段名
  6. * @param bool $force 强制转为数字类型
  7. * @return mixed
  8. */
  9. public function max($field, $force = true)
  10. {
  11. return $this->aggregate('MAX', $field, $force);
  12. }
  13. /**
  14. * AVG查询
  15. * @access public
  16. * @param string $field 字段名
  17. * @return float|int

Call Stack

  1. in Query.php line 611
  2. at Error::appError(2, 'Missing argument 1 f...', '/home/wwwroot/www_sh...', 611, []) in Query.php line 611
  3. at Query->max() in common.php line 745
  4. at relevantLiteratureGet('ko_literature_pubmed...') in Literature.php line 168
  5. at Literature->details()
  6. at ReflectionMethod->invokeArgs(object(Literature), []) in App.php line 343
  7. at App::invokeMethod([object(Literature), 'details'], []) in App.php line 611
  8. at App::module(['index', 'literature', 'details'], ['app_host' => '', 'app_debug' => 1, 'app_trace' => 0, ...], false) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['index', 'literature', 'details'], 'convert' => false], ['app_host' => '', 'app_debug' => 1, 'app_trace' => 0, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/home/wwwroot/www_sh...') in index.php line 20

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_HOST
www.shengsci.com
PATH_INFO
/wenxian/32065698.html
REDIRECT_STATUS
200
SERVER_NAME
www.shengsci.com
SERVER_PORT
443
SERVER_ADDR
172.31.133.68
REMOTE_PORT
50480
REMOTE_ADDR
35.172.193.238
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/home/wwwroot/www_shengsci_com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/wenxian/32065698.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/wenxian/32065698.html
SCRIPT_FILENAME
/home/wwwroot/www_shengsci_com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711619660.5602
REQUEST_TIME
1711619660
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/wwwroot/www_shengsci_com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711619660.5606
THINK_START_MEM
379160
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/www_shengsci_com/thinkphp/
LIB_PATH
/home/wwwroot/www_shengsci_com/thinkphp/library/
CORE_PATH
/home/wwwroot/www_shengsci_com/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/www_shengsci_com/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/www_shengsci_com/
EXTEND_PATH
/home/wwwroot/www_shengsci_com/extend/
VENDOR_PATH
/home/wwwroot/www_shengsci_com/vendor/
RUNTIME_PATH
/home/wwwroot/www_shengsci_com/runtime/
LOG_PATH
/home/wwwroot/www_shengsci_com/runtime/log/
CACHE_PATH
/home/wwwroot/www_shengsci_com/runtime/cache/
TEMP_PATH
/home/wwwroot/www_shengsci_com/runtime/temp/
CONF_PATH
/home/wwwroot/www_shengsci_com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
VIEW_PATH
/home/wwwroot/www_shengsci_com/public/../application/index/view/
IS_CLI
false
IS_WIN
false
URL_CALLBACK
http://www.shengsci.com/user/oauth/callback/type/