[8] ErrorException in Page.php line 88

未定义数组索引: option

  1. }
  2. return $nav;
  3. }
  4. }
  5. public static function getUrl($enum)
  6. {
  7. $routeInfo = Request::instance()->routeInfo();
  8. $var = $routeInfo['var']??[];
  9. $url = $routeInfo['option']['cache'][0];
  10. foreach($enum as $k=>$v)
  11. {
  12. if(!isset($var[$k]))
  13. {
  14. $url .= '/:'.$k;
  15. }
  16. $var[$k] = $v;
  17. }

Call Stack

  1. in Page.php line 88
  2. at Error::appError(8, 'Undefined index: opt...', '/www/wwwroot/www_yph...', 88, ['enum' => ['page' => 9, 'order' => '0'], 'routeInfo' => [], 'var' => []]) in Page.php line 88
  3. at Page::getUrl(['page' => 9, 'order' => '0']) in d439f0812c19f9d6b5e4e141f468a57e.php line 156
  4. at include('/www/wwwroot/www_yph...') in File.php line 53
  5. at File->read('/www/wwwroot/www_yph...', ['site' => ['name' => '一品好男装', 'beian' => '浙ICP备18051721号...', 'cdnurl' => '', ...], 'menus' => [['name' => '首页', 'url' => '/', 'subs' => []], ['name' => '分类', 'url' => '/cat/index', 'subs' => [['name' => '女装', 'url' => '/cat/nvzhuang'], ['name' => '办公用品', 'url' => '/cat/bangong'], ['name' => '鞋靴', 'url' => '/cat/xiexue'], ...]], ['name' => 'T恤', 'url' => '/cat/nanshitxu', 'subs' => []], ...], 'user' => null, ...]) in Template.php line 188
  6. at Template->fetch('/www/wwwroot/www_yph...', ['site' => ['name' => '一品好男装', 'beian' => '浙ICP备18051721号...', 'cdnurl' => '', ...], 'menus' => [['name' => '首页', 'url' => '/', 'subs' => []], ['name' => '分类', 'url' => '/cat/index', 'subs' => [['name' => '女装', 'url' => '/cat/nvzhuang'], ['name' => '办公用品', 'url' => '/cat/bangong'], ['name' => '鞋靴', 'url' => '/cat/xiexue'], ...]], ['name' => 'T恤', 'url' => '/cat/nanshitxu', 'subs' => []], ...], 'user' => null, ...], []) in Think.php line 86
  7. at Think->fetch('/www/wwwroot/www_yph...', ['site' => ['name' => '一品好男装', 'beian' => '浙ICP备18051721号...', 'cdnurl' => '', ...], 'menus' => [['name' => '首页', 'url' => '/', 'subs' => []], ['name' => '分类', 'url' => '/cat/index', 'subs' => [['name' => '女装', 'url' => '/cat/nvzhuang'], ['name' => '办公用品', 'url' => '/cat/bangong'], ['name' => '鞋靴', 'url' => '/cat/xiexue'], ...]], ['name' => 'T恤', 'url' => '/cat/nanshitxu', 'subs' => []], ...], 'user' => null, ...], []) in View.php line 163
  8. at View->fetch() in Search.php line 53
  9. at Search->index()
  10. at ReflectionMethod->invokeArgs(object(Search), []) in App.php line 343
  11. at App::invokeMethod([object(Search), 'index'], []) in App.php line 611
  12. at App::module(['index', 'search', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  13. at App::exec(['type' => 'module', 'module' => ['index', 'search', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  14. at App::run() in start.php line 19
  15. at require('/www/wwwroot/www_yph...') in index.php line 34

Environment Variables

GET Data

kw
2������������
page
9
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.yphao.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/index/search/index
REDIRECT_STATUS
200
SERVER_NAME
www.yphao.com
SERVER_PORT
80
SERVER_ADDR
172.27.74.116
REMOTE_PORT
44466
REMOTE_ADDR
44.220.131.93
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www_yphao_com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/search/index?kw=2%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD&page=9
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/search/index&kw=2%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD&page=9
SCRIPT_FILENAME
/www/wwwroot/www_yphao_com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711661215.3645
REQUEST_TIME
1711661215
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www_yphao_com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711661215.365
THINK_START_MEM
417568
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www_yphao_com/thinkphp/
LIB_PATH
/www/wwwroot/www_yphao_com/thinkphp/library/
CORE_PATH
/www/wwwroot/www_yphao_com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www_yphao_com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www_yphao_com/
EXTEND_PATH
/www/wwwroot/www_yphao_com/extend/
VENDOR_PATH
/www/wwwroot/www_yphao_com/vendor/
RUNTIME_PATH
/www/wwwroot/www_yphao_com/runtime/
LOG_PATH
/www/wwwroot/www_yphao_com/runtime/log/
CACHE_PATH
/www/wwwroot/www_yphao_com/runtime/cache/
TEMP_PATH
/www/wwwroot/www_yphao_com/runtime/temp/
CONF_PATH
/www/wwwroot/www_yphao_com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/www/wwwroot/www_yphao_com/addons/