[8] ErrorException in Article.php line 112

未定义数组索引: seo_title

  1. //判断是否存在外链
  2. if($article_details['url']){
  3. echo '<script>window.location.href="'.$article_details['url'].'";</script>';exit;
  4. }
  5. //更新文章的人气
  6. $article_details_hits = db('article')->where(['id' => $article_details['id']])->update(['hits' => $article_details['hits'] + 1]);
  7. $article_details['images'] = explode(",", $article_details['images']);
  8. //设置tdk
  9. $this->set_system($article_details['seo_title'], $article_details['seo_keywords'], $article_details['seo_description']);
  10. $this->assign('article_details', $article_details);
  11. //查同类
  12. $cate = db('article_category')->where(['is_check' => 1, 'id' => $article_details['cate_id']])->field('parentid,category,urlname')->find();
  13. $article_category = db('article_category')->where(['is_check' => 1, 'parentid' => $cate['parentid']])->field('id,category,urlname')->order('paixu desc')->select();
  14. $this->assign('article_category', $article_category);
  15. //面包屑
  16. $mbx = '';
  17. foreach ($article_category as $k => $v) {
  18. $url = filter_url(url('article/lists', ['city' => $this->city, 'urlname' => $v['urlname']]));

Call Stack

  1. in Article.php line 112
  2. at Error::appError(8, 'Undefined index: seo...', 'D:\wwwroot\beisenzx....', 112, ['urlname' => 'hydt88', 'article_category' => [['id' => 1, 'urlname' => 'qyxw', 'category' => '企业新闻', ...], ['id' => 2, 'urlname' => 'hyxw', 'category' => '行业新闻', ...], ['id' => 3, 'urlname' => 'cjwd', 'category' => '常见问答', ...]], 'v' => ['id' => 3, 'urlname' => 'cjwd', 'category' => '常见问答', ...], ...]) in Article.php line 112
  3. at Article->details()
  4. at ReflectionMethod->invokeArgs(object(Article), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Article), object(ReflectionMethod), ['city' => 'hydt88', 'convert' => false]) in Module.php line 131
  6. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  7. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  8. at Middleware->think\{closure}(object(Request))
  9. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  10. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  13. at App->think\{closure}(object(Request), object(Closure), null)
  14. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  15. at Middleware->think\{closure}(object(Request))
  16. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  17. at Middleware->dispatch(object(Request)) in App.php line 435
  18. at App->run() in index.php line 29

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
PATH C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\
SYSTEMROOT C:\Windows
COMSPEC C:\Windows\system32\cmd.exe
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR C:\Windows
PHPRC D:/phpstudy_pro/Extensions/php/php7.0.9nts
_FCGI_SHUTDOWN_EVENT_ 12552
HTTP_CONNECTION close
SCRIPT_NAME /index.php
REQUEST_URI /art/hydt88.html
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /art/hydt88.html
REMOTE_PORT 48758
SCRIPT_FILENAME D:/wwwroot/beisenzx.cn/public/index.php
SERVER_ADMIN admin@example.com
CONTEXT_DOCUMENT_ROOT D:/wwwroot/beisenzx.cn/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT D:/wwwroot/beisenzx.cn/public
REMOTE_ADDR 34.227.191.136
SERVER_PORT 80
SERVER_ADDR 172.16.238.225
SERVER_NAME www.xrjjf.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
SystemRoot C:\Windows
HTTP_HOST www.xrjjf.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
REDIRECT_STATUS 200
REDIRECT_PATH_INFO art/hydt88.html
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711625853.979
REQUEST_TIME 1711625853
Environment Variablesempty
ThinkPHP Constants
DS \
APP_PATH D:\wwwroot\beisenzx.cn\public/../application/
CONF_PATH D:\wwwroot\beisenzx.cn\public/../config/
PUBILC_PATH D:\wwwroot\beisenzx.cn\public/
ROOT_PATH D:\wwwroot\beisenzx.cn\public
CACHE_PATH D:\wwwroot\beisenzx.cn\public/../runtime/
CONFIG_PATH D:\wwwroot\beisenzx.cn\public/../config/
UPLOAD_PATH uploads