[8] ErrorException in Article.php line 285

未定义数组下标: 1

  1. #↓-- 查询菜单对应模型规则 --↓#
  2. $models = model('common/SystemMenu')->where(['id' => $menu_id])->find();
  3. #↓-- 当前标题 --↓#
  4. $title = $models['name'];
  5. #↓-- 格式化数据对应模型 --↓#
  6. $DataStr = explode(".", $models['model']);
  7. $DataM = $DataStr[0];
  8. $type = $DataStr[1];
  9. $id = empty($aid) ? $type : $aid;
  10. $Art = model('common/' . $DataM)->where(['id' => $id])->find();
  11. $upPages = model('common/' . $DataM)
  12. ->where('id', '<', $id)
  13. ->where('parent_id', $son_id)
  14. ->find();

Call Stack

  1. in Article.php line 285
  2. at Error::appError(8, 'Undefined offset: 1', '/mnt/wwwroot/yxzyyy....', 285, ['parent_id' => '28', 'son_id' => '56', 'aid' => '240', ...]) in Article.php line 285
  3. at Article->AllContent()
  4. at ReflectionMethod->invokeArgs(object(Article), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Article), object(ReflectionMethod), ['parent_id' => '28', 'son_id' => '56', 'aid' => '240', ...]) in Module.php line 132
  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 137
  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)) in Auth.php line 42
  16. at Auth->handle(object(Request), object(Closure), null)
  17. at call_user_func_array([object(Auth), 'handle'], [object(Request), object(Closure), null]) in Middleware.php line 185
  18. at Middleware->think\{closure}(object(Request))
  19. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  20. at Middleware->dispatch(object(Request)) in App.php line 435
  21. at App->run() in index.php line 22

Environment Variables

GET Data
parent_id 28
son_id 56
aid 240
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
proxy-nokeepalive 1
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST yxzyyy.yxrmyy.cn
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH /www/server/apache/lib
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME yxzyyy.yxrmyy.cn
SERVER_ADDR 192.168.0.3
SERVER_PORT 80
REMOTE_ADDR 192.168.0.5
DOCUMENT_ROOT /mnt/wwwroot/yxzyyy.yxrmyy.cn/public
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /mnt/wwwroot/yxzyyy.yxrmyy.cn/public
SERVER_ADMIN webmaster@example.com
SCRIPT_FILENAME /mnt/wwwroot/yxzyyy.yxrmyy.cn/public/index.php
REMOTE_PORT 53222
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING parent_id=28&son_id=56&aid=240
REQUEST_URI /index.php/index/article/allcontent.html?parent_id=28&son_id=56&aid=240
SCRIPT_NAME /index.php
PATH_INFO /index/article/allcontent.html
PATH_TRANSLATED redirect:/index.php/allcontent.html
PHP_SELF /index.php/index/article/allcontent.html
REQUEST_TIME_FLOAT 1711635553.0797
REQUEST_TIME 1711635553
Environment Variablesempty
ThinkPHP Constants
__ROOT__ /mnt/wwwroot/yxzyyy.yxrmyy.cn/public/../
__PUBLIC__ /mnt/wwwroot/yxzyyy.yxrmyy.cn/public