[8] ErrorException in Product.php line 115

未定义数组索引: images

  1. }
  2. $this->assign('mbx', $mbx);
  3. //最新新闻
  4. $new_latest = db('article')->where(['is_check' => 1, 'is_release' => 0,])->field('id,title,urlname')->order('addtime desc')->limit(6)->select();
  5. $this->assign('new_latest', $new_latest);
  6. //详情数据
  7. $product_details = db('product')->where(['urlname' => $urlname])->find();
  8. $p_c = db('product_category')->where(['id' => $product_details['cate_id']])->find();
  9. $product_details['category'] = $p_c['category'];
  10. $product_details['images'] = explode(",", $product_details['images']);
  11. // 判断数组长度
  12. $product_details['count'] = count($product_details['images']);
  13. //设置tdk
  14. $this->set_system($product_details['seo_title'], $product_details['seo_keywords'], $product_details['seo_description']);
  15. $this->assign(['product_details' => $product_details]);
  16. //上一篇 下一篇
  17. $front = Db::name('product')->where('is_check', 1)->where('id', '>', $product_details['id'])->limit('1')->find();
  18. $after = Db::name('product')->where('is_check', 1)->where('id', '<', $product_details['id'])->limit('1')->find();
  19. $this->assign(['front' => $front]);

Call Stack

  1. in Product.php line 115
  2. at Error::appError(8, 'Undefined index: ima...', 'D:\wwwroot\beisenzx....', 115, ['urlname' => 'lsgfjddb8', 'p' => null, 'cate' => null, ...]) in Product.php line 115
  3. at Product->details()
  4. at ReflectionMethod->invokeArgs(object(Product), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Product), object(ReflectionMethod), ['city' => 'Maanshan', 'urlname' => 'lsgfjddb8', '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_ 9500
HTTP_CONNECTION close
SCRIPT_NAME /index.php
REQUEST_URI /pro/Maanshan/lsgfjddb8.html
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /pro/Maanshan/lsgfjddb8.html
REMOTE_PORT 56454
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 54.205.116.187
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 pro/Maanshan/lsgfjddb8.html
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711620963.9976
REQUEST_TIME 1711620963
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