[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', '/www/wwwroot/boshlan...', 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' => true, 'app_trace' => false, ...], null) in App.php line 140
  7. at App::run() in start.php line 18
  8. at require('/www/wwwroot/boshlan...') 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
Cookies
PHPSESSID npe17sckfnq7vuesm35bkir8o7
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
REDIRECT_STATUS 200
proxy-nokeepalive 1
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_HOST www.boshland.com
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip
HTTP_COOKIE PHPSESSID=npe17sckfnq7vuesm35bkir8o7
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH /www/server/apache/lib
SERVER_SIGNATURE
Apache Server at www.boshland.com Port 80
SERVER_SOFTWARE Apache
SERVER_NAME www.boshland.com
SERVER_ADDR 172.25.29.161
SERVER_PORT 80
REMOTE_ADDR 104.253.239.234
DOCUMENT_ROOT /www/wwwroot/boshland
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /www/wwwroot/boshland
SERVER_ADMIN webmaster@example.com
SCRIPT_FILENAME /www/wwwroot/boshland/index.php
REMOTE_PORT 38790
REDIRECT_URL /index/solution/detail/id/幻灯片9.html
REDIRECT_QUERY_STRING s=/index/solution/detail/id/幻灯片9.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING s=/index/solution/detail/id/幻灯片9.html
REQUEST_URI /index/solution/detail/id/%E5%B9%BB%E7%81%AF%E7%89%879.html
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1606668534.4142
REQUEST_TIME 1606668534
PATH_INFO /index/solution/detail/id/幻灯片9.html
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/boshland/application/
BASE_PATH
ROOT_PATH /www/wwwroot/boshland/
EXTEND_PATH /www/wwwroot/boshland/core/extend/
VENDOR_PATH /www/wwwroot/boshland/core/vendor/
ICONV_ENABLED true
RUNTIME_PATH /www/wwwroot/boshland/data/
THINK_VERSION 5.0.3
THINK_START_TIME 1606668534.4146
THINK_START_MEM 269000
EXT .php
DS /
THINK_PATH /www/wwwroot/boshland/core/
LIB_PATH /www/wwwroot/boshland/core/library/
CORE_PATH /www/wwwroot/boshland/core/library/think/
TRAIT_PATH /www/wwwroot/boshland/core/library/traits/
LOG_PATH /www/wwwroot/boshland/data/log/
CACHE_PATH /www/wwwroot/boshland/data/cache/
TEMP_PATH /www/wwwroot/boshland/data/temp/
CONF_PATH /www/wwwroot/boshland/application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false
SENTCMS_VERSION 3.0.20161201
SENT_ADDON_PATH /www/wwwroot/boshland//addons/
MODULE_NAME index
CONTROLLER_NAME Solution
ACTION_NAME detail
IS_POST false
IS_GET true