[0] HttpException in Article.php line 32

未找到相关信息

  1. protected function initialize()
  2. {
  3. parent::initialize();
  4. $id = $this->request->param('id/d');
  5. if(empty($id)){
  6. throw new HttpException(404, '未找到相关信息');
  7. }
  8. $arcinfo = Db::name('article')->where('id',$id)->cache(config('cache.expire'))->find();
  9. if(empty($arcinfo)){
  10. throw new HttpException(404, '未找到相关信息');
  11. }
  12. $typeinfo = Db::name('category')->where('id',$arcinfo['typeid'])->cache(config('cache.expire'))->find();
  13. if(empty($typeinfo)){
  14. throw new HttpException(404, '未找到相关信息');
  15. }
  16. foreach ($typeinfo as $key => &$val){
  17. if(in_array($key,['template_index','template_list','template_article'])){
  18. if(preg_match('/.*?(\.htm[l])$/i', $val, $matches)){
  19. if(!empty($matches[1])){

Call Stack

  1. in Article.php line 32
  2. at Article->initialize() in Controller.php line 68
  3. at Controller->__construct(object(App))
  4. at ReflectionClass->newInstanceArgs([object(App)]) in Container.php line 439
  5. at Container->invokeClass('app\portal\controlle...', []) in Container.php line 284
  6. at Container->make('app\portal\controlle...', []) in App.php line 725
  7. at App->controller('Article', 'controller', false, 'Error') in Module.php line 94
  8. at Module->exec() in Dispatch.php line 168
  9. at Dispatch->run() in App.php line 432
  10. at App->think\{closure}(object(Request), object(Closure), null)
  11. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  12. at Middleware->think\{closure}(object(Request))
  13. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  14. at Middleware->dispatch(object(Request)) in App.php line 435
  15. at App->run() in index.php line 26

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.bjxuanzhen.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.bjxuanzhen.com
SERVER_PORT 80
SERVER_ADDR 172.16.225.176
REMOTE_PORT 59006
REMOTE_ADDR 52.55.214.236
SERVER_SOFTWARE nginx/1.20.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.bjxuanzhen.com
DOCUMENT_URI /index.php
REQUEST_URI /arc/23-84.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/arc/23-84.html
SCRIPT_FILENAME /www/wwwroot/www.bjxuanzhen.com/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711641966.1539
REQUEST_TIME 1711641966
Environment Variablesempty
ThinkPHP Constants
APP_VERSION 2.2.1
APP_NAME EndCMS内容管理
UPLOAD_DIR /www/wwwroot/www.bjxuanzhen.com/uploads/
APP_PATH /www/wwwroot/www.bjxuanzhen.com/application
DEFAULT_THUMB /static/images/default.png