[8] ErrorException in common.php line 1555

未定义变量: catid

  1. $catid = $route['catid'];
  2. } elseif (isset($route['catdir1']) || isset($route['catdir2'])) {
  3. $catdir = isset($route['catdir1']) ? $route['catdir1'] : $route['catdir2'];
  4. $catdir = new_html_special_chars(strip_tags($catdir));
  5. $cat = Db::name('category')->where('catdir', $catdir)->field('catid')->find();
  6. if ($cat) {
  7. $catid = intval($cat['catid']);
  8. }
  9. }
  10. return $catid;
  11. }
  12. //附件上传处理
  13. function annex($controller, $catid, $id, $info)
  14. {
  15. if ($info) {
  16. $keyid = "$controller-$catid-$id";
  17. //先删除所依赖的附件
  18. $fjs = Db::name('annex_index')->where('keyid', $keyid)->select();

Call Stack

  1. in common.php line 1555
  2. at Error::appError(8, 'Undefined variable: ...', '/data/wwwroot/www.lc...', 1555, ['route' => ['catdir1' => 'shipinzaixian11', 'id' => '3486'], 'catdir' => 'shipinzaixian11', 'cat' => null]) in common.php line 1555
  3. at get_catid() in Index.php line 342
  4. at Index->show(0, '3486')
  5. at ReflectionMethod->invokeArgs(object(Index), [0, '3486']) in App.php line 343
  6. at App::invokeMethod([object(Index), 'show'], []) in App.php line 611
  7. at App::module([null, 'index', 'show'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  8. at App::exec(['type' => 'module', 'module' => [null, 'index', 'show'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/data/wwwroot/www.lc...') in index.php line 16

Environment Variables

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

Server/Request Data

TEMP
/tmp
TMPDIR
/tmp
TMP
/tmp
PATH
/usr/local/bin:/usr/bin:/bin
USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/data/wwwroot/www.lcjzwl.com/index.php
QUERY_STRING
s=//shipinzaixian11/3486.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/shipinzaixian11/3486.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/data/wwwroot/www.lcjzwl.com
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.12.0
REMOTE_ADDR
3.238.79.169
REMOTE_PORT
51876
SERVER_ADDR
172.18.15.217
SERVER_PORT
80
SERVER_NAME
www.lcjzwl.com
REDIRECT_STATUS
200
PHP_VALUE
open_basedir=/data/wwwroot/www.lcjzwl.com:/tmp/:/proc/
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
www.lcjzwl.com
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711643769.5191
REQUEST_TIME
1711643769
PATH_INFO
//shipinzaixian11/3486.html
ALL_HTTP
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/wwwroot/www.lcjzwl.com/application/
IN_LFCMS
true
THINK_VERSION
5.0.24
THINK_START_TIME
1711643769.5193
THINK_START_MEM
233248
EXT
.php
DS
/
THINK_PATH
/data/wwwroot/www.lcjzwl.com/thinkphp/
LIB_PATH
/data/wwwroot/www.lcjzwl.com/thinkphp/library/
CORE_PATH
/data/wwwroot/www.lcjzwl.com/thinkphp/library/think/
TRAIT_PATH
/data/wwwroot/www.lcjzwl.com/thinkphp/library/traits/
ROOT_PATH
/data/wwwroot/www.lcjzwl.com/
EXTEND_PATH
/data/wwwroot/www.lcjzwl.com/extend/
VENDOR_PATH
/data/wwwroot/www.lcjzwl.com/vendor/
RUNTIME_PATH
/data/wwwroot/www.lcjzwl.com/runtime/
LOG_PATH
/data/wwwroot/www.lcjzwl.com/runtime/log/
CACHE_PATH
/data/wwwroot/www.lcjzwl.com/runtime/cache/
TEMP_PATH
/data/wwwroot/www.lcjzwl.com/runtime/temp/
CONF_PATH
/data/wwwroot/www.lcjzwl.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false