[8] ErrorException in common.php line 300

未定义数组索引: cate_id

  1. $tag = $tagModel::get($tagId);
  2. $tagNameArr[]=$tag['name'];
  3. }
  4. $tagNameStr = implode(',',$tagNameArr);
  5. $value['tag_id']=$tagNameStr;
  6. }
  7. //处理栏目
  8. $cateIdStr = $value['cate_id'];
  9. if (is_null($cateIdStr) or $cateIdStr == '0'){
  10. return $info;
  11. }
  12. if (strlen($cateIdStr) == 2 and strpos($cateIdStr,',')){
  13. //去掉为了准确获取新闻数据 在添加文章时 文章分类id加上的','
  14. $cateIdStr = substr($cateIdStr,0,1);
  15. $cate = $cateModel::get((int)($cateIdStr));

Call Stack

  1. in common.php line 300
  2. at Error::appError(8, 'Undefined index: cat...', '/opt/lampp/htdocs/cs...', 300, ['info' => [null], 'controller' => 'Products', 'controller_begin' => 're_Products', ...]) in common.php line 300
  3. at tag_cate_Show([null], 're_Products') in Solution.php line 65
  4. at Solution->show('400-827-6866')
  5. at ReflectionMethod->invokeArgs(object(Solution), ['400-827-6866']) in Container.php line 395
  6. at Container->invokeReflectMethod(object(Solution), object(ReflectionMethod), ['id' => '400-827-6866', 'convert' => false]) in Module.php line 132
  7. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  8. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  9. at Middleware->think\{closure}(object(Request))
  10. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  11. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  12. at Module->exec() in Dispatch.php line 168
  13. at Dispatch->run() in App.php line 432
  14. at App->think\{closure}(object(Request), object(Closure), null)
  15. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  16. at Middleware->think\{closure}(object(Request))
  17. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  18. at Middleware->dispatch(object(Request)) in App.php line 435
  19. at App->run() in index.php line 27

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
REDIRECT_UNIQUE_ID XeqWmwoa-mYAADtF1rYAAAAB
REDIRECT_PATH_INFO solutions/400-827-6866.html
REDIRECT_STATUS 200
UNIQUE_ID XeqWmwoa-mYAADtF1rYAAAAB
HTTP_HOST www.worldsgreatestmusicstore.com
HTTP_USER_AGENT serpstatbot/1.0 (advanced backlink tracking bot; curl/7.58.0; http://serpstatbot.com/; mail@worldsgreatestmusicstore.com)
HTTP_ACCEPT */*
PATH /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH /opt/lampp/lib:/opt/lampp/lib
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.16 (Unix) OpenSSL/1.0.1p PHP/5.6.12 mod_perl/2.0.8-dev Perl/v5.16.3
SERVER_NAME www.worldsgreatestmusicstore.com
SERVER_ADDR 118.178.124.54
SERVER_PORT 80
REMOTE_ADDR 156.232.248.190
DOCUMENT_ROOT /opt/lampp/htdocs/cs.ytxinhai.com/public
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /opt/lampp/htdocs/cs.ytxinhai.com/public
SERVER_ADMIN mail@worldsgreatestmusicstore.com
SCRIPT_FILENAME /opt/lampp/htdocs/cs.ytxinhai.com/public/index.php
REMOTE_PORT 62544
REDIRECT_URL /solutions/400-827-6866.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /solutions/400-827-6866.html
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1575655067.697
REQUEST_TIME 1575655067
Environment Variablesempty
ThinkPHP Constants
UPLOADPATH /opt/lampp/htdocs/cs.ytxinhai.com/public
IMGPATH ./uploads/