[8] ErrorException in Index.php line 132

未定义数组索引:

  1. $city = $this->centerCity;
  2. }
  3. $this->assign('city',$city);
  4. $kinds = Model('kind')->kinds();
  5. $kind2s = array_column($kinds,'work_id');
  6. $kind2s = array_combine($kind2s,$kinds);
  7. $kind2s = $kind2s[$id1_info['work_id']]['small'];
  8. $id2s = array_column($kind2s,'work_id');
  9. $kind2s = array_combine($id2s,$kind2s);
  10. if(isset($kind2s[$id2_info['work_id']]))
  11. {
  12. $curr_id2 = $kind2s[$id2_info['work_id']];
  13. unset($kind2s[$id2_info['work_id']]);
  14. array_unshift($kind2s,$curr_id2);
  15. }
  16. $this->assign('kind2s',$kind2s);

Call Stack

  1. in Index.php line 132
  2. at Error::appError(8, 'Undefined index: ', '/www/malait-mobile/a...', 132, ['id1' => 0, 'id1_info' => false, 'id2' => 0, ...]) in Index.php line 132
  3. at Index->lists()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['pinyin' => 'zhengzhou', 'id3' => '34395', 'city_id' => '405', ...]) 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 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
tp_pinyin zhengzhou
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST m.malait.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
REDIRECT_STATUS 200
SERVER_NAME m.malait.com
SERVER_PORT 80
SERVER_ADDR 116.255.148.206
REMOTE_PORT 59576
REMOTE_ADDR 54.208.238.160
SERVER_SOFTWARE nginx/1.10.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/malait-mobile/public
DOCUMENT_URI /index.php
REQUEST_URI /com_34395_c405.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//com_34395_c405.html
SCRIPT_FILENAME /www/malait-mobile/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711621686.2138
REQUEST_TIME 1711621686
Environment Variablesempty
ThinkPHP Constantsempty