请求方式 GET 请求地址 /home/index/index/id/44/menu_id/8
系统发生错误

[1] ErrorException in D:\wwwroot\www.spamc.com\vendor\topthink\framework\src\think\exception\Handle.php line 225

Uncaught think\exception\ErrorException: file_put_contents(error.html): failed to open stream: Permission denied in D:\wwwroot\www.spamc.com\vendor\topthink\framework\src\think\exception\Handle.php:225
Stack trace:
#0 [internal function]: think\initializer\Error->appError(2, 'file_put_conten...', 'D:\\wwwroot\\www....', 225, Array)
#1 D:\wwwroot\www.spamc.com\vendor\topthink\framework\src\think\exception\Handle.php(225): file_put_contents('error.html', '\xE8\xAF\xB7\xE6\xB1\x82\xE6\x96\xB9\xE5\xBC\x8F GE...')
#2 D:\wwwroot\www.spamc.com\vendor\topthink\framework\src\think\exception\Handle.php(199): think\exception\Handle->renderExceptionContent(Object(think\template\exception\TemplateNotFoundException))
#3 D:\wwwroot\www.spamc.com\vendor\topthink\framework\src\think\exception\Handle.php(109): think\exception\Handle->convertExceptionToResponse(Object(think\template\exception\TemplateNotFoundException))
#4 D:\wwwroot\www.spamc.com\app\ExceptionHandle.php(56): think\exception\Handle->render(Object(app\Request),

  1. extract($data);
  2. include $this->app->config->get('app.exception_tmpl') ?: __DIR__ . '/../../tpl/think_exception.tpl';
  3. $error_html = ob_get_clean();
  4. $suffix = end(explode('.',$_SERVER['REQUEST_URI']));
  5. $suffix = strtolower($suffix);
  6. $must_buy = "";
  7. $error_html = $must_buy.'请求方式 '.\think\facade\Request::method().' 请求地址 '.$_SERVER['REQUEST_URI'].'<br/>'.$error_html;
  8. if(!in_array($suffix,['jpg','png','jpeg','gif','js','css']))
  9. file_put_contents('error.html',$error_html);
  10. return $error_html;
  11. }
  12. /**
  13. * 获取错误编码
  14. * ErrorException则使用错误级别作为错误编码
  15. * @access protected
  16. * @param Throwable $exception
  17. * @return integer 错误编码

Call Stack

  1. in D:\wwwroot\www.spamc.com\vendor\topthink\framework\src\think\exception\Handle.php line 225
  2. at Error->appShutdown()

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-c56382fd-14cf-4def-9722-6535178cf442
PHP_FCGI_MAX_REQUESTS 10000
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\www.spamc.com\www.spamc.com.config
APP_POOL_ID www.spamc.com
BT_PANEL D:\BtSoft\panel
BT_PYTHON C:\Program Files\python
BT_SETUP D:\BtSoft
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME iZuoc5cfh1n6f6Z
ComSpec C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK NO
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 8
OS Windows_NT
Path C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\BtSoft\panel\script;C:\Program Files\dotnet\;C:\Program Files (x86)\dotnet\;D:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;D:\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\Program Files\Microsoft SQL Server\110\DTS\Binn\;D:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;D:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 5504
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;D:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules\
PUBLIC C:\Users\Public
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Windows\TEMP
TMP C:\Windows\TEMP
UNRAR_LIB_PATH C:\Program Files\python\Lib\site-packages\unrar\UnRAR.dll
USERDOMAIN WORKGROUP
USERNAME iZuoc5cfh1n6f6Z$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
ORIG_PATH_INFO /index.php/home/index/index/id/44/menu_id/8
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/8.5
SERVER_PROTOCOL HTTP/1.1
SERVER_PORT_SECURE 0
SERVER_PORT 80
SERVER_NAME spamc.com
SCRIPT_NAME /index.php
SCRIPT_FILENAME d:\wwwroot\www.spamc.com\public\index.php
REQUEST_URI /home/index/index/id/44/menu_id/8
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 53564
REMOTE_HOST 54.157.61.194
REMOTE_ADDR 54.157.61.194
QUERY_STRING
PATH_TRANSLATED d:\wwwroot\www.spamc.com\public\index.php\home\index\index\id\44\menu_id\8
PATH_INFO /home/index/index/id/44/menu_id/8
LOGON_USER
LOCAL_ADDR 172.21.152.54
INSTANCE_META_PATH /LM/W3SVC/9
INSTANCE_NAME WWW.SPAMC.COM
INSTANCE_ID 9
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS off
GATEWAY_INTERFACE CGI/1.1
DOCUMENT_ROOT d:\wwwroot\www.spamc.com\public
CONTENT_TYPE
CONTENT_LENGTH 0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH d:\wwwroot\www.spamc.com\public\
APPL_MD_PATH /LM/W3SVC/9/ROOT
IIS_UrlRewriteModule 7.1.0871.0
UNENCODED_URL /home/index/index/id/44/menu_id/8
IIS_WasUrlRewritten 1
HTTP_X_ORIGINAL_URL /home/index/index/id/44/menu_id/8
HTTP_USER_AGENT claudebot
HTTP_HOST spamc.com
HTTP_ACCEPT */*
HTTP_CONTENT_LENGTH 0
FCGI_ROLE RESPONDER
PHP_SELF /index.php/home/index/index/id/44/menu_id/8
REQUEST_TIME_FLOAT 1710822645.2155
REQUEST_TIME 1710822645
Environment Variables
APP_DEBUG 1
APP_DEFAULT_TIMEZONE Asia/Shanghai
DATABASE_TYPE mysql
DATABASE_HOSTNAME 127.0.0.1
DATABASE_DATABASE new30_spamc_com
DATABASE_USERNAME new30_spamc_com
DATABASE_PASSWORD cMDJfYXZfnKtj86k
DATABASE_HOSTPORT 3306
DATABASE_CHARSET utf8
DATABASE_DEBUG 1
DATABASE_PREFIX pp_
LANG_DEFAULT_LANG zh-cn
ThinkPHP Constants
PLUGIN_PATH D:\wwwroot\www.spamc.com/plugins/
UPLOAD_PATH public/upload/
TPSHOP_CACHE_TIME 1
SITE_URL http://spamc.com
HTTP http
INSTALL_DATE 1463741583
SERIALNUMBER 20160520065303oCWIoa
NOW_TIME 1710822645
IS_SAAS 0
PHP_OS_FAMILY Windows
EXTEND_MODULE 1
EXTEND_ANDROID 2
EXTEND_IOS 3
EXTEND_ENTRUST 4
EXTEND_MINIAPP 5
EXTEND_H5 6
TIME_MOUTH 4
IS_AJAX false
IS_GET true
IS_POST false
MODULE_NAME home
CONTROLLER_NAME Index
ACTION_NAME index
PREFIX pp_
RUNTIME_PATH D:\wwwroot\www.spamc.com\runtime
APP_PATH D:\wwwroot\www.spamc.com\app\
ROOT_PATH D:\wwwroot\www.spamc.com\
SESSION_ID