[8] ErrorException in Solution.php line 107

未定义数组下标: 0

  1. $solarticle = $solu
  2. ->alias('a')
  3. ->join('sent_picture b','a.picture = b.id','LEFT')
  4. ->where('a.status',1)
  5. ->where('a.id',$id)
  6. ->select();
  7. $bb = $solarticle[0]['title'];
  8. $this->assign(
  9. [
  10. 'adlist'=>$adlist,
  11. 'solarticle'=>$solarticle,
  12. 'bb'=>$bb,
  13. 'aaa'=>24,
  14. ]
  15. );

Call Stack

  1. in Solution.php line 107
  2. at Error::appError(8, 'Undefined offset: 0', '/data/home/qyu727673...', 107, ['id' => '幻灯片9', 'sol' => object(Solution), 'solu' => object(Solutiontwo), ...]) in Solution.php line 107
  3. at Solution->detail('幻灯片9')
  4. at ReflectionMethod->invokeArgs(object(Solution), ['幻灯片9']) in App.php line 234
  5. at App::invokeMethod([object(Solution), 'detail'], []) in App.php line 401
  6. at App::module(['index', 'solution', 'detail'], ['app_namespace' => 'app', 'app_debug' => '1', 'app_trace' => false, ...], true) in App.php line 140
  7. at App::run() in start.php line 18
  8. at require('/data/home/qyu727673...') in index.php line 34

Exception Datas

Error Context
id
幻灯片9
sol
[]
solu
[]
adlist
[ { "id": 298, "place_id": 17, "title": "\u89e3\u51b3\u65b9\u6848", "cover_id": 298, "photolist": "", "url": "\/uploads\/picture\/20190522\/68728f7fd94b66610d83c96080da768f.png", "listurl": null, "background": null, "content": "\u7ecf\u9a8c\u4e30\u5bcc\u7684\u4e13\u4e1a\u56e2\u961f\uff0c\u4e3a\u4e0d\u540c\u884c\u4e1a\u4e0d\u540c\u9886\u57df\u5404\u7c7b\u5b9e\u9a8c\u5ba4\uff0c\r\n\u63d0\u4f9b\u5177\u6709\u884c\u4e1a\u9488\u5bf9\u6027\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u6839\u636e\u5b9e\u9645\u9700\u6c42\u65bd\u884c\u201c\u91cf\u8eab\u5b9a\u5236\u201d", "create_time": 1558505415, "update_time": 1558505417, "status": 1, "path": "\/uploads\/picture\/20190522\/68728f7fd94b66610d83c96080da768f.png", "md5": "2bf8788fcad3570dabb000ef0c384528", "sha1": "6ad4211c1893dc7735c4dc0ae4e378b8a5434690" } ]
solarticle
[]

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
DOCUMENT_ROOT
/usr/home/qyu7276730001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_HOST
www.boshland.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
PATH
/bin:/usr/bin
PHPRC
/var/www/php70/hichina_ini/qyu7276730001
QUERY_STRING
s=/index/solution/detail/id/幻灯片9.html
REDIRECT_DOCUMENT_ROOT
/usr/home/qyu7276730001/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_ACCEPT_ENCODING
deflate, gzip
REDIRECT_HTTP_HOST
www.boshland.com
REDIRECT_HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
REDIRECT_PATH
/sbin:/usr/sbin:/bin:/usr/bin
REDIRECT_PATH_INFO
/solution/detail/id/幻灯片9.html
REDIRECT_PATH_TRANSLATED
redirect:/index.php/detail/id/幻灯片9.html
REDIRECT_QUERY_STRING
s=/index/solution/detail/id/幻灯片9.html
REDIRECT_REMOTE_ADDR
154.218.24.150
REDIRECT_REMOTE_PORT
20031
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/index/solution/detail/id/%E5%B9%BB%E7%81%AF%E7%89%879.html
REDIRECT_SCRIPT_FILENAME
/usr/home/qyu7276730001/htdocs/index
REDIRECT_SCRIPT_NAME
/index
REDIRECT_SCRIPT_URI
http://www.boshland.com/index/solution/detail/id/幻灯片9.html
REDIRECT_SCRIPT_URL
/index/solution/detail/id/幻灯片9.html
REDIRECT_SERVER_ADDR
172.17.128.189
REDIRECT_SERVER_ADMIN
webmaster@qyu7276730001.my3w.com
REDIRECT_SERVER_NAME
www.boshland.com
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_UNIQUE_ID
XdUWo6wRgL0AADfNqrMAAAAB
REDIRECT_URL
/index/solution/detail/id/幻灯片9.html
REMOTE_ADDR
154.218.24.150
REMOTE_PORT
20031
REQUEST_METHOD
GET
REQUEST_URI
/index/solution/detail/id/%E5%B9%BB%E7%81%AF%E7%89%879.html
SCRIPT_FILENAME
/usr/home/qyu7276730001/htdocs/index.php
SCRIPT_NAME
/index.php
SCRIPT_URI
http://www.boshland.com/index/solution/detail/id/幻灯片9.html
SCRIPT_URL
/index/solution/detail/id/幻灯片9.html
SERVER_ADDR
172.17.128.189
SERVER_ADMIN
webmaster@qyu7276730001.my3w.com
SERVER_NAME
www.boshland.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
UNIQUE_ID
XdUWo6wRgL0AADfNqrMAAAAB
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1574246051.3153
REQUEST_TIME
1574246051
PATH_INFO
/index/solution/detail/id/幻灯片9.html
Environment Variablesempty
ThinkPHP Constants
APP_PATH
/data/home/qyu7276730001/htdocs/application/
BASE_PATH
ROOT_PATH
/data/home/qyu7276730001/htdocs/
EXTEND_PATH
/data/home/qyu7276730001/htdocs/core/extend/
VENDOR_PATH
/data/home/qyu7276730001/htdocs/core/vendor/
ICONV_ENABLED
true
RUNTIME_PATH
/data/home/qyu7276730001/htdocs/data/
THINK_VERSION
5.0.3
THINK_START_TIME
1574246051.3161
THINK_START_MEM
351712
EXT
.php
DS
/
THINK_PATH
/data/home/qyu7276730001/htdocs/core/
LIB_PATH
/data/home/qyu7276730001/htdocs/core/library/
CORE_PATH
/data/home/qyu7276730001/htdocs/core/library/think/
TRAIT_PATH
/data/home/qyu7276730001/htdocs/core/library/traits/
LOG_PATH
/data/home/qyu7276730001/htdocs/data/log/
CACHE_PATH
/data/home/qyu7276730001/htdocs/data/cache/
TEMP_PATH
/data/home/qyu7276730001/htdocs/data/temp/
CONF_PATH
/data/home/qyu7276730001/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
SENTCMS_VERSION
3.0.20161201
SENT_ADDON_PATH
/data/home/qyu7276730001/htdocs//addons/
MODULE_NAME
index
CONTROLLER_NAME
Solution
ACTION_NAME
detail
IS_POST
false
IS_GET
true