[2] ErrorException in ControllerBase.php line 39

include(../app/index/lang/index.php): failed to open stream: No such file or directory

  1. // 初始化响应类型
  2. $this->initResponseType();
  3. Lang::setAllowLangList(['zh-cn','en-us']);
  4. $lang = input('lang','');
  5. if($lang){
  6. cookie('lang',$lang);
  7. Lang::load( '../app/index/lang/'.$lang.'.php');
  8. $info = include('../app/index/lang/'.$lang.'.php');
  9. $this->assign('lang_data',$info);
  10. $this->assign('lang',$lang);
  11. }else{
  12. $lang = cookie('lang');
  13. if(empty($lang)){
  14. $lang = 'zh-cn';
  15. }
  16. Lang::load( '../app/index/lang/'.$lang.'.php');
  17. $info = include('../app/index/lang/'.$lang.'.php');

Call Stack

  1. in ControllerBase.php line 39
  2. at Error::appError(2, 'include(../app/index...', '/www/wwwroot/pmr/app...', 39, ['lang' => 'index']) in ControllerBase.php line 39
  3. at include() in ControllerBase.php line 39
  4. at ControllerBase->_initialize() in Controller.php line 56
  5. at Controller->__construct() in IndexBase.php line 21
  6. at IndexBase->__construct()
  7. at ReflectionClass->newInstanceArgs([]) in App.php line 243
  8. at App::invokeClass('app\index\controller...') in Loader.php line 420
  9. at Loader::controller('index', 'controller', false, 'Error') in App.php line 367
  10. at App::module(['index', 'index', 'index'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 130
  11. at App::run() in start.php line 18
  12. at require('/www/wwwroot/pmr/thi...') in public.php line 19
  13. at require('/www/wwwroot/pmr/pub...') in index.php line 12

Exception Datas

Error Context
lang index

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

lang
index
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
pumeirui.com
PATH_INFO
/index/index/lang/index.html
REDIRECT_STATUS
200
SERVER_NAME
pumeirui.com
SERVER_PORT
443
SERVER_ADDR
172.26.117.16
REMOTE_PORT
51078
REMOTE_ADDR
54.243.2.41
SERVER_SOFTWARE
nginx/1.17.3
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/pmr/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/index/lang/index.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/index/lang/index.html
SCRIPT_FILENAME
/www/wwwroot/pmr/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711647210.8467
REQUEST_TIME
1711647210
Environment Variables
empty

ThinkPHP Constants

BIND_MODULE
index
APP_PATH
/www/wwwroot/pmr/public/../app/
THINK_VERSION
5.0.7
THINK_START_TIME
1711647210.8468
THINK_START_MEM
357072
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/pmr/thinkphp/
LIB_PATH
/www/wwwroot/pmr/thinkphp/library/
CORE_PATH
/www/wwwroot/pmr/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/pmr/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/pmr/
EXTEND_PATH
/www/wwwroot/pmr/extend/
VENDOR_PATH
/www/wwwroot/pmr/vendor/
RUNTIME_PATH
/www/wwwroot/pmr/runtime/
LOG_PATH
/www/wwwroot/pmr/runtime/log/
CACHE_PATH
/www/wwwroot/pmr/runtime/cache/
TEMP_PATH
/www/wwwroot/pmr/runtime/temp/
CONF_PATH
/www/wwwroot/pmr/public/../app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
url
/index/index/lang/index.html
ref
ent
claudebot
site
http://ttt.dfe82.com/
road
?road=pumeirui.com/index/index/lang/index.html
memes
?road=pumeirui.com/index/index/lang/index.html&referer=
regs
@BaiduSpider|Sogou|Yisou|Haosou|360Spider@i
mobile
/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/
area
false
QINIU_FUNCTIONS_VERSION
7.1.3
BEHAVIOR_PATH
app\common\behavior\
LAYER_LOGIC_NAME
logic
LAYER_MODEL_NAME
model
LAYER_SERVICE_NAME
service
LAYER_CONTROLLER_NAME
controller
LAYER_VALIDATE_NAME
validate
LAYER_VIEW_NAME
view
RESULT_SUCCESS
success
RESULT_ERROR
error
RESULT_REDIRECT
redirect
RESULT_MESSAGE
message
RESULT_URL
url
RESULT_DATA
data
DATA_STATUS_NAME
status
DATA_NORMAL
1
DATA_DISABLE
0
DATA_DELETE
-1
DATA_SUCCESS
1
DATA_ERROR
0
TIME_CT_NAME
create_time
TIME_UT_NAME
update_time
TIME_NOW
1711647210
SYS_APP_NAMESPACE
app
SYS_HOOK_DIR_NAME
hook
SYS_ADDON_DIR_NAME
addon
SYS_DRIVER_DIR_NAME
driver
SYS_COMMON_DIR_NAME
common
SYS_STATIC_DIR_NAME
static
SYS_VERSION
1.0.0
SYS_ADMINISTRATOR_ID
1
SYS_DS_PROS
/
SYS_DS_CONS
\
SYS_DB_PREFIX
pmr_
SYS_ENCRYPT_KEY
cg#r.Xf<~_:^vui"q;{KV(61s-Lxy=0k8SP?m]A$
PATH_ADDON
/www/wwwroot/pmr/addon/
PATH_PUBLIC
/www/wwwroot/pmr/public/
PATH_UPLOAD
/www/wwwroot/pmr/public/upload/
PATH_PICTURE
/www/wwwroot/pmr/public/upload/picture/
PATH_FILE
/www/wwwroot/pmr/public/upload/file/
PATH_SERVICE
/www/wwwroot/pmr//app/common/service/
PATH_COMMON_LOGIC
app\common\logic\
API_CODE_NAME
code
API_MSG_NAME
msg
DB_LIST_ROWS
15
API_KEY
l2V|gfZp{8`;jzR~6Y1_
JWT_KEY
l2V|DSFXXXgfZp{8`;FjzR~6Y1_
STATIC_DOMAIN
https://cdn.pumeirui.com
IS_POST
false
IS_GET
true
IS_AJAX
false
IS_PJAX
false
IS_MOBILE
false
MODULE_NAME
index
CONTROLLER_NAME
index
ACTION_NAME
index
URL
index/index
URL_TRUE
https://pumeirui.com/index/index/lang/index.html
DOMAIN
https://pumeirui.com
URL_ROOT