安裝完成後在首頁出現了以下問題,請客位高手幫幫我>.<

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

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

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

Notice: can't write:/var/www/vhosts/hillsgroup.com.hk/httpdocs/ishop/ecshop/upload/temp/caches/f/index_40F756F0.php in /var/www/vhosts/hillsgroup.com.hk/httpdocs/ishop/ecshop/upload/includes/cls_template.php on line 200

error.JPG (135.66 KB)

error.JPG


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