金沙城中心全部网址3983- 主頁欢迎您

[8] ErrorException in Product.php line 112

未定义数组下标: 0

  1. }else{ //如果没有子分类
  2. $havaChildren = 0;
  3. $productData = $product -> where('pcid',$cgid) -> select(); //直接获取该分类内容
  4. $this -> assign('productData',$productData);
  5. }
  6. /* 得到子分类名称及父类名称 */
  7. $parentid = getProductCatParent($cgid); //找爹
  8. $pname = $pcat -> where('pcatid',$parentid[0]) -> column('pcatname');
  9. $cname = $pcat -> where('pcatid',$cgid) -> column('pcatname');
  10. if(count($pname) == 0){ //无父类
  11. $this -> assign('pname','no');
  12. }else{
  13. $this -> assign('pname',$pname[0]);
  14. }
  15. /* 找到子栏目名称及link*/
  16. $lm = new Lanmu();

Call Stack

  1. in Product.php line 112
  2. at Error::appError(8, 'Undefined offset: 0', '/www/wwwroot/jinyu/a...', 112, ['cgid' => '79', 'pcat' => object(Pcats), 'cid' => [], ...]) in Product.php line 112
  3. at Product->category()
  4. at ReflectionMethod->invokeArgs(object(Product), []) in App.php line 343
  5. at App::invokeMethod([object(Product), 'category'], []) in App.php line 611
  6. at App::module(['index', 'product', 'category'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'product', 'category']], ['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/jinyu/t...') in index.php line 23

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
iursc3dkt4d14mqg09es966cj6
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
PHPSESSID=iursc3dkt4d14mqg09es966cj6
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.nxjinyujituan.com
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
PATH_INFO
/index/product/category/id/79.html
REDIRECT_STATUS
200
SERVER_NAME
39.104.23.60
SERVER_PORT
80
SERVER_ADDR
172.24.84.215
REMOTE_PORT
40362
REMOTE_ADDR
170.130.206.134
SERVER_SOFTWARE
nginx/1.14.2
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/jinyu/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/product/category/id/79.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/product/category/id/79.html
SCRIPT_FILENAME
/www/wwwroot/jinyu/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1653228711.031
REQUEST_TIME
1653228711
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/jinyu/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1653228711.0314
THINK_START_MEM
368624
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/jinyu/thinkphp/
LIB_PATH
/www/wwwroot/jinyu/thinkphp/library/
CORE_PATH
/www/wwwroot/jinyu/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/jinyu/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/jinyu/
EXTEND_PATH
/www/wwwroot/jinyu/extend/
VENDOR_PATH
/www/wwwroot/jinyu/vendor/
RUNTIME_PATH
/www/wwwroot/jinyu/runtime/
LOG_PATH
/www/wwwroot/jinyu/runtime/log/
CACHE_PATH
/www/wwwroot/jinyu/runtime/cache/
TEMP_PATH
/www/wwwroot/jinyu/runtime/temp/
CONF_PATH
/www/wwwroot/jinyu/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
PHP_FLOAT_DIG
15
PHP_FLOAT_EPSILON
2.2204460492503E-16
PHP_FLOAT_MIN
2.2250738585072E-308
PHP_FLOAT_MAX
1.7976931348623E+308
PHP_OS_FAMILY
Linux
ADDON_PATH
/www/wwwroot/jinyu/addons/