[8] ErrorException in Job.php line 40

未定义数组下标: 0

  1. return $this->fetch();
  2. }
  3. //查看私活详情
  4. public function jobcontent(){
  5. $id = $this->request->get('id');
  6. $job = new \app\admin\model\job();
  7. $job->click($id);
  8. $selectonejob= $job->selectonejob($id);
  9. $selectonejob =$selectonejob[0];
  10. $this->assign('selectonejob', $selectonejob);
  11. return $this->fetch();
  12. }

Call Stack

  1. in Job.php line 40
  2. at Error::appError(8, 'Undefined offset: 0', '/data/home/byu300399...', 40, ['id' => '31', 'job' => object(job), 'selectonejob' => []]) in Job.php line 40
  3. at Job->jobcontent()
  4. at ReflectionMethod->invokeArgs(object(Job), []) in App.php line 343
  5. at App::invokeMethod([object(Job), 'jobcontent'], []) in App.php line 611
  6. at App::module(['home', 'job', 'jobcontent'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  7. at App::exec(['type' => 'module', 'module' => ['home', 'job', 'jobcontent'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/data/home/byu300399...') in index.php line 17

Environment Variables

GET Data

id
31
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

DOCUMENT_ROOT
/usr/home/byu3003990001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_CONNECTION
Keep-Alive
HTTP_HOST
czsay.com
HTTP_IF_MODIFIED_SINCE
Sat, 20 Jul 2019 15:18:22 PDT
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
PATH
/bin:/usr/bin
PHPRC
/var/www/php55/hichina_ini/byu3003990001
QUERY_STRING
id=31
REDIRECT_DOCUMENT_ROOT
/usr/home/byu3003990001/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
REDIRECT_HTTP_ACCEPT_ENCODING
gzip
REDIRECT_HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
REDIRECT_HTTP_CONNECTION
Keep-Alive
REDIRECT_HTTP_HOST
czsay.com
REDIRECT_HTTP_IF_MODIFIED_SINCE
Sat, 20 Jul 2019 15:18:22 PDT
REDIRECT_HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
REDIRECT_PATH
/bin:/usr/bin
REDIRECT_QUERY_STRING
id=31
REDIRECT_REMOTE_ADDR
18.208.186.19
REDIRECT_REMOTE_PORT
55264
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/jobcontent?id=31
REDIRECT_SCRIPT_FILENAME
/usr/home/byu3003990001/htdocs/jobcontent
REDIRECT_SCRIPT_NAME
/jobcontent
REDIRECT_SCRIPT_URI
http://czsay.com/jobcontent
REDIRECT_SCRIPT_URL
/jobcontent
REDIRECT_SERVER_ADDR
172.18.19.92
REDIRECT_SERVER_ADMIN
webmaster@byu3003990001.my3w.com
REDIRECT_SERVER_NAME
czsay.com
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_UNIQUE_ID
XcqPtKwSE1wAAAJYbNAAAAAB
REDIRECT_URL
/jobcontent
REMOTE_ADDR
18.208.186.19
REMOTE_PORT
55264
REQUEST_METHOD
GET
REQUEST_URI
/jobcontent?id=31
SCRIPT_FILENAME
/usr/home/byu3003990001/htdocs/index.php
SCRIPT_NAME
/index.php
SCRIPT_URI
http://czsay.com/jobcontent
SCRIPT_URL
/jobcontent
SERVER_ADDR
172.18.19.92
SERVER_ADMIN
webmaster@byu3003990001.my3w.com
SERVER_NAME
czsay.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
UNIQUE_ID
XcqPtKwSE1wAAAJYbNAAAAAB
ORIG_PATH_INFO
/jobcontent
ORIG_PATH_TRANSLATED
/usr/home/byu3003990001/htdocs/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1573556148.8785
REQUEST_TIME
1573556148
PATH_INFO
/jobcontent
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/home/byu3003990001/htdocs/app/
THINK_VERSION
5.0.24
THINK_START_TIME
1573556148.8791
THINK_START_MEM
248952
EXT
.php
DS
/
THINK_PATH
/data/home/byu3003990001/htdocs/thinkphp/
LIB_PATH
/data/home/byu3003990001/htdocs/thinkphp/library/
CORE_PATH
/data/home/byu3003990001/htdocs/thinkphp/library/think/
TRAIT_PATH
/data/home/byu3003990001/htdocs/thinkphp/library/traits/
ROOT_PATH
/data/home/byu3003990001/htdocs/
EXTEND_PATH
/data/home/byu3003990001/htdocs/extend/
VENDOR_PATH
/data/home/byu3003990001/htdocs/vendor/
RUNTIME_PATH
/data/home/byu3003990001/htdocs/runtime/
LOG_PATH
/data/home/byu3003990001/htdocs/runtime/log/
CACHE_PATH
/data/home/byu3003990001/htdocs/runtime/cache/
TEMP_PATH
/data/home/byu3003990001/htdocs/runtime/temp/
CONF_PATH
/data/home/byu3003990001/htdocs/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false