[8] ErrorException in common.php line 1189

未定义数组索引: seo

  1. $article and $title = !empty($article['seo']) ? $article['seo'] : $article['title']. ' - '.$title;
  2. }
  3. if(!empty($article)){
  4. $keywords = !empty($article['keywords']) ? $article['keywords'] : $keywords;
  5. $description = !empty($article['description']) ? $article['description'] : $description;
  6. }elseif(!empty($cate)){
  7. $keywords = !empty($cate['keywords']) ? $cate['keywords'] : $keywords;
  8. $description = !empty($cate['description']) ? $cate['description'] : $description;
  9. }else{
  10. $title = $setting['seo'] ? $setting['seo'] : $title;
  11. }
  12. empty($str) or $title = $str;
  13. //默认显示首页seo标题
  14. $seoHtml .= '<title>'.$title.'</title>'.PHP_EOL;
  15. $seoHtml .= '<meta name="generator" content="'.$generator.'" />'.PHP_EOL;
  16. $seoHtml .= '<meta name="author" content="'.$author.'" />'.PHP_EOL;
  17. $seoHtml .= '<meta name="keywords" content="'.$keywords.'" />'.PHP_EOL;
  18. $seoHtml .= '<meta name="description" content="'.$description.'" />';
  19. //浏览量

Call Stack

  1. in common.php line 1189
  2. at Error::appError(8, 'Undefined index: seo', '/www/wwwroot/biaozhi...', 1189, ['cid' => '', 'id' => '', 'str' => '', ...]) in common.php line 1189
  3. at get_seo() in 0a49b19b23860b7357a9d18f4a48ab0c.php line 2
  4. at include('/www/wwwroot/biaozhi...') in File.php line 53
  5. at File->read('/www/wwwroot/biaozhi...', ['setting' => ['title' => ['id' => 20, 'title' => '网站名称', 'key' => 'title', ...], 'author' => ['id' => 21, 'title' => '网站作者', 'key' => 'author', ...], 'generator' => ['id' => 22, 'title' => '程序引擎', 'key' => 'generator', ...], ...], 'static_path' => '/public/static/', 'common_path' => '/public/static/commo...', ...]) in Template.php line 188
  6. at Template->fetch('/www/wwwroot/biaozhi...', ['setting' => ['title' => ['id' => 20, 'title' => '网站名称', 'key' => 'title', ...], 'author' => ['id' => 21, 'title' => '网站作者', 'key' => 'author', ...], 'generator' => ['id' => 22, 'title' => '程序引擎', 'key' => 'generator', ...], ...], 'static_path' => '/public/static/', 'common_path' => '/public/static/commo...', ...], []) in Think.php line 86
  7. at Think->fetch('/www/wwwroot/biaozhi...', ['setting' => ['title' => ['id' => 20, 'title' => '网站名称', 'key' => 'title', ...], 'author' => ['id' => 21, 'title' => '网站作者', 'key' => 'author', ...], 'generator' => ['id' => 22, 'title' => '程序引擎', 'key' => 'generator', ...], ...], 'static_path' => '/public/static/', 'common_path' => '/public/static/commo...', ...], []) in View.php line 163
  8. at View->fetch('', ['setting' => ['title' => ['id' => 20, 'title' => '网站名称', 'key' => 'title', ...], 'author' => ['id' => 21, 'title' => '网站作者', 'key' => 'author', ...], 'generator' => ['id' => 22, 'title' => '程序引擎', 'key' => 'generator', ...], ...], 'static_path' => '/public/static/', 'common_path' => '/public/static/commo...', ...], ['__ROOT__' => '', '__URL__' => '/portal/business', '__STATIC__' => '/public/static/', ...], []) in Controller.php line 120
  9. at Controller->fetch() in Business.php line 19
  10. at Business->index()
  11. at ReflectionMethod->invokeArgs(object(Business), []) in App.php line 343
  12. at App::invokeMethod([object(Business), 'index'], []) in App.php line 611
  13. at App::module([null, 'business', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  14. at App::exec(['type' => 'module', 'module' => [null, 'business', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  15. at App::run() in start.php line 19
  16. at require('/www/wwwroot/biaozhi...') in index.php line 14

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.peugeot-motocycles.com.cn
PATH_INFO
/business.html
REDIRECT_STATUS
200
SERVER_NAME
peugeot-motocycles.com.cn
SERVER_PORT
443
SERVER_ADDR
172.25.205.115
REMOTE_PORT
58124
REMOTE_ADDR
54.224.52.210
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/biaozhimotuo.longcai0531.cn
DOCUMENT_URI
/index.php
REQUEST_URI
/business.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/business.html
SCRIPT_FILENAME
/www/wwwroot/biaozhimotuo.longcai0531.cn/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710843577.4512
REQUEST_TIME
1710843577
Environment Variables
empty

ThinkPHP Constants

IS_PUBLIC
false
ROOT_PATH
/www/wwwroot/biaozhimotuo.longcai0531.cn/
PUBLIC_NAME
public
APP_PATH
/www/wwwroot/biaozhimotuo.longcai0531.cn/application/
WEJOY_PATH
/www/wwwroot/biaozhimotuo.longcai0531.cn/zhmx/
EXTEND_PATH
/www/wwwroot/biaozhimotuo.longcai0531.cn/zhmx/extend/
VENDOR_PATH
/www/wwwroot/biaozhimotuo.longcai0531.cn/zhmx/vendor/
THINK_VERSION
5.0.24
THINK_START_TIME
1710843577.4517
THINK_START_MEM
400472
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/biaozhimotuo.longcai0531.cn/zhmx/thinkphp/
LIB_PATH
/www/wwwroot/biaozhimotuo.longcai0531.cn/zhmx/thinkphp/library/
CORE_PATH
/www/wwwroot/biaozhimotuo.longcai0531.cn/zhmx/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/biaozhimotuo.longcai0531.cn/zhmx/thinkphp/library/traits/
RUNTIME_PATH
/www/wwwroot/biaozhimotuo.longcai0531.cn/runtime/
LOG_PATH
/www/wwwroot/biaozhimotuo.longcai0531.cn/runtime/log/
CACHE_PATH
/www/wwwroot/biaozhimotuo.longcai0531.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/biaozhimotuo.longcai0531.cn/runtime/temp/
CONF_PATH
/www/wwwroot/biaozhimotuo.longcai0531.cn/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
APP_DEBUG
true
MODEL
0
IS_CLI
false
IS_WIN
false