[8] ErrorException in Content.php line 91

未定义数组索引: web_view_tpl

  1. /**
  2. * 获取模板路径
  3. * @param mixed $column 当前栏目
  4. * @param string $type 页面类型 list | view
  5. * @return string
  6. */
  7. private function getTemplate($column, $type, $ext = 'html')
  8. {
  9. $template = $column['web_'.$type.'_tpl'];
  10. return $template;
  11. }
  12. /**
  13. * 搜索
  14. * @return view
  15. */
  16. public function search()
  17. {

Call Stack

  1. in Content.php line 91
  2. at Error::appError(8, 'Undefined index: web...', '/data/wwwroot/www.vi...', 91, ['column' => ['position_column' => []], 'type' => 'view', 'ext' => 'html']) in Content.php line 91
  3. at Content->getTemplate(['position_column' => []], 'view') in Content.php line 80
  4. at Content->detail()
  5. at ReflectionMethod->invokeArgs(object(Content), []) in Container.php line 395
  6. at Container->invokeReflectMethod(object(Content), object(ReflectionMethod), ['c' => 'develop_detail', 'id' => '12', 'convert' => false]) in Module.php line 132
  7. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  8. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  9. at Middleware->think\{closure}(object(Request))
  10. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  11. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  12. at Module->exec() in Dispatch.php line 168
  13. at Dispatch->run() in App.php line 432
  14. at App->think\{closure}(object(Request), object(Closure), null)
  15. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  16. at Middleware->think\{closure}(object(Request))
  17. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  18. at Middleware->dispatch(object(Request)) in App.php line 435
  19. at App->run() in index.php line 47

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.victroncms.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.victroncms.com
SERVER_PORT 443
SERVER_ADDR 172.18.0.222
REMOTE_PORT 60322
REMOTE_ADDR 3.235.251.99
SERVER_SOFTWARE nginx/1.20.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /data/wwwroot/www.victroncms.com
DOCUMENT_URI /index.php
REQUEST_URI /develop_detail/12.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/develop_detail/12.html
SCRIPT_FILENAME /data/wwwroot/www.victroncms.com/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711642283.9645
REQUEST_TIME 1711642283
Environment Variablesempty
ThinkPHP Constants
SUB_ROOT
QINIU_FUNCTIONS_VERSION 7.3.0