公海555000线路检测中心(中国)官方网站

公海555000线路检测中心(中国)官方网站

[8] ErrorException in Frontend.php line 98

Trying to get property 'id' of non-object

  1. protected function channelCollect($where = [],$self = true)
  2. {
  3. $data = [];
  4. $channels = collection(\think\Db::name('cms_channel')->field('id,parent_id,name,name_en,diyname,image,banner,isnav,weigh,outlink')
  5. ->order('weigh asc,id desc')->select())->toArray();
  6. //栏目多维数组
  7. $tree = \fast\Tree::instance();
  8. $tree->init($channels, 'parent_id');
  9. $channel = \app\common\model\cms\Channel::where($where)->find();
  10. $parents = $tree->getParents($channel->id,true);
  11. $countp = count($parents) - 2;
  12. $sidebar=$parents[0];
  13. $sidebar['childlist'] = $tree->getTreeArray($sidebar['id']);
  14. //侧边栏栏目集合
  15. $data['sidebar'] = $sidebar;
  16. $channelId = $channel->id;
  17. if(!$self){
  18. $childlist = $tree->getTreeArray($channel->id);
  19. $channellast = get_last_array($childlist);

Call Stack

  1. in Frontend.php line 98
  2. at Error::appError() in Frontend.php line 98
  3. at Frontend->channelCollect() in Index.php line 68
  4. at Index->list()
  5. at ReflectionMethod->invokeArgs() in App.php line 343
  6. at App::invokeMethod() in App.php line 611
  7. at App::module() in App.php line 456
  8. at App::exec() in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/data/ah2j/thinkphp/...') in index.php line 18

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
3q3gjp4omoa6eg5i61a7smol9f
Session
empty

Server/Request Data

USER
www
HOME
/home/www
PHP_APP_DEBUG
1
PHP_APP_TRACE
PHP_DATABASE_HOSTNAME
127.0.0.1
PHP_DATABASE_USERNAME
root
PHP_DATABASE_PASSWORD
ah2j20220629
PHP_DATABASE_DATABASE
ah2j
HTTP_COOKIE
PHPSESSID=3q3gjp4omoa6eg5i61a7smol9f
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 (compatible; BLEXBot/1.0; +https://help.seranking.com/en/blex-crawler)
HTTP_CONNECTION
close
HTTP_X_FORWARDED_FOR
170.130.202.82
HTTP_X_REAL_IP
170.130.202.82
HTTP_HOST
www.ah2j.com
PATH_INFO
/list/gcyj
REDIRECT_STATUS
200
SERVER_NAME
www.ah2j.com
SERVER_PORT
8050
SERVER_ADDR
192.168.110.68
REMOTE_PORT
39638
REMOTE_ADDR
192.168.110.58
SERVER_SOFTWARE
nginx/1.22.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.0
DOCUMENT_ROOT
/data/ah2j/public
DOCUMENT_URI
/index.php
REQUEST_URI
/list/gcyj
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/list/gcyj
SCRIPT_FILENAME
/data/ah2j/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
REQUEST_TIME_FLOAT
1751217097.5117
REQUEST_TIME
1751217097
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/ah2j/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1751217097.5119
THINK_START_MEM
408536
EXT
.php
DS
/
THINK_PATH
/data/ah2j/thinkphp/
LIB_PATH
/data/ah2j/thinkphp/library/
CORE_PATH
/data/ah2j/thinkphp/library/think/
TRAIT_PATH
/data/ah2j/thinkphp/library/traits/
ROOT_PATH
/data/ah2j/
EXTEND_PATH
/data/ah2j/extend/
VENDOR_PATH
/data/ah2j/vendor/
RUNTIME_PATH
/data/ah2j/runtime/
LOG_PATH
/data/ah2j/runtime/log/
CACHE_PATH
/data/ah2j/runtime/cache/
TEMP_PATH
/data/ah2j/runtime/temp/
CONF_PATH
/data/ah2j/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
HTMLPURIFIER_PREFIX
/data/ah2j/vendor/ezyang/htmlpurifier/library
ADDON_PATH
/data/ah2j/addons/
Baidu
sogou