[8] ErrorException in Product.php line 42

未定义数组索引: tables2

  1. * 首页
  2. */
  3. public function list() {
  4. $map['lang'] = cookie('lang');
  5. if (input('name/s')){
  6. $no['url']=input('name/s');
  7. $no['lang']=cookie('lang');
  8. $findpro=Db::name('category')->where($no)->find();
  9. $findpro['tables1'] = explode('|',$findpro['tables1']);
  10. $findpro['tables2'] = explode('|',$findpro['tables2']);
  11. $findpro['tables3'] = explode('|',$findpro['tables3']);
  12. $findpro['tables4'] = explode('|',$findpro['tables4']);
  13. $findpro['tables5'] = explode('|',$findpro['tables5']);
  14. $findpro['tables6'] = explode('|',$findpro['tables6']);
  15. $findpro['tables7'] = explode('|',$findpro['tables7']);
  16. $findpro['tables8'] = explode('|',$findpro['tables8']);
  17. $findpro['tables9'] = explode('|',$findpro['tables9']);
  18. $findpro['tables10'] = explode('|',$findpro['tables10']);
  19. $findpro['tables11'] = explode('|',$findpro['tables11']);

Call Stack

  1. in Product.php line 42
  2. at Error::appError(8, 'Undefined index: tab...', '/www/wwwroot/www.she...', 42, ['map' => ['lang' => 'en'], 'no' => ['url' => 'Transport_platform', 'lang' => 'en'], 'findpro' => ['tables1' => ['']]]) in Product.php line 42
  3. at Product->list()
  4. at ReflectionMethod->invokeArgs(object(Product), []) in App.php line 343
  5. at App::invokeMethod([object(Product), 'list'], []) in App.php line 598
  6. at App::module(['index', 'Product', 'list'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => 'index/Product/list'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/www.she...') in index.php line 21

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

lang
en
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.shenxi.com
PATH_INFO
/product/list/name/Transport_platform
REDIRECT_STATUS
200
SERVER_NAME
www.shenxi.com
SERVER_PORT
443
SERVER_ADDR
172.21.93.50
REMOTE_PORT
41638
REMOTE_ADDR
54.163.221.133
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
/product/list/name/Transport_platform
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/product/list/name/Transport_platform
SCRIPT_FILENAME
/www/wwwroot/www.shenxi.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711656694.0789
REQUEST_TIME
1711656694
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.shenxi.com/public/../application/
THINK_VERSION
5.0.15
THINK_START_TIME
1711656694.0793
THINK_START_MEM
404128
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/