[8] ErrorException in About.php line 12

未定義數組索引: seotitle

  1. class About extends Common{
  2. public function detail(){
  3. $about_model = new \app\index\model\About();
  4. $info = $about_model->getInfo();
  5. $this->assign('_info', $info);
  6. $this->set_seo($info['seotitle'] ? $info['seotitle'] : $info['title'], $info['keywords'], $info['description']);
  7. $_tpl = $this->tpl_pre.'detail';
  8. return $this->fetch($_tpl);
  9. }
  10. }

Call Stack

  1. in About.php line 12
  2. at Error::appError(8, 'Undefined index: seo...', '/home/www/fredamdcom...', 12, ['about_model' => object(About), 'info' => []]) in About.php line 12
  3. at About->detail()
  4. at ReflectionMethod->invokeArgs(object(About), []) in App.php line 224
  5. at App::invokeMethod([object(About), 'detail'], []) in App.php line 392
  6. at App::module(['index', 'about', 'detail'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 130
  7. at App::run() in start.php line 18
  8. at require('/home/www/fredamdcom...') in index.php line 17

Exception Datas

Error Context
about_model []
info []

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER apache
HOME /usr/share/httpd
HTTP_X_FORWARDED_FOR 66.126.140.175
HTTP_CLIENT_IP 60.102.96.221
HTTP_REFERER http://juhua452334.cn/about/adv.html
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
HTTP_HOST juhua452334.cn
REDIRECT_STATUS 200
SERVER_NAME juhua452334.cn
SERVER_PORT 80
SERVER_ADDR 172.16.3.26
REMOTE_PORT 53554
REMOTE_ADDR 156.224.184.195
SERVER_SOFTWARE nginx/1.16.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /etc/nginx/html
DOCUMENT_URI /index.php//about/adv.html
REQUEST_URI /about/adv.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /home/www/fredamdcom/public/index.php
PATH_TRANSLATED /etc/nginx/html//about/adv.html
PATH_INFO //about/adv.html
FCGI_ROLE RESPONDER
PHP_SELF /index.php//about/adv.html
REQUEST_TIME_FLOAT 1569542530.3388
REQUEST_TIME 1569542530
Environment Variablesempty
ThinkPHP Constants
APP_PATH /home/www/fredamdcom/public/../application/
THINK_VERSION 5.0.5
THINK_START_TIME 1569542530.3389
THINK_START_MEM 357800
EXT .php
DS /
THINK_PATH /home/www/fredamdcom/thinkphp/
LIB_PATH /home/www/fredamdcom/thinkphp/library/
CORE_PATH /home/www/fredamdcom/thinkphp/library/think/
TRAIT_PATH /home/www/fredamdcom/thinkphp/library/traits/
ROOT_PATH /home/www/fredamdcom/
EXTEND_PATH /home/www/fredamdcom/extend/
VENDOR_PATH /home/www/fredamdcom/vendor/
RUNTIME_PATH /home/www/fredamdcom/runtime/
LOG_PATH /home/www/fredamdcom/runtime/log/
CACHE_PATH /home/www/fredamdcom/runtime/cache/
TEMP_PATH /home/www/fredamdcom/runtime/temp/
CONF_PATH /home/www/fredamdcom/public/../application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false
NOW_TIME 1569542530