正在加载中...

关闭
请选择需要拨打的号码
关闭
请根据问题类型选择QQ咨询

PHP Warning: file_put_contents temp/caches PHP Notice: can''t write in cls_template.php

PHP Warning: file_put_contents temp/caches PHP Notice: can''t write in cls_template.php

ecshop网店系统站长也许会遇到以下这类模板管理程序无法写入模板缓存文件到临时目录的问题的报错:那么该怎么解决呢?万维景盛工程师为您分享解决方法:


PHP Warning:  file_put_contents(/temp/compiled/recommend_hot.lbi.php): failed to open stream: No such file or directory in includes\cls_template.php on line 262

PHP Notice:  can't write:/temp/compiled/recommend_hot.lbi.php in includes\cls_template.php on line 264

PHP Warning:  file_put_contents(/temp/compiled/cat_goods.lbi.php): failed to open stream: No such file or directory in includes\cls_template.php on line 262

PHP Notice:  can't write:/temp/compiled/cat_goods.lbi.php in includes\cls_template.php on line 264

PHP Warning:  file_put_contents(/temp/compiled/page_footer.lbi.php): failed to open stream: No such file or directory in includes\cls_template.php on line 262

PHP Notice:  can't write:/temp/compiled/page_footer.lbi.php in includes\cls_template.php on line 264

PHP Warning:  file_put_contents(/temp/compiled/footer_nav.lbi.php): failed to open stream: No such file or directory in includes\cls_template.php on line 262

PHP Notice:  can't write:/temp/compiled/footer_nav.lbi.php in includes\cls_template.php on line 264

PHP Warning:  mkdir(): No such file or directory in includes\cls_template.php on line 196

PHP Warning:  file_put_contents(/temp/caches/f/index_40F756F0.php): failed to open stream: No such file or directory in includes\cls_template.php on line 198

PHP Notice:  can't write:/temp/caches/f/index_40F756F0.php in includes\cls_template.php on line 200

PHP Warning:  file_put_contents(/temp/compiled/member_info.lbi.php): failed to open stream: No such file or directory in includes\cls_template.php on line 262

PHP Notice:  can't write:/temp/compiled/member_info.lbi.php in includes\cls_template.php on line 264


网上流传的方法:

1、增大服务器空间。

2、清理缓存目录、清空ecs_states表,目的都是为了增大可用空间。

3、还有些用户经常备份数据库,这样会造成data目录下的文件占用空间。建议用户备份数据库后将备份文件保存到本地,然后将服务器上的备份文件清除。

4、赋予相应的目录为可读写的权限。除了目录权限还要看看安全软件有没有拦击访问。

以上方法也许有一条可以适合你,但如果4条都无法帮你解决问题,那么可以对照检查第5条:

5、检查/temp文件夹以及子文件夹caches、compiled、static_caches是否存在,不存在的话手工创建即可。


返回上一页