[8] ErrorException in ProductController.php line 397

Trying to get property of non-object

  1. $p['tag'] = $CPT->id;
  2. }
  3. }
  4. $this->assign('parents', $parents);
  5. // 子分类
  6. $childs = $Ctree->getChild($cid);
  7. if($childs){
  8. foreach($childs as &$ch){
  9. $CHT = PortalTagModel::where('name', $ch['name'])->find();
  10. $ch['tag'] = $CHT->id;
  11. }
  12. }
  13. $this->assign('childs', $childs);
  14. $tree = $Ctree->getTreeArray(0);
  15. $this->assign('tree', $tree);
  16. //$this->assign('treeTpl', $this->fetch('../public/class'));
  17. // 当前分类管理员
  18. if (!empty($current)) {
  19. if(!empty($parents)){

Call Stack

  1. in ProductController.php line 397
  2. at Error::appError(8, 'Trying to get proper...', '/www/app/app/portal/...', 397, ['cid' => '59', 'Ctree' => object(Tree), 'current' => ['id' => 59, 'parent_id' => 0, 'post_count' => 1, ...], ...]) in ProductController.php line 397
  3. at ProductController->Category('59') in ProductController.php line 40
  4. at ProductController->index()
  5. at ReflectionMethod->invokeArgs(object(ProductController), []) in App.php line 343
  6. at App::invokeMethod([object(ProductController), 'index'], []) in App.php line 611
  7. at App::module(['portal', 'product', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...], false) in App.php line 457
  8. at App::exec(['type' => 'module', 'module' => ['portal', 'product', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...]) in App.php line 139
  9. at App::run() in index.php line 53

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

__user__
[]

Server/Request Data

TEMP
/__temp__
TMPDIR
/__temp__
TMP
/__temp__
HOSTNAME
vh1032681
HOME
/
USER
vh1032681
FCGI_ROLE
RESPONDER
QUERY_STRING
s=/peijian.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/peijian.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
https
HTTPS
on
HTTP_HOST
www.hbxzcc.com
HTTP_PROXYNAME
suduserver
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.16.1
REMOTE_ADDR
161.123.164.173
REMOTE_PORT
20001
SERVER_ADDR
220.167.104.17
SERVER_PORT
443
SERVER_NAME
www.hbxzcc.com
REDIRECT_STATUS
200
SCRIPT_FILENAME
/www/index.php
PATH_INFO
/peijian.html
PATH_TRANSLATED
/www
HTTP_X_REAL_IP
161.123.164.173
HTTP_X_FORWARDED_FOR
161.123.164.173
HTTP_CLIENT_IP
161.123.164.173
HTTP_CLIENT_PORT
20001
HTTP_PORT
443
HTTP_SSL
on
HTTP_FROM_HTTPS
on
HTTP_X_FORWARDED_PROTO
https
HTTP_X_SCHEME
https
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1597173740.2828
REQUEST_TIME
1597173740
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
ROOT
/www
CMF_ROOT
/www/app/
APP_PATH
/www/app/app/
APP_UPLOAD
/www/upload/
WEB_URL
CMF_PATH
/www/app/simplewind/cmf/
PLUGINS_PATH
/www/app//plugins/
EXTEND_PATH
/www/app/simplewind/extend/
VENDOR_PATH
/www/app/simplewind/vendor/
__NOPHOTO__
/static/images/logo-nophoto.png
RUNTIME_PATH
/www/app/data/runtime/
THINKCMF_VERSION
5.0.180901
THINK_VERSION
5.0.20
THINK_START_TIME
1597173740.2835
THINK_START_MEM
274672
EXT
.php
DS
/
THINK_PATH
/www/app/simplewind/thinkphp/
LIB_PATH
/www/app/simplewind/thinkphp/library/
CORE_PATH
/www/app/simplewind/thinkphp/library/think/
TRAIT_PATH
/www/app/simplewind/thinkphp/library/traits/
ROOT_PATH
/www/app/
LOG_PATH
/www/app/data/runtime/log/
CACHE_PATH
/www/app/data/runtime/cache/
TEMP_PATH
/www/app/data/runtime/temp/
CONF_PATH
/www/app/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/www/app/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.5
DOMDOCUMENT
DOMDocument
DOMELEMENT
DOMElement
DOMNODELIST
DOMNodeList
DOMNODE
DOMNode
__TMPL__
/themes//qc
0.178746s