[2] ErrorException in Request.php line 429

preg_replace(): Compilation failed: unmatched parentheses at offset 15

  1. $pathinfo = $this->pathinfo();
  2. if (false === $suffix) {
  3. // 禁止伪静态访问
  4. $this->path = $pathinfo;
  5. } elseif ($suffix) {
  6. // 去除正常的URL后缀
  7. $this->path = preg_replace('/\.(' . ltrim($suffix, '.') . ')$/i', '', $pathinfo);
  8. } else {
  9. // 允许任何后缀访问
  10. $this->path = preg_replace('/\.' . $this->ext() . '$/i', '', $pathinfo);
  11. }
  12. }
  13. return $this->path;
  14. }
  15. /**
  16. * 当前URL的访问后缀
  17. * @access public
  18. * @return string

Call Stack

  1. in Request.php line 429
  2. at Error::appError(2, 'preg_replace(): Comp...', '/home/www/html/book/...', 429, ['suffix' => '', 'pathinfo' => ''index/news/category...'])
  3. at preg_replace('/\.newscate_pin])}$/...', '', ''index/news/category...') in Request.php line 429
  4. at Request->path() in App.php line 629
  5. at App::routeCheck(object(Request), ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 116
  6. at App::run() in start.php line 20
  7. at require('/home/www/html/book/...') in index.php line 19

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
PATH_TRANSLATED
/home/www/html/book/public//'index/news/category',['cname'=>.newscate_pin])}
ORIG_SCRIPT_FILENAME
/home/www/html/book/public/index.php//'index/news/category',['cname'=>.newscate_pin])}
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.jyexcavator.cn
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
REDIRECT_STATUS
200
SERVER_NAME
www.bossgoodemo.cn
SERVER_PORT
80
SERVER_ADDR
127.0.0.1
REMOTE_PORT
59108
REMOTE_ADDR
127.0.0.1
SERVER_SOFTWARE
nginx/1.10.3
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/home/www/html/book/public
DOCUMENT_URI
/index.php//'index/news/category',['cname'=>.newscate_pin])}
REQUEST_URI
/'index/news/category',['cname'=>.newscate_pin])}
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_NAME
/index.php//'index/news/category',['cname'=>.newscate_pin])}
SCRIPT_FILENAME
/home/www/html/book/public/index.php
PATH_INFO
//'index/news/category',['cname'=>.newscate_pin])}
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php//'index/news/category',['cname'=>.newscate_pin])}//'index/news/category',['cname'=>.newscate_pin])}
REQUEST_TIME_FLOAT
1561465770.495
REQUEST_TIME
1561465770
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/www/html/book/public/../application/
THINK_VERSION
5.0.20
THINK_START_TIME
1561465770.4951
THINK_START_MEM
356936
EXT
.php
DS
/
THINK_PATH
/home/www/html/book/thinkphp/
LIB_PATH
/home/www/html/book/thinkphp/library/
CORE_PATH
/home/www/html/book/thinkphp/library/think/
TRAIT_PATH
/home/www/html/book/thinkphp/library/traits/
ROOT_PATH
/home/www/html/book/
EXTEND_PATH
/home/www/html/book/extend/
VENDOR_PATH
/home/www/html/book/vendor/
RUNTIME_PATH
/home/www/html/book/runtime/
LOG_PATH
/home/www/html/book/runtime/log/
CACHE_PATH
/home/www/html/book/runtime/cache/
TEMP_PATH
/home/www/html/book/runtime/temp/
CONF_PATH
/home/www/html/book/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false