[8] ErrorException in Home.php line 93

Trying to access array offset on value of type null

  1. $id = Str::lower($id);
  2. if ($id === 'undefined' || $id === 'null') {
  3. $this->error('404 Not Found');
  4. }
  5. $this->getSidebar();
  6. $article = Article::where('article_id', '=', $id)->find();
  7. $category = Category::where("id", '=', $article['category_id'])->find();
  8. $prev = Article::where('category_id', '=', $article['category_id'])
  9. ->where('article_id', '<', $article['article_id'])
  10. ->order('article_id', 'desc')
  11. ->limit(1)
  12. ->find();
  13. $next = Article::where('category_id', '=', $article['category_id'])
  14. ->where('article_id', '>', $article['article_id'])

Call Stack

  1. in Home.php line 93
  2. at Error::appError() in Home.php line 93
  3. at Home->detail()
  4. at ReflectionMethod->invokeArgs() in App.php line 343
  5. at App::invokeMethod() in App.php line 611
  6. at App::module() in App.php line 456
  7. at App::exec() in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/www.kid...') in index.php line 23

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_REFERER
http://www.kidsplayground-equipment.com/news/ninja-course-104813.html
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.kidsplayground-equipment.com
PATH_INFO
/news/ninja-course-104813.html
REDIRECT_STATUS
200
SERVER_NAME
www.kidsplayground-equipment.com
SERVER_PORT
443
SERVER_ADDR
10.0.0.8
REMOTE_PORT
41546
REMOTE_ADDR
18.234.165.107
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/www.kidsplayground-equipment.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/news/ninja-course-104813.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/news/ninja-course-104813.html
SCRIPT_FILENAME
/www/wwwroot/www.kidsplayground-equipment.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711653451.6577
REQUEST_TIME
1711653451
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.kidsplayground-equipment.com/public/../application/
THINK_VERSION
5.0.25
THINK_START_TIME
1711653451.6584
THINK_START_MEM
409224
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.kidsplayground-equipment.com/thinkphp/
LIB_PATH
/www/wwwroot/www.kidsplayground-equipment.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.kidsplayground-equipment.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.kidsplayground-equipment.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.kidsplayground-equipment.com/
EXTEND_PATH
/www/wwwroot/www.kidsplayground-equipment.com/extend/
VENDOR_PATH
/www/wwwroot/www.kidsplayground-equipment.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.kidsplayground-equipment.com/runtime/
LOG_PATH
/www/wwwroot/www.kidsplayground-equipment.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.kidsplayground-equipment.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.kidsplayground-equipment.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.kidsplayground-equipment.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
HTMLPURIFIER_PREFIX
/www/wwwroot/www.kidsplayground-equipment.com/vendor/ezyang/htmlpurifier/library
ADDON_PATH
/www/wwwroot/www.kidsplayground-equipment.com/addons/