[8] ErrorException in Common.php line 189

Trying to get property 'name' of non-object

  1. $db = model("admin/weapp/$cat");
  2. $this->assign("sitename" ,$config['title']);
  3. $data = $db->find($this->request->param("id"));
  4. if ($data && isset($this->cat_info['catkey']) && isset($data[$this->cat_info['catkey']])) {
  5. $this->cat_id = $data[$this->cat_info['catkey']];
  6. if (isset($cur_cat['sub']) && isset($cur_cat['sub'][$this->cat_id]['active'])) {
  7. $cur_cat['sub'][$this->cat_id]['active'] = "active";
  8. };
  9. }
  10. $this->seo_title = $data->name;
  11. $this->assign_web_info();
  12. $this->assign("data", $data);
  13. $this->assign("next", $this->next($db, $this->request->param("id")));
  14. $this->assign("pre", $this->pre($db, $this->request->param("id")));
  15. return $this->view->fetch("show/index");
  16. }
  17. }

Call Stack

  1. in Common.php line 189
  2. at Error::appError() in Common.php line 189
  3. at Common->show()
  4. at call_user_func_array() in Route.php line 78
  5. at Route->execute()
  6. at ReflectionMethod->invokeArgs() in App.php line 343
  7. at App::invokeMethod() in App.php line 470
  8. at App::exec() in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/www/wwwroot/www.hea...') in index.php line 23

Environment Variables

GET Data

mod
product
id
8
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
healthgenie.cn
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/addons/weapp/product/show.html
REDIRECT_STATUS
200
SERVER_NAME
www.healthgenie.cn
SERVER_PORT
80
SERVER_ADDR
10.0.4.15
REMOTE_PORT
43386
REMOTE_ADDR
54.205.116.187
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.healthgenie.cn/public
DOCUMENT_URI
/index.php
REQUEST_URI
/addons/weapp/product/show.html?mod=product&id=8
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/addons/weapp/product/show.html&mod=product&id=8
SCRIPT_FILENAME
/www/wwwroot/www.healthgenie.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711639247.401
REQUEST_TIME
1711639247
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.healthgenie.cn/public/../application/
WEB_ROOT
/www/wwwroot/www.healthgenie.cn/public
THINK_VERSION
5.0.24
THINK_START_TIME
1711639247.4017
THINK_START_MEM
409624
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.healthgenie.cn/thinkphp/
LIB_PATH
/www/wwwroot/www.healthgenie.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/www.healthgenie.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.healthgenie.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.healthgenie.cn/
EXTEND_PATH
/www/wwwroot/www.healthgenie.cn/extend/
VENDOR_PATH
/www/wwwroot/www.healthgenie.cn/vendor/
RUNTIME_PATH
/www/wwwroot/www.healthgenie.cn/runtime/
LOG_PATH
/www/wwwroot/www.healthgenie.cn/runtime/log/
CACHE_PATH
/www/wwwroot/www.healthgenie.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/www.healthgenie.cn/runtime/temp/
CONF_PATH
/www/wwwroot/www.healthgenie.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/www/wwwroot/www.healthgenie.cn/addons/