Fatal error: Call to undefined function app\portal\controller\sp_template_file_exists() in /www/wwwroot/test.eventsguide.cn/app/portal/controller/ArticleController.php on line 96

[1] ErrorException in ArticleController.php line 96

Call to undefined function app\portal\controller\sp_template_file_exists()

  1. $id = $this->request->param('id', 0, 'intval');//关系表id
  2. $portalCategoryModel = new PortalCategoryModel();
  3. $article=sp_sql_post($id,'');
  4. if(empty($article)){
  5. header('HTTP/1.1 404 Not Found');
  6. header('Status:404 Not Found');
  7. if(sp_template_file_exists(MODULE_NAME."/404")){
  8. $this->display(":404");
  9. }
  10. return ;
  11. }
  12. $termid=$article['category_id'];
  13. $categoryId=$termid;
  14. $term_obj= new PortalCategoryModel();
  15. $term=$term_obj->where("id='$termid'")->find();

Call Stack

  1. in ArticleController.php line 96
  2. at Error::appShutdown()

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
lang zh-cn
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/test.eventsguide.cn/public/index.php
QUERY_STRING s=/news_detail/544/cid/67.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /news_detail/544/cid/67.html
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/test.eventsguide.cn/public
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.18.0
REMOTE_ADDR 44.192.53.34
REMOTE_PORT 35068
SERVER_ADDR 172.27.221.119
SERVER_PORT 80
SERVER_NAME www.eventsguide.cn
REDIRECT_STATUS 200
PATH_INFO
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST www.eventsguide.cn
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711656125.2977
REQUEST_TIME 1711656125
Environment Variablesempty
ThinkPHP Constants
APP_DEBUG true
CMF_ROOT /www/wwwroot/test.eventsguide.cn/
CMF_DATA /www/wwwroot/test.eventsguide.cn/data/
APP_PATH /www/wwwroot/test.eventsguide.cn/app/
WEB_ROOT /www/wwwroot/test.eventsguide.cn/public/
HTMLPURIFIER_PREFIX /www/wwwroot/test.eventsguide.cn/vendor/ezyang/htmlpurifier/library