管理员请帮我看一下,安装后分类页出现了问题

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

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

Warning: file_put_contents(/var/www/vhosts/lucky98.net/httpdocs/temp/caches/9/category_C0C81AA5.php) [function.file-put-contents]: failed to open stream: 没有那个文件或目录 in /var/www/vhosts/lucky98.net/httpdocs/includes/cls_template.php on line 198

Notice: can't write:/var/www/vhosts/lucky98.net/httpdocs/temp/caches/9/category_C0C81AA5.php in /var/www/vhosts/lucky98.net/httpdocs/includes/cls_template.php on line 200

问题页面:http://www.lucky98.net/category.php?id=1

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

查看您temp/caches的子文件夹的权限是否为777(请用ftp查看)