[8] ErrorException in Website.php line 47

未定义数组索引: website_intro_imgs

  1. if (empty($game_info['website_bg_img'])) {
  2. $game_info['website_bg_img_url'] = '';
  3. } else {
  4. $game_info['website_bg_img_url'] = get_file_path($game_info['website_bg_img']);
  5. }
  6. $website_intro_imgs = str2arr($game_info['website_intro_imgs']);
  7. $website_intro_imgs_urls = [];
  8. foreach ($website_intro_imgs as $v) {
  9. $website_intro_imgs_urls[] = get_file_path($v);
  10. }
  11. $game_info['website_intro_imgs_urls'] = $website_intro_imgs_urls;
  12. $game_screenshot_imgs = str2arr($game_info['game_screenshot']);
  13. $game_screenshot_imgs_urls = [];
  14. foreach ($game_screenshot_imgs as $k => $v) {

Call Stack

  1. in Website.php line 47
  2. at Error::appError(8, 'Undefined index: web...', '/home/wwwroot/58u/ap...', 47, ['game_code' => 'gs', 'game_info' => ['logo_url' => '/public/static/admin...', 'website_bg_img_url' => '']]) in Website.php line 47
  3. at Website->_initialize() in Controller.php line 56
  4. at Controller->__construct(object(Request))
  5. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 215
  6. at App::invokeClass('app\game\home\Websit...') in Loader.php line 420
  7. at Loader::controller('website', 'home', false, 'Error') in App.php line 390
  8. at App::module(['game', 'website', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => '0', ...], false) in App.php line 295
  9. at App::exec(['type' => 'module', 'module' => ['game', 'website', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  10. at App::run() in start.php line 19
  11. at require('/home/wwwroot/58u/th...') in index.php line 24

Exception Datas

Error Context
game_code gs
game_info { "logo_url": "\/public\/static\/admin\/img\/none.png", "website_bg_img_url": "" }

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.58u.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/g/gs
PHP_ADMIN_VALUE
open_basedir=/home/wwwroot/58u/:/tmp/:/proc/
REDIRECT_STATUS
200
SERVER_NAME
www.58u.com
SERVER_PORT
80
SERVER_ADDR
172.17.125.247
REMOTE_PORT
50208
REMOTE_ADDR
35.173.178.60
SERVER_SOFTWARE
nginx/1.12.2
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/home/wwwroot/58u
DOCUMENT_URI
/index.php
REQUEST_URI
/g/gs
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/g/gs&
SCRIPT_FILENAME
/home/wwwroot/58u/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
REQUEST_TIME_FLOAT
1711624580.4272
REQUEST_TIME
1711624580
Environment Variables
empty

ThinkPHP Constants

DOMAIN
http://www.58u.com
PROJECT_NAME
58u
APP_PATH
/home/wwwroot/58u/application/
ADMIN_FILE
admin.php
BIND_MODULE
game
THINK_VERSION
5.0.10
THINK_START_TIME
1711624580.4279
THINK_START_MEM
376560
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/58u/thinkphp/
LIB_PATH
/home/wwwroot/58u/thinkphp/library/
CORE_PATH
/home/wwwroot/58u/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/58u/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/58u/
EXTEND_PATH
/home/wwwroot/58u/extend/
VENDOR_PATH
/home/wwwroot/58u/vendor/
RUNTIME_PATH
/home/wwwroot/58u/runtime/
LOG_PATH
/home/wwwroot/58u/runtime/log/
CACHE_PATH
/home/wwwroot/58u/runtime/cache/
TEMP_PATH
/home/wwwroot/58u/runtime/temp/
CONF_PATH
/home/wwwroot/58u/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/home/wwwroot/58u/vendor/ezyang/htmlpurifier/library
PUBLIC_PATH
/public/