为什么不能上传图片???

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

Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid is 253744 is not allowed to access /home/vhosts/shs2004.orgfree.com/shs2004/images/200908 owned by uid 48 in /home/vhosts/shs2004.orgfree.com/shs2004/includes/lib_base.php on line 1097

Warning: copy() [function.copy]: SAFE MODE Restriction in effect. The script whose uid is 253744 is not allowed to access /home/vhosts/shs2004.orgfree.com/shs2004/images/200908 owned by uid 48 in /home/vhosts/shs2004.orgfree.com/shs2004/includes/lib_base.php on line 1102

Warning: copy(/home/vhosts/shs2004.orgfree.com/shs2004/images/200908/1250041369633363454.jpg) [function.copy]: failed to open stream: No such file or directory in /home/vhosts/shs2004.orgfree.com/shs2004/includes/lib_base.php on line 1102
ECSHOP 管理中心 - 系统信息
文件 01.jpg 上传失败。





这到底是为什么?每次上传都会出现这么一大行字,提示失败,在线等待中。。。


回答:
还有,我的主页上去后在最上面总是显示段英文
Warning: file_put_contents() [function.file-put-contents]: SAFE MODE Restriction in effect. The script whose uid is 253744 is not allowed to access /home/vhosts/shs2004.orgfree.com/shs2004/temp/caches/f owned by uid 48 in /home/vhosts/shs2004.orgfree.com/shs2004/includes/cls_template.php on line 198

Warning: file_put_contents(/home/vhosts/shs2004.orgfree.com/shs2004/temp/caches/f/index_40F756F0.php) [function.file-put-contents]: failed to open stream: No such file or directory in /home/vhosts/shs2004.orgfree.com/shs2004/includes/cls_template.php on line 198

Notice: can't write:/home/vhosts/shs2004.orgfree.com/shs2004/temp/caches/f/index_40F756F0.php in /home/vhosts/shs2004.orgfree.com/shs2004/includes/cls_template.php on line 200
这是为什么呢?

1楼的现象,先检查images目录的权限问题

2楼的现象,先清除站点缓存文件 (熟悉的话可以在FTP上直接删除temp/caches 下面的文件,除index.htm)

最近好像多了好多热心版主?

我和一楼同样的问题,一楼解决了吗,我改了images目录的权限,还是不行呀

5# hantall
请问你的具体提示是什么

Warning: copy() [function.copy]: Filename cannot be empty in D:\web\hhq\wwwroot\includes\lib_base.php on line 1102

这个是我的提示

6# 晓天
我和一樓的情況都是一樣!!!


Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/) is not within the allowed path(s): (/home/nami/:/tmp:/usr/local/lib/php/) in /home/nami/domains/nami.com/public_html/onlineshop/includes/lib_base.php on line 627

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/) is not within the allowed path(s): (/home/nami/:/tmp:/usr/local/lib/php/) in /home/nami/domains/nami.com/public_html/onlineshop/includes/lib_base.php on line 627

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/) is not within the allowed path(s): (/home/nami/:/tmp:/usr/local/lib/php/) in /home/nami/domains/nami.com/public_html/onlineshop/includes/lib_base.php on line 627

Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid is 672 is not allowed to access /home/nami/domains/nami.com/public_html/onlineshop/images/201001 owned by uid 48 in /home/nami/domains/nami.com/public_html/onlineshop/includes/lib_base.php on line 1097

Warning: copy() [function.copy]: SAFE MODE Restriction in effect. The script whose uid is 672 is not allowed to access /home/nami/domains/nami.com/public_html/onlineshop/images/201001 owned by uid 48 in /home/nami/domains/nami.com/public_html/onlineshop/includes/lib_base.php on line 1102

Warning: copy(/home/nami/domains/nami.com/public_html/onlineshop/images/201001/1264145498492806063.jpg) [function.copy]: failed to open stream: No such file or directory in /home/nami/domains/nami.com/public_html/onlineshop/includes/lib_base.php on line 1102


看過images 目錄和子目錄權限都是777
但仍然不能上傅圖片

請高人指點!

你更新下缓存,然后看下其他文件的权限是否正常

9# 晓天

成功固定設置子目錄權限777
能夠上傳相片
可是上傳相片之後, 卻不能顯示出來, 只顯示no picture 的圖示
哪裡出了問題呢???

除上传相册,上传商品图片正常吗?

11# 晓天

商品大圖可以成功上傳
但在商品相冊中, 後台雖然顯示"成功上傳", 可是在前台卻不能顯示圖片
問題在哪裡呢?
大圖ok, 小圖就變成 NO picture

你看那下上传的图片在那里了,你可以到image文件夹里面看下
从你的错误提示看,是权限不足

没看到你的演示

13# 晓天

圖片上傳在images 的"201001"目錄裡, 這目錄包含:
- goods_img 資料夾 (資料夾內沒有檔案, 權限已經是777)
- source_img 資料夾 (資料夾內沒有檔案, 權限已經是777)
- thumb_img 資料夾 (資料夾內沒有檔案, 權限已經是777)
- 1264489313381506851.jpg<---這就是圖片上傳後的名稱

是不是要重新刪除資料夾再重新設置權限???

在後台的商品相冊, 上傳圖片後, 顯示 "成功上傳" 所以沒再顯示錯誤碼
但前台看商品, 大圖顯示正常, 小圖(即商品相冊的圖片)就不能顯示了..... >_<