[8] ErrorException in Frontend.php line 109

Undefined index: indeximagealt_ru

  1. $langList = Db::name('language')->column('abbr_name');
  2. if (!in_array($lang,$langList)) {
  3. cookie('lang', 'en', 3600);
  4. }else{
  5. cookie('lang', $lang, 3600);
  6. }
  7. //dump(cookie('lang'));
  8. $langName = Db::name('language')->where(['abbr_name'=>cookie('lang')])->value('view_name');
  9. $site = Config::get("site");
  10. $imagealt = explode('|',$site['indeximagealt_'.cookie('lang')]);
  11. $res = explode('|',$site['description_'.cookie('lang')]);
  12. for ($i=0; $i < count($res); $i++) {
  13. $description[] = explode(',',$res[$i]);
  14. }
  15. if (array_key_exists('carousel_'.cookie('lang'),$site)) {
  16. foreach($site['carousel_'.cookie('lang')] as $key=>$val)
  17. {
  18. $site['banner'][$key]['img']=$site['carousel_'.cookie('lang')][$key];

Call Stack

  1. in Frontend.php line 109
  2. at Error::appError(8, 'Undefined index: ind...', '/www/wwwroot/www.she...', 109, ['modulename' => 'index', 'controllername' => 'index', 'actionname' => 'index', ...]) in Frontend.php line 109
  3. at Frontend->_initialize() in Index.php line 18
  4. at Index->_initialize() in Controller.php line 59
  5. at Controller->__construct(object(Request))
  6. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  7. at App::invokeClass('app\index\controller...') in Loader.php line 459
  8. at Loader::controller('index', 'controller', false, 'Error') in App.php line 574
  9. at App::module(['', null, null], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['', null, null]], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in start.php line 19
  12. at require('/www/wwwroot/www.she...') in index.php line 21

Environment Variables

GET Data

lang
ru
POST Data
empty
Files
empty

Cookies

think_var
ru
lang
ru
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
shenxi.com
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
www.shenxi.com
SERVER_PORT
443
SERVER_ADDR
172.21.93.50
REMOTE_PORT
38128
REMOTE_ADDR
3.90.33.254
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/www.shenxi.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/?lang=ru
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
lang=ru
SCRIPT_FILENAME
/www/wwwroot/www.shenxi.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711636485.2418
REQUEST_TIME
1711636485
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.shenxi.com/public/../application/
THINK_VERSION
5.0.15
THINK_START_TIME
1711636485.2421
THINK_START_MEM
404064
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.shenxi.com/thinkphp/
LIB_PATH
/www/wwwroot/www.shenxi.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.shenxi.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.shenxi.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.shenxi.com/
EXTEND_PATH
/www/wwwroot/www.shenxi.com/extend/
VENDOR_PATH
/www/wwwroot/www.shenxi.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.shenxi.com/runtime/
LOG_PATH
/www/wwwroot/www.shenxi.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.shenxi.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.shenxi.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.shenxi.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/www.shenxi.com/addons/