[8] ErrorException in Nav.php line 62

未定义数组索引: author_id

  1. ->where('a.type','page')
  2. ->where('a.status',1)
  3. ->where('b.term_id',$son)
  4. ->where('b.table','pages')
  5. ->find();
  6. //浏览量
  7. db('posts')->where('id',$post['object_id'])->setField('views',$post['views']+1);
  8. $post['views']=$post['views']+1;
  9. $author_name = userModel::get($post['author_id'])['nickname'];
  10. }else{
  11. $post=db('posts')->where('status',1)->where('type','page')->where('id',$post_id)->find();
  12. if($post==null)
  13. abort(404,'页面不存在');
  14. //浏览量
  15. $post['views']=$post['views']+1;
  16. db('posts')->update($post);

Call Stack

  1. in Nav.php line 62
  2. at Error::appError(8, 'Undefined index: aut...', '/home/SIST-WEB/Eacoo...', 62, ['parent' => '24', 'son' => '28', 'post_id' => 0, ...]) in Nav.php line 62
  3. at Nav->index('24', '28', 0)
  4. at ReflectionMethod->invokeArgs(object(Nav), ['24', '28', 0]) in App.php line 343
  5. at App::invokeMethod([object(Nav), 'index'], []) in App.php line 611
  6. at App::module(['home', 'nav', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => '0', ...], false) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['home', 'nav', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/home/SIST-WEB/Eacoo...') in index.php line 45

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
e2vo7ff5523kem56h28ktkqof3
Session
empty

Server/Request Data

REDIRECT_PATH_INFO
nav/24/28
REDIRECT_STATUS
200
HTTP_HOST
sist.stdu.edu.cn
HTTP_X_REAL_IP
104.202.68.48
HTTP_X_FORWARDED_FOR
104.202.68.48, 104.202.68.48
HTTP_USER_AGENT
Mozilla/5.0 (compatible; MegaIndex.ru/2.0; +http://megaindex.com/crawler)
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip
HTTP_COOKIE
PHPSESSID=e2vo7ff5523kem56h28ktkqof3
PATH
/sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
Apache/2.2.15 (CentOS) Server at sist.stdu.edu.cn Port 80
SERVER_SOFTWARE
Apache/2.2.15 (CentOS)
SERVER_NAME
sist.stdu.edu.cn
SERVER_ADDR
192.168.255.18
SERVER_PORT
80
REMOTE_ADDR
192.168.255.22
DOCUMENT_ROOT
/home/SIST-WEB/EacooPHP/public
SERVER_ADMIN
root@localhost
SCRIPT_FILENAME
/home/SIST-WEB/EacooPHP/public/index.php
REMOTE_PORT
14904
REDIRECT_URL
/nav/24/28
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/nav/24/28
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1570650109.727
REQUEST_TIME
1570650109
PATH_INFO
nav/24/28
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/SIST-WEB/EacooPHP/public/../apps/
PUBLIC_PATH
/home/SIST-WEB/EacooPHP/public/
THEME_PATH
/home/SIST-WEB/EacooPHP/public/themes/
MODULE_MARK
front
BASE_PATH
THINK_VERSION
5.0.24
THINK_START_TIME
1570650109.7285
THINK_START_MEM
383944
EXT
.php
DS
/
THINK_PATH
/home/SIST-WEB/EacooPHP/thinkphp/
LIB_PATH
/home/SIST-WEB/EacooPHP/thinkphp/library/
CORE_PATH
/home/SIST-WEB/EacooPHP/thinkphp/library/think/
TRAIT_PATH
/home/SIST-WEB/EacooPHP/thinkphp/library/traits/
ROOT_PATH
/home/SIST-WEB/EacooPHP/
EXTEND_PATH
/home/SIST-WEB/EacooPHP/extend/
VENDOR_PATH
/home/SIST-WEB/EacooPHP/vendor/
RUNTIME_PATH
/home/SIST-WEB/EacooPHP/runtime/
LOG_PATH
/home/SIST-WEB/EacooPHP/runtime/log/
CACHE_PATH
/home/SIST-WEB/EacooPHP/runtime/cache/
TEMP_PATH
/home/SIST-WEB/EacooPHP/runtime/temp/
CONF_PATH
/home/SIST-WEB/EacooPHP/public/../apps/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
EACOOPHP_V
1.3.0
BUILD_VERSION
201810102222
PLUGIN_PATH
/home/SIST-WEB/EacooPHP/plugins/
SERVER_SOFTWARE_TYPE
no
RESULT_SUCCESS
success
RESULT_ERROR
error
RESULT_REDIRECT
redirect
RESULT_MESSAGE
message
RESULT_URL
url
RESULT_DATA
data
DATA_COMMON_STATUS
status
DATA_NORMAL
1
DATA_DISABLE
0
DATA_DELETE
-1
DATA_SUCCESS
1
DATA_ERROR
0
TIME_CT_NAME
create_time
TIME_UT_NAME
update_time
TIME_NOW
1570650109
DB_PREFIX
eacoo_
DB_LIST_ROWS
10
MODULE_NAME
home
IS_MOBILE
false
CURRENT_THEME
LightMakeup-No1
ACCREDIT_TOKEN
3e292b2c51427f498e64188dcb2eaa12
CONTROLLER_NAME
Nav
ACTION_NAME
index
IS_POST
false
IS_AJAX
false
IS_PJAX
false
IS_GET
true