[0] ThrowableError in Index.php line 113

致命错误: Call to undefined function app\home\controller\crumb()

  1. ]);
  2. }
  3. public function view()
  4. {
  5. $news_id = $this->request->param('id', 0);
  6. $view = db('home_threads')->alias('a')->join('home_tmsgs b', 'a.tid=b.tid')->where('a.tid', $news_id)->find();
  7. if (!$view) $this->error('帖子不存在或已被删除', '/');
  8. $crumb = crumb($view['fid']);
  9. if ($view['ifsign'] < 2) $view['content'] = str_replace("\n", "<br />", $view['content']);
  10. $title = $view['subject'];
  11. foreach (array_reverse($crumb) as $k => $v) {
  12. if ($k == 0) $title .= "|" . $v['name'];
  13. }
  14. $user_field = 'a.uid,a.username,a.icon,a.regdate,b.postnum,b.onlinetime,b.lastpost,b.digests,b.rvrc,b.money';
  15. $view_user = db('home_members')->alias('a')->join('home_memberdata b', 'a.uid = b.uid')
  16. ->where('a.uid', $view['authorid'])->field($user_field)->find();
  17. $posts = db('home_posts')->cache('posts' . $news_id)->where('tid', $news_id)->select();

Call Stack

  1. in Index.php line 113
  2. at Index->view()
  3. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  4. at App::invokeMethod([object(Index), 'view'], []) in App.php line 611
  5. at App::module(['home', 'index', 'view'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  6. at App::exec(['type' => 'module', 'module' => ['home', 'index', 'view'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  7. at App::run() in start.php line 19
  8. at require('/www/wwwroot/fastadm...') in index.php line 17

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_REFERER
http://www.188628.com/home/read-htm-tid-2216.html
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.188628.com
PATH_INFO
/home/read-htm-tid-2216.html
REDIRECT_STATUS
200
SERVER_NAME
www.188628.com
SERVER_PORT
443
SERVER_ADDR
180.97.183.11
REMOTE_PORT
60038
REMOTE_ADDR
34.229.50.161
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/fastadmin.188628.com_game/public
DOCUMENT_URI
/index.php
REQUEST_URI
/home/read-htm-tid-2216.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/home/read-htm-tid-2216.html
SCRIPT_FILENAME
/www/wwwroot/fastadmin.188628.com_game/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711628707.8903
REQUEST_TIME
1711628707
Environment Variables
empty

ThinkPHP Constants

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