网店安好了不过页面提示一些错误信息

2016-07-07 15:40 来源:www.chinab4c.com 作者:ecshop专家

Warning: file_put_contents() [function.file-put-contents]: SAFE MODE Restriction in effect. The script whose uid is 10026 is not allowed to access /var/www/vhosts/www.cqtshop.cn/httpdocs/temp/caches/f owned by uid 48 in /var/www/vhosts/www.cqtshop.cn/httpdocs/includes/cls_template.php on line 198

Warning: file_put_contents(/var/www/vhosts/www.cqtshop.cn/httpdocs/temp/caches/f/index_40F756F0.php) [function.file-put-contents]: failed to open stream: No such file or directory in /var/www/vhosts/www.cqtshop.cn/httpdocs/includes/cls_template.php on line 198

Notice: can't write:/var/www/vhosts/www.cqtshop.cn/httpdocs/temp/caches/f/index_40F756F0.php in /var/www/vhosts/www.cqtshop.cn/httpdocs/includes/cls_template.php on line 200

请高手看看,谢谢!

回答:
Can't create/write to file
引起此问题的原因:
1.数据库已经满了
2.相应目录具有可读写的权限。
解决方法:
1.增大服务器空间。
2.清理缓存目录、清空ecs_states表,目的都是为了增大可用空间。
3.还有些用户经常备份数据库,这样会造成data目录下的文件占用空间。建议用户备份数据库后将备份文件保存到本地,然后将服务器上的备份文件清除。
4.赋予相应的目录为可读写的权限。