[2] ErrorException in Request.php line 735

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

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

Call Stack

  1. in Request.php line 735
  2. at Error::appError(2, 'preg_replace(): Comp...', '/www/wwwroot/www.xyz...', 735, ['suffix' => '', 'pathinfo' => 'english-chinese/abou...'])
  3. at preg_replace('/\.)$/i', '', 'english-chinese/abou...') in Request.php line 735
  4. at Request->path() in App.php line 596
  5. at App->routeCheck() in App.php line 402
  6. at App->run() in index.php line 20

Environment Variables

GET Data
cht
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
REDIRECT_PATH_INFO english-chinese/about heaping 3 spoonfuls (attached) for 35g of egg white). (As a substitute, use 1 teaspoon of lemon juice for each egg white.)
REDIRECT_STATUS 200
proxy-nokeepalive 1
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_REFERER http://tw.xyzdict.com/english-chinese/about%20heaping%203%20spoonfuls%20%28attached%29%20for%2035g%20of%20egg%20white%29.%20%28As%20a%20substitute%2C%20use%201%20teaspoon%20of%20lemon%20juice%20for%20each%20egg%20white.%29
HTTP_HOST www.xyzdict.com
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH /www/server/apache/lib
SERVER_SIGNATURE <address>Apache Server at www.xyzdict.com Port 80</address>
SERVER_SOFTWARE Apache
SERVER_NAME www.xyzdict.com
SERVER_ADDR 172.18.93.80
SERVER_PORT 80
REMOTE_ADDR 18.232.66.188
DOCUMENT_ROOT /www/wwwroot/www.xyzdict.com
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /www/wwwroot/www.xyzdict.com
SERVER_ADMIN webmaster@example.com
SCRIPT_FILENAME /www/wwwroot/www.xyzdict.com/index.php
REMOTE_PORT 39356
REDIRECT_URL /english-chinese/about heaping 3 spoonfuls (attached) for 35g of egg white). (As a substitute, use 1 teaspoon of lemon juice for each egg white.)
REDIRECT_QUERY_STRING cht
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING cht
REQUEST_URI /english-chinese/about%20heaping%203%20spoonfuls%20%28attached%29%20for%2035g%20of%20egg%20white%29.%20%28As%20a%20substitute%2C%20use%201%20teaspoon%20of%20lemon%20juice%20for%20each%20egg%20white.%29?cht
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711712036.1574
REQUEST_TIME 1711712036
Environment Variablesempty
ThinkPHP Constants
APK_DEF_AES_KEY A3B6C9D0EF142857
APK_DEF_AES_IV 3690ABCDEF142857
APK_NEW_AES_KEY
APK_NEW_AES_IV