[0] ThrowableError in AboutController.php line 102

致命错误: Call to a member function toArray() on null

  1. }
  2. /**
  3. * 医生详情显示
  4. */
  5. public function doctormx(){
  6. $id=$this->request->param("id");
  7. //根据意识id获得医生信息
  8. $result = DoctorModel::getDetails(['id' => $id])->toArray();
  9. //获得banner图
  10. $headerone =SlideItemModel::firstslide(["id"=>21]);
  11. $this->assign("headerone",$headerone);
  12. $this->assign("result",$result);
  13. return $this->fetch(":doctormx");
  14. }
  15. /**
  16. * 文章明细
  17. */

Call Stack

  1. in AboutController.php line 102
  2. at AboutController->doctormx()
  3. at ReflectionMethod->invokeArgs(object(AboutController), []) in App.php line 343
  4. at App::invokeMethod([object(AboutController), 'doctormx'], []) in App.php line 611
  5. at App::module(['portal', 'about', 'doctormx'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  6. at App::exec(['type' => 'module', 'module' => ['portal', 'about', 'doctormx']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  7. at App::run() in index.php line 44

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

DOCUMENT_ROOT
/usr/home/byu7493720001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_HOST
www.chinapet.com.cn
HTTP_USER_AGENT
claudebot
PATH
/bin
PHPRC
/var/www/php72/hichina_ini/byu7493720001
QUERY_STRING
s=portal/about/doctormx/id/7.html
REDIRECT_DOCUMENT_ROOT
/usr/home/byu7493720001/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_HOST
www.chinapet.com.cn
REDIRECT_HTTP_USER_AGENT
claudebot
REDIRECT_PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REDIRECT_PATH_INFO
/about/doctormx/id/7.html
REDIRECT_PATH_TRANSLATED
redirect:/animal/public/about/doctormx/id/7.html/doctormx/id/7.html
REDIRECT_QUERY_STRING
s=portal/about/doctormx/id/7.html
REDIRECT_REMOTE_ADDR
18.119.133.228
REDIRECT_REMOTE_PORT
52731
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/animal/public/portal/about/doctormx/id/7.html
REDIRECT_SCRIPT_FILENAME
/usr/home/byu7493720001/htdocs/animal/public/portal
REDIRECT_SCRIPT_NAME
/animal/public/portal
REDIRECT_SCRIPT_URI
http://www.chinapet.com.cn/animal/public/portal/about/doctormx/id/7.html
REDIRECT_SCRIPT_URL
/animal/public/portal/about/doctormx/id/7.html
REDIRECT_SERVER_ADDR
10.22.76.35
REDIRECT_SERVER_ADMIN
webmaster@byu7493720001.my3w.com
REDIRECT_SERVER_NAME
www.chinapet.com.cn
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_TZ
Asia/Shanghai
REDIRECT_UNIQUE_ID
ZiFHHAoWTCMAJkwHunYAAAAI
REDIRECT_URL
/animal/public/portal/about/doctormx/id/7.html
REMOTE_ADDR
18.119.133.228
REMOTE_PORT
52731
REQUEST_METHOD
GET
REQUEST_URI
/animal/public/portal/about/doctormx/id/7.html
SCRIPT_FILENAME
/usr/home/byu7493720001/htdocs/animal/public/index.php
SCRIPT_NAME
/animal/public/index.php
SCRIPT_URI
http://www.chinapet.com.cn/animal/public/portal/about/doctormx/id/7.html
SCRIPT_URL
/animal/public/portal/about/doctormx/id/7.html
SERVER_ADDR
10.22.76.35
SERVER_ADMIN
webmaster@byu7493720001.my3w.com
SERVER_NAME
www.chinapet.com.cn
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
TZ
Asia/Shanghai
UNIQUE_ID
ZiFHHAoWTCMAJkwHunYAAAAI
PHP_SELF
/animal/public/index.php
REQUEST_TIME_FLOAT
1713456924.1991
REQUEST_TIME
1713456924
PATH_INFO
portal/about/doctormx/id/7.html
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
false
CMF_ROOT
/usr/home/byu7493720001/htdocs/animal/public/../
APP_PATH
/usr/home/byu7493720001/htdocs/animal/public/../app/
CMF_PATH
/usr/home/byu7493720001/htdocs/animal/public/../simplewind/cmf/
WEB_ROOT
/usr/home/byu7493720001/htdocs/animal/public/
PLUGINS_PATH
/usr/home/byu7493720001/htdocs/animal/public/plugins/
EXTEND_PATH
/usr/home/byu7493720001/htdocs/animal/public/../simplewind/extend/
VENDOR_PATH
/usr/home/byu7493720001/htdocs/animal/public/../simplewind/vendor/
RUNTIME_PATH
/usr/home/byu7493720001/htdocs/animal/public/../data/runtime/
THINKCMF_VERSION
5.0.190419
THINK_VERSION
5.0.24
THINK_START_TIME
1713456924.1998
THINK_START_MEM
388384
EXT
.php
DS
/
THINK_PATH
/usr/home/byu7493720001/htdocs/animal/simplewind/thinkphp/
LIB_PATH
/usr/home/byu7493720001/htdocs/animal/simplewind/thinkphp/library/
CORE_PATH
/usr/home/byu7493720001/htdocs/animal/simplewind/thinkphp/library/think/
TRAIT_PATH
/usr/home/byu7493720001/htdocs/animal/simplewind/thinkphp/library/traits/
ROOT_PATH
/usr/home/byu7493720001/htdocs/animal/
LOG_PATH
/usr/home/byu7493720001/htdocs/animal/public/../data/runtime/log/
CACHE_PATH
/usr/home/byu7493720001/htdocs/animal/public/../data/runtime/cache/
TEMP_PATH
/usr/home/byu7493720001/htdocs/animal/public/../data/runtime/temp/
CONF_PATH
/usr/home/byu7493720001/htdocs/animal/public/../app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/usr/home/byu7493720001/htdocs/animal/simplewind/vendor/ezyang/htmlpurifier/library