[0] ThrowableError in Error.php line 16

致命错误: Call to undefined method app\home\controller\Error::error()

  1. // | Author: rainfer <81818832@qq.com>
  2. // +----------------------------------------------------------------------
  3. namespace app\home\controller;
  4. class Error extends Base
  5. {
  6. //空控制器
  7. public function index()
  8. {
  9. $this->error(lang('operation not valid'));
  10. }
  11. }

Call Stack

  1. in Error.php line 16
  2. at Error->index()
  3. at ReflectionMethod->invokeArgs(object(Error), []) in Container.php line 395
  4. at Container->invokeReflectMethod(object(Error), object(ReflectionMethod), []) in Module.php line 131
  5. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  6. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  7. at Middleware->think\{closure}(object(Request))
  8. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  9. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  10. at Module->exec() in Dispatch.php line 168
  11. at Dispatch->run() in App.php line 432
  12. at App->think\{closure}(object(Request), object(Closure), null)
  13. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  14. at Middleware->think\{closure}(object(Request))
  15. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  16. at Middleware->dispatch(object(Request)) in App.php line 435
  17. at App->run() in start.php line 19
  18. at require('/www/wwwroot/www.gif...') in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_ALI_SWIFT_5XX_NO_RETRY on
HTTP_ALI_TPROXY_HTTPDNS on
HTTP_REFERER http://www.gif5.net/en/
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_ALI_CDN_REAL_IP 44.204.164.147
HTTP_X_CLIENT_SCHEME https
HTTP_X_FORWARDED_FOR 44.204.164.147
HTTP_ALI_SWIFT_STAT_HOST level2.www.gif5.net
HTTP_ALI_SWIFT_LOG_HOST www.gif5.net
HTTP_EAGLEEYE_TRACEID 3adad01617108263369116033e
HTTP_VIA cn192.l1, kunlun10.cn192, l2cn3129.l2, cache39.l2cn3129
HTTP_HOST www.gif5.net
PHP_ADMIN_VALUE open_basedir=/www/wwwroot/www.gif5.net/../:/tmp/:/proc/
REDIRECT_STATUS 200
SERVER_NAME www.gif5.net
SERVER_PORT 443
SERVER_ADDR 172.27.68.149
REMOTE_PORT 42124
REMOTE_ADDR 223.111.107.187
SERVER_SOFTWARE nginx/1.20.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.gif5.net
DOCUMENT_URI /index.php
REQUEST_URI /en/
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING 6e8f17a1cd2fd963d584=/en/
SCRIPT_FILENAME /www/wwwroot/www.gif5.net/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710826336.9895
REQUEST_TIME 1710826336
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/www.gif5.net/app/
RUNTIME_PATH /www/wwwroot/www.gif5.net/data/runtime/
VIEW_PATH /www/wwwroot/www.gif5.net/app/../app/home/view/
QINIU_FUNCTIONS_VERSION 7.2.10
ADDON_PATH /www/wwwroot/www.gif5.net/addons/