[8] ErrorException in HomeBaseController.php line 83

未定义变量: upnews

  1. $upnews="<a href='".url($request->controller().'/index',['typeid'=>$typeid,'sonid'=>$sonid,'cid'=>$topnews[$k-1]['id']])."'>上一篇:".$topnews[$k-1][$title]."</a><br/>";
  2. if($k<count($topnews)-1){
  3. $downnews="<a href='".url($request->controller().'/index',['typeid'=>$typeid,'sonid'=>$sonid,'cid'=>$topnews[$k+1]['id']])."'>下一篇:".$topnews[$k+1][$title]."</a><br/>";
  4. }else{
  5. $downnews="<a href='#'>下一篇:没有了!</a>";
  6. }
  7. }
  8. }
  9. }
  10. $this->assign(['upnews'=>$upnews,'downnews'=>$downnews]);
  11. }
  12. }

Call Stack

  1. in HomeBaseController.php line 83
  2. at Error::appError(8, 'Undefined variable: ...', '/usr/home/byu3526150...', 83, ['id' => '18', 'typeid' => '5', 'sonid' => '25', ...]) in HomeBaseController.php line 83
  3. at HomeBaseController->getpidData('18', '5', '25', 'Pics', 1, 'sort desc,uptime des...') in Picsshow.php line 31
  4. at Picsshow->index('18')
  5. at ReflectionMethod->invokeArgs(object(Picsshow), ['18']) in App.php line 196
  6. at App::invokeMethod([object(Picsshow), 'index'], []) in App.php line 416
  7. at App::module(['home', 'picsshow', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 295
  8. at App::exec(['type' => 'module', 'module' => ['home', 'picsshow', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  9. at App::run() in start.php line 19
  10. at require('/usr/home/byu3526150...') in index.php line 19

Exception Datas

Error Context
id 18
typeid 5
sonid 25
model Pics
isshow 1
order sort desc,uptime desc,id desc
pid 25
title title
request {}
topnews [ { "id": "50", "title": "\u676d\u5dde\u7389\u7687\u9876\u5e03\u5c40\u6848\u4f8b", "imgurl": "\/public\/uploads\/20180820\/8c04d53b77168c709d3faddb3dc19f56.jpg", "imgkeys": "", "imgdesc": "", "typeid": "25", "content": "&lt;p&gt;&lt;img src=&quot;\/public\/ueditor\/php\/upload\/image\/20180820\/1534752309657562.jpg&quot; title=&quot;1534752309657562.jpg&quot; alt=&quot;\u7389\u7687\u9876\u5e03\u5c40.jpg&quot;\/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\u6b64\u5b85\u4ee5\u6c34\u53e3\u5e03\u5c40\uff0c\u5b85\u4e3b\u661f\u7528\u9707\u5366\u3002&lt;\/p&gt;", "isshow": "1", "uptime": "1534752120", "sort": "0", "url": "", "seotitle": "", "hid": "", "hid1": "", "commend": "1", "weizhi": "0", "content1": "&lt;p&gt;&lt;img src=&quot;\/public\/ueditor\/php\/upload\/image\/20180820\/1534752408115740.jpg&quot; title=&quot;1534752408115740.jpg&quot; alt=&quot;\u7389\u7687\u9876\u5e03\u5c40.jpg&quot; width=&quot;691&quot; height=&quot;1048&quot;\/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \u6b64\u5b85\u4ee5\u6c34\u53e3\u5e03\u5c40\uff0c\u5b85\u4e3b\u661f\u7528\u9707\u5366\u3002&lt;\/p&gt;" }, { "id": "36", "title": "\u7f8e\u5bb9\u9662\u98ce\u6c34\u6848\u4f8b", "imgurl": "\/public\/uploads\/20180617\/d5a067c066dd1c99438a8938da00a821.jpg", "imgkeys": "\u516c\u53f8\u98ce\u6c34\uff0c\u5bb6\u5c45\u98ce\u6c34", "imgdesc": "\u7f8e\u5bb9\u9662\u98ce\u6c34\u6848\u4f8b", "typeid": "25", "content": "&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;\/public\/ueditor\/php\/upload\/image\/20180617\/1529202124573320.jpg&quot; title=&quot;1529202124573320.jpg&quot; alt=&quot;1529202124573320.jpg&quot; width=&quot;600&quot; height=&quot;800&quot;\/&gt;&lt;\/p&gt;", "isshow": "1", "uptime": "1529201880", "sort": "0", "url": "", "seotitle": "\u7f8e\u5bb9\u9662\u98ce\u6c34\u6848\u4f8b", "hid": "38,37,35,39,36,", "hid1": "168,167,159,30,161,157,", "commend": "1", "weizhi": "0", "content1": "&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;\/public\/ueditor\/php\/upload\/image\/20180617\/1529202153454853.jpg&quot; title=&quot;1529202153454853.jpg&quot; alt=&quot;1529202153454853.jpg&quot; width=&quot;600&quot; height=&quot;800&quot;\/&gt;&lt;\/p&gt;" }, { "id": "35", "title": "\u5bb6\u5c45\u98ce\u6c34\u6848\u4f8b\u4e09", "imgurl": "\/public\/uploads\/20180616\/53eaa170035ecaaa8333ca196c8eb1b0.jpg", "imgkeys": "\u5bb6\u5c45\u98ce\u6c34", "imgdesc": "", "typeid": "25", "content": "&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;\/public\/ueditor\/php\/upload\/image\/20180616\/1529116678110615.jpg&quot; title=&quot;1529116678110615.jpg&quot; alt=&quot;1529116678110615.jpg&quot; width=&quot;600&quot; height=&quot;800&quot;\/&gt;&lt;\/p&gt;", "isshow": "1", "uptime": "1529116500", "sort": "0", "url": "", "seotitle": "\u5bb6\u5c45\u98ce\u6c34\u6848\u4f8b\u4e09", "hid": "38,37,35,39,28,", "hid1": "30,162,161,160,151,150,", "commend": "1", "weizhi": "0", "content1": "&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;\/public\/ueditor\/php\/upload\/image\/20180616\/1529116709404069.jpg&quot; title=&quot;1529116709404069.jpg&quot; alt=&quot;1529116709404069.jpg&quot; width=&quot;600&quot; height=&quot;800&quot;\/&gt;&lt;\/p&gt;" }, { "id": "34", "title": "\u5bb6\u5c45\u98ce\u6c34\u6848\u4f8b", "imgurl": "\/public\/uploads\/20180616\/c737f30efe32fa01dbee45db54ab1e0c.jpg", "imgkeys": "\u5bb6\u5c45\u98ce\u6c34\uff0c", "imgdesc": "", "typeid": "25", "content": "&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;\/public\/ueditor\/php\/upload\/image\/20180616\/1529116382181958.jpg&quot; title=&quot;1529116382181958.jpg&quot; alt=&quot;1529116382181958.jpg&quot; width=&quot;600&quot; height=&quot;800&quot;\/&gt;&lt;\/p&gt;", "isshow": "1", "uptime": "1529116320", "sort": "0", "url": "", "seotitle": "\u5bb6\u5c45\u98ce\u6c34\u6848\u4f8b", "hid": "39,38,37,35,", "hid1": "30,163,150,154,156,", "commend": "1", "weizhi": "0", "content1": "&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;\/public\/ueditor\/php\/upload\/image\/20180616\/1529116475213933.jpg&quot; title=&quot;1529116475213933.jpg&quot; alt=&quot;1529116475213933.jpg&quot; width=&quot;600&quot; height=&quot;800&quot;\/&gt;&lt;\/p&gt;" } ]
k 3
v { "id": "34", "title": "\u5bb6\u5c45\u98ce\u6c34\u6848\u4f8b", "imgurl": "\/public\/uploads\/20180616\/c737f30efe32fa01dbee45db54ab1e0c.jpg", "imgkeys": "\u5bb6\u5c45\u98ce\u6c34\uff0c", "imgdesc": "", "typeid": "25", "content": "&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;\/public\/ueditor\/php\/upload\/image\/20180616\/1529116382181958.jpg&quot; title=&quot;1529116382181958.jpg&quot; alt=&quot;1529116382181958.jpg&quot; width=&quot;600&quot; height=&quot;800&quot;\/&gt;&lt;\/p&gt;", "isshow": "1", "uptime": "1529116320", "sort": "0", "url": "", "seotitle": "\u5bb6\u5c45\u98ce\u6c34\u6848\u4f8b", "hid": "39,38,37,35,", "hid1": "30,163,150,154,156,", "commend": "1", "weizhi": "0", "content1": "&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;\/public\/ueditor\/php\/upload\/image\/20180616\/1529116475213933.jpg&quot; title=&quot;1529116475213933.jpg&quot; alt=&quot;1529116475213933.jpg&quot; width=&quot;600&quot; height=&quot;800&quot;\/&gt;&lt;\/p&gt;" }

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

DOCUMENT_ROOT
/usr/home/byu3526150001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_HOST
m.djfsml.com
HTTP_USER_AGENT
claudebot
PATH
/bin
PHPRC
/var/www/php55/hichina_ini/byu3526150001
QUERY_STRING
s=/home/picsshow/index/typeid/5/sonid/25/cid/18.html
REDIRECT_DOCUMENT_ROOT
/usr/home/byu3526150001/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_HOST
m.djfsml.com
REDIRECT_HTTP_USER_AGENT
claudebot
REDIRECT_PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REDIRECT_PATH_INFO
/index/typeid/5/sonid/25/cid/18.html
REDIRECT_PATH_TRANSLATED
redirect:/index.php/typeid/5/sonid/25/cid/18.html
REDIRECT_QUERY_STRING
s=/home/picsshow/index/typeid/5/sonid/25/cid/18.html
REDIRECT_REMOTE_ADDR
3.93.173.205
REDIRECT_REMOTE_PORT
46314
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/home/picsshow/index/typeid/5/sonid/25/cid/18.html
REDIRECT_SCRIPT_FILENAME
/usr/home/byu3526150001/htdocs/home/picsshow
REDIRECT_SCRIPT_NAME
/home/picsshow
REDIRECT_SERVER_ADDR
10.22.55.27
REDIRECT_SERVER_ADMIN
webmaster@byu3526150001.my3w.com
REDIRECT_SERVER_NAME
m.djfsml.com
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_TZ
Asia/Shanghai
REDIRECT_UNIQUE_ID
ZfjzJQoWNxsAI9RaCPsAAAAA
REDIRECT_URL
/home/picsshow/index/typeid/5/sonid/25/cid/18.html
REMOTE_ADDR
3.93.173.205
REMOTE_PORT
46314
REQUEST_METHOD
GET
REQUEST_URI
/home/picsshow/index/typeid/5/sonid/25/cid/18.html
SCRIPT_FILENAME
/usr/home/byu3526150001/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
10.22.55.27
SERVER_ADMIN
webmaster@byu3526150001.my3w.com
SERVER_NAME
m.djfsml.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
TZ
Asia/Shanghai
UNIQUE_ID
ZfjzJQoWNxsAI9RaCPsAAAAA
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710813989.8774
REQUEST_TIME
1710813989
PATH_INFO
/home/picsshow/index/typeid/5/sonid/25/cid/18.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/usr/home/byu3526150001/htdocs/application/
THINK_VERSION
5.0.20
THINK_START_TIME
1710813989.8779
THINK_START_MEM
246864
EXT
.php
DS
/
THINK_PATH
/usr/home/byu3526150001/htdocs/thinkphp/
LIB_PATH
/usr/home/byu3526150001/htdocs/thinkphp/library/
CORE_PATH
/usr/home/byu3526150001/htdocs/thinkphp/library/think/
TRAIT_PATH
/usr/home/byu3526150001/htdocs/thinkphp/library/traits/
ROOT_PATH
/usr/home/byu3526150001/htdocs/
EXTEND_PATH
/usr/home/byu3526150001/htdocs/extend/
VENDOR_PATH
/usr/home/byu3526150001/htdocs/vendor/
RUNTIME_PATH
/usr/home/byu3526150001/htdocs/runtime/
LOG_PATH
/usr/home/byu3526150001/htdocs/runtime/log/
CACHE_PATH
/usr/home/byu3526150001/htdocs/runtime/cache/
TEMP_PATH
/usr/home/byu3526150001/htdocs/runtime/temp/
CONF_PATH
/usr/home/byu3526150001/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false