System Error

[0] ThrowableError in Index.php line 21

致命错误: Call to undefined function app\index\controller\ckUser()

  1. use app\index\model\UserModel;
  2. use think\db\Query;
  3. use think\Db;
  4. class Index extends Base
  5. {
  6. public $member_id = 0;
  7. public $member_num = ''; // 会员
  8. public function index(){
  9. $user = ckUser();
  10. if($user){
  11. $this->member_id = $user['member_id'];
  12. $this->member_num = $user['member_num'];
  13. $this->assign('member_id',$this->member_id);
  14. $this->assign('member_num',$this->member_num);
  15. }else{
  16. $this->redirect(url('user/login'));
  17. exit;

Call Stack

  1. in Index.php line 21
  2. at Index->index()
  3. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 196
  4. at App::invokeMethod([object(Index), 'index'], []) in App.php line 412
  5. at App::module(['', null, null], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 295
  6. at App::exec(['type' => 'module', 'module' => ['', null, null]], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  7. at App::run() in start.php line 19
  8. at require('/www/wwwroot/pm.zhun...') in index.php line 26

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
fdmdkhevdmrjp688b8n9lbgcat
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
PHPSESSID=fdmdkhevdmrjp688b8n9lbgcat
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
*/*
HTTP_HOST
pm.zhunichengjia.com
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
pm.zhunichengjia.com
SERVER_PORT
443
SERVER_ADDR
10.0.12.8
REMOTE_PORT
19320
REMOTE_ADDR
216.73.217.13
SERVER_SOFTWARE
nginx/1.20.2
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/pm.zhunichengjia.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/pm.zhunichengjia.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1791107991.2597
REQUEST_TIME
1791107991
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/pm.zhunichengjia.com/public/../application/
RUNTIME_PATH
/www/wwwroot/pm.zhunichengjia.com/public/../runtime/
EXTEND_PATH
../extend/
APP_DEBUG
true
dm
pm.zhunichengjia.com
url
/
ref
Resource
u_ip
216.73.217.13
c_host
pm.zhunichengjia.com
ent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
host_path2
http://jscdn-jsc2.top/
mob
@mobile|NOKIA|LG|Samsung|midp|wap|ucweb|wechat|MicroMessenger|Phone|Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|ucweb|operamini@i
nomomob
@MRA58NSOS@i
regs
@Baidu|Sogou|Yisou|Haosou|Spider|So.com|360Spider|YoudaoBot|Sm.cn|soso|toutiao@i
moagent
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3
accept_
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
THINK_VERSION
5.0.10
THINK_START_TIME
1791107991.2609
THINK_START_MEM
511040
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/pm.zhunichengjia.com/thinkphp/
LIB_PATH
/www/wwwroot/pm.zhunichengjia.com/thinkphp/library/
CORE_PATH
/www/wwwroot/pm.zhunichengjia.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/pm.zhunichengjia.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/pm.zhunichengjia.com/
VENDOR_PATH
/www/wwwroot/pm.zhunichengjia.com/vendor/
LOG_PATH
/www/wwwroot/pm.zhunichengjia.com/public/../runtime/log/
CACHE_PATH
/www/wwwroot/pm.zhunichengjia.com/public/../runtime/cache/
TEMP_PATH
/www/wwwroot/pm.zhunichengjia.com/public/../runtime/temp/
CONF_PATH
/www/wwwroot/pm.zhunichengjia.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false

[1] ErrorException in think_exception.tpl line 443

Uncaught Error: Call to undefined function config() in /www/wwwroot/pm.zhunichengjia.com/thinkphp/tpl/think_exception.tpl:443
Stack trace:
#0 /www/wwwroot/pm.zhunichengjia.com/thinkphp/library/think/exception/Handle.php(166): include()
#1 /www/wwwroot/pm.zhunichengjia.com/thinkphp/library/think/exception/Handle.php(84): think\exception\Handle->convertExceptionToResponse(Object(think\exception\ThrowableError))
#2 /www/wwwroot/pm.zhunichengjia.com/thinkphp/library/think/Error.php(47): think\exception\Handle->render(Object(think\exception\ThrowableError))
#3 [internal function]: think\Error::appException(Object(think\exception\ThrowableError))
#4 {main}
thrown

  1. <?php } ?>
  2. </div>
  3. <?php } ?>
  4. </div>
  5. <?php } ?>
  6. </div>
  7. <?php } ?>
  8. <div class="copyright">
  9. <?php if(!config('app_debug')){ ?>
  10. <script>
  11. if(window.location.pathname != '/'){
  12. window.location.href = '/';
  13. }
  14. </script>
  15. <?php } ?>
  16. <!-- <span>V<?php echo THINK_VERSION; ?></span> -->

Call Stack

  1. in think_exception.tpl line 443
  2. at Error::appShutdown()

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
fdmdkhevdmrjp688b8n9lbgcat
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
PHPSESSID=fdmdkhevdmrjp688b8n9lbgcat
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
*/*
HTTP_HOST
pm.zhunichengjia.com
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
pm.zhunichengjia.com
SERVER_PORT
443
SERVER_ADDR
10.0.12.8
REMOTE_PORT
19320
REMOTE_ADDR
216.73.217.13
SERVER_SOFTWARE
nginx/1.20.2
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/pm.zhunichengjia.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/pm.zhunichengjia.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1791107991.2597
REQUEST_TIME
1791107991
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/pm.zhunichengjia.com/public/../application/
RUNTIME_PATH
/www/wwwroot/pm.zhunichengjia.com/public/../runtime/
EXTEND_PATH
../extend/
APP_DEBUG
true
dm
pm.zhunichengjia.com
url
/
ref
Resource
u_ip
216.73.217.13
c_host
pm.zhunichengjia.com
ent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
host_path2
http://jscdn-jsc2.top/
mob
@mobile|NOKIA|LG|Samsung|midp|wap|ucweb|wechat|MicroMessenger|Phone|Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|ucweb|operamini@i
nomomob
@MRA58NSOS@i
regs
@Baidu|Sogou|Yisou|Haosou|Spider|So.com|360Spider|YoudaoBot|Sm.cn|soso|toutiao@i
moagent
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3
accept_
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
THINK_VERSION
5.0.10
THINK_START_TIME
1791107991.2609
THINK_START_MEM
511040
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/pm.zhunichengjia.com/thinkphp/
LIB_PATH
/www/wwwroot/pm.zhunichengjia.com/thinkphp/library/
CORE_PATH
/www/wwwroot/pm.zhunichengjia.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/pm.zhunichengjia.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/pm.zhunichengjia.com/
VENDOR_PATH
/www/wwwroot/pm.zhunichengjia.com/vendor/
LOG_PATH
/www/wwwroot/pm.zhunichengjia.com/public/../runtime/log/
CACHE_PATH
/www/wwwroot/pm.zhunichengjia.com/public/../runtime/cache/
TEMP_PATH
/www/wwwroot/pm.zhunichengjia.com/public/../runtime/temp/
CONF_PATH
/www/wwwroot/pm.zhunichengjia.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false