[2] ErrorException in Content.phphtml line 254

file_put_contents(E:\WebSite\akn-es.com2020/runtime/content_output.phphtml): failed to open stream: Invalid argument

  1. //检查文件是否存在
  2. if (file_exists($fields_path . $field . DIRECTORY_SEPARATOR . $classtype . '.inc.phphtml')) {
  3. //读取文件,$classtype.inc.phphtml
  4. $ca = file_get_contents($fields_path . $field . DIRECTORY_SEPARATOR . $classtype . '.inc.phphtml');
  5. $cache_data .= str_replace(array("<?php", "?>"), "", $ca);
  6. }
  7. }
  8. $content_cache_data = str_replace('##{字段处理函数}##', $cache_data, $content_cache_data);
  9. //写入缓存
  10. file_put_contents($cachemodepath . 'content_' . $classtype . '.phphtml', $content_cache_data);
  11. //设置权限
  12. chmod($cachemodepath . 'content_' . $classtype . '.phphtml', 0777);
  13. unset($cache_data);
  14. }
  15. }
  16. }

Call Stack

  1. in Content.phphtml line 254
  2. at Error::appError(2, 'file_put_contents(E:...', 'E:\WebSite\akn-es.com20...', 254, ['fields_path' => 'E:\WebSite\akn-es.com20...', 'fields' => ['text' => '单行文本', 'textarea' => '多行文本', 'editor' => '编辑器', ...], 'classtypes' => ['form', 'input', 'output', ...], ...])
  3. at file_put_contents('E:\WebSite\akn-es.com20...', '<?php // +----------...') in Content.phphtml line 254
  4. at Content::classGenerate() in AppInitBehavior.phphtml line 55
  5. at AppInitBehavior->autoload('content_output')
  6. at spl_autoload_call('content_output') in Index.phphtml line 322
  7. at Index->shows()
  8. at ReflectionMethod->invokeArgs(object(Index), []) in App.phphtml line 341
  9. at App::invokeMethod([object(Index), 'shows'], []) in App.phphtml line 609
  10. at App::module(['content', 'Index', 'shows'], ['app_host' => '', 'app_debug' =>true, 'app_trace' =>false, ...], null) in App.phphtml line 455
  11. at App::exec(['type' => 'module', 'module' => ['content', 'Index', 'shows']], ['app_host' => '', 'app_debug' =>true, 'app_trace' =>false, ...]) in App.phphtml line 138
  12. at App::run() in start.phphtml line 19
  13. at require('E:\WebSite\akn-es.com20...') in index.phphtml line 52

Environment Variables

GET Data

a
shows
catid
15
id
302
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-b44e86bb-abc3-4163-988f-cc3d02555150
PHPRC
C:\php-5.6.36-nts-Win32-VC11-x64\
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\www.akn-es.com\www.akn-es.com.config
APP_POOL_ID
www.akn-es.com
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
WEB-SERVER
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:\Program Files\MySQL\MySQL Server 5.7\bin;C:\Program Files\Microsoft\Web Platform Installer\;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 47 Stepping 2, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
2f02
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files\Microsoft Security Client\MpProvider\
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
USERDOMAIN
SANCOV
USERNAME
WEB-SERVER$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.phphtml
URL
/index.phphtml
SERVER_SOFTWARE
Microsoft-IIS/8.0
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.akn-es.com
SCRIPT_NAME
/index.phphtml
SCRIPT_FILENAME
E:\WebSite\akn-es.com2020\index.phphtml
REQUEST_URI
/index.phphtml?a=shows&catid=15&id=302
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
42097
REMOTE_HOST
104.217.79.237
REMOTE_ADDR
104.217.79.237
QUERY_STRING
a=shows&catid=15&id=302
PATH_TRANSLATED
E:\WebSite\akn-es.com2020\index.phphtml
LOGON_USER
LOCAL_ADDR
10.1.0.14
INSTANCE_META_PATH
/LM/W3SVC/14
INSTANCE_NAME
WWW.akn-es.com
INSTANCE_ID
14
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
E:\WebSite\akn-es.com2020
CONTENT_TYPE
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
E:\WebSite\akn-es.com2020\
APPL_MD_PATH
/LM/W3SVC/14/ROOT
IIS_UrlRewriteModule
7.1.0871.0
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
HTTP_HOST
www.akn-es.com
HTTP_ACCEPT
*/*
FCGI_ROLE
RESPONDER
PHP_SELF
/index.phphtml
REQUEST_TIME_FLOAT
1611720041.169
REQUEST_TIME
1611720041
Environment Variables
empty

ThinkPHP Constants

SITE_PATH
E:\WebSite\akn-es.com2020/
APP_DEBUG
true
PROJECT_PATH
E:\WebSite\akn-es.com2020/ylyh/
APP_PATH
E:\WebSite\akn-es.com2020/ylyh/application/
COMMON_PATH
E:\WebSite\akn-es.com2020/ylyh/common/
CONF_PATH
E:\WebSite\akn-es.com2020/ylyh/config/
RUNTIME_PATH
E:\WebSite\akn-es.com2020/runtime/
TEMPLATE_PATH
E:\WebSite\akn-es.com2020/ylyh/template/
THINK_VERSION
5.0.24
THINK_START_TIME
1611720041.1704
THINK_START_MEM
272936
EXT
.phphtml
DS
\
THINK_PATH
E:\WebSite\akn-es.com2020\ylyh\core\
LIB_PATH
E:\WebSite\akn-es.com2020\ylyh\core\library\
CORE_PATH
E:\WebSite\akn-es.com2020\ylyh\core\library\think\
TRAIT_PATH
E:\WebSite\akn-es.com2020\ylyh\core\library\traits\
ROOT_PATH
E:\WebSite\akn-es.com2020\ylyh\
EXTEND_PATH
E:\WebSite\akn-es.com2020\ylyh\extend\
VENDOR_PATH
E:\WebSite\akn-es.com2020\ylyh\vendor\
LOG_PATH
E:\WebSite\akn-es.com2020/runtime/log\
CACHE_PATH
E:\WebSite\akn-es.com2020/runtime/cache\
TEMP_PATH
E:\WebSite\akn-es.com2020/runtime/temp\
CONF_EXT
.phphtml
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
HKCMS_VERSION
1.0.0
MODULE_PATH
E:\WebSite\akn-es.com2020/ylyh/application/content/
MODULE_EXTRESDIR
statics/extres/content/
CONFIG_SITEURL_MODEL
/