歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 30, 2024, 04:30:24 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  使用與操作  |  请教!上传文件时出错! « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 请教!上传文件时出错!  (閱讀 19925 次)
winsongood
新手見習
*
文章: 7


檢視個人資料
« 於: 九月 15, 2005, 09:05:39 上午 »

当我上传资源文件时,出现以下错误:

Warning: filesize() [function.filesize]: stat failed for C:\WINDOWS\TEMP\php1A.tmp in G:\setiisphp\www\plog\class\gallery\getid3\getid3.php on line 167

Warning: fread() [function.fread]: Length parameter must be greater than 0. in G:\setiisphp\www\plog\class\gallery\getid3\module.graphic.jpg.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at G:\setiisphp\www\plog\class\gallery\getid3\getid3.php:167) in G:\setiisphp\www\plog\class\view\view.class.php on line 172


不知是什么原因?但资源文件都能正常上传并使用哦,只是每次页面都会出现以上错误提示

还有,如果是上传bmp图片文件,就根本上传不了,出现以下错误:

Warning: filesize() [function.filesize]: stat failed for C:\WINDOWS\TEMP\php6A.tmp in G:\setiisphp\www\plog\class\gallery\getid3\getid3.php on line 167

Fatal error: Uncaught exception 'Exception' with message 'Trying to generate a thumbnail of an unsupported format!' in G:\setiisphp\www\plog\class\gallery\resizers\gallerygdresizer.class.php:90 Stack trace: #0 G:\setiisphp\www\plog\class\gallery\resizers\gallerygdresizer.class.php(90): GalleryGDResizer::thumbnail() #1 G:\setiisphp\www\plog\class\gallery\resizers\gallerygdresizer.class.php(44): GalleryGDResizer->thumbnail('./gallery/1/1-9...') #2 G:\setiisphp\www\plog\class\gallery\resizers\galleryresizer.class.php(151): GalleryGDResizer->generate('./gallery/1/pre...', '120', '120') #3 G:\setiisphp\www\plog\class\gallery\dao\galleryresources.class.php(385): GalleryResizer->generate('./gallery/1/pre...', '120', '120', '1') #4 G:\setiisphp\www\plog\class\gallery\dao\galleryresources.class.php(498): GalleryResources->generateResourceThumbnail('./gallery/1/1-9...', '9', '1') #5 G:\setiisphp\www\plog\class\action\admin\adminaddresourceaction.class.php(78): GalleryResources->addResource('1', '1', 'sfgdsfg', Object(FileUpload)) # in G:\setiisphp\www\plog\class\gallery\resizers\gallerygdresizer.class.php on line 90


请大家帮帮忙吧,谢谢啦!

« 最後編輯時間: 九月 15, 2005, 09:26:14 上午 由 winsongood » 已記錄
james
LifeType 中文發展團隊
超級會員
*****
文章: 823


哼!!你不說,誰會知道你做過那些修改呢!? (丟滑鼠~~)


檢視個人資料 個人網站
« 回覆文章 #1 於: 九月 15, 2005, 10:01:24 上午 »

煩請告知你的系統詳細資訊.
有error messages還不夠猜到你的系統到底是如何設置的 目瞪口呆.




已記錄

記得發問前,先使用搜尋功能找找看有沒相關的解答。
如果找不到,請依照如何在LifeType論壇發問來提問喔。
winsongood
新手見習
*
文章: 7


檢視個人資料
« 回覆文章 #2 於: 九月 15, 2005, 10:28:48 上午 »

我的系统是WIN2003,我是用IIS来运行PHP的,以下是程序版本

PHP v5.0.4 (Win32)
Zend Optimizer v2.5.10a (Win32)
MySQL v4.1.14 (Win32)

PHP是用php5isapi.dll这个来运行的
已記錄
james
LifeType 中文發展團隊
超級會員
*****
文章: 823


哼!!你不說,誰會知道你做過那些修改呢!? (丟滑鼠~~)


檢視個人資料 個人網站
« 回覆文章 #3 於: 九月 15, 2005, 10:42:06 上午 »

当我上传资源文件时,出现以下错误:

Warning: filesize() [function.filesize]: stat failed for C:\WINDOWS\TEMP\php1A.tmp in G:\setiisphp\www\plog\class\gallery\getid3\getid3.php on line 167

Warning: fread() [function.fread]: Length parameter must be greater than 0. in G:\setiisphp\www\plog\class\gallery\getid3\module.graphic.jpg.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at G:\setiisphp\www\plog\class\gallery\getid3\getid3.php:167) in G:\setiisphp\www\plog\class\view\view.class.php on line 172


不知是什么原因?但资源文件都能正常上传并使用哦,只是每次页面都会出现以上错误提示

這部份問題你可以參考並閱讀這篇討論,再提供其它的訊息 http://forum.lifetype.org.tw/index.php?topic=1004.msg5996#msg5996
或是用 getid3 當keyword去搜尋,並參考其它文章.

另一個

引用
还有,如果是上传bmp图片文件,就根本上传不了,出现以下错误:

Warning: filesize() [function.filesize]: stat failed for C:\WINDOWS\TEMP\php6A.tmp in G:\setiisphp\www\plog\class\gallery\getid3\getid3.php on line 167

Fatal error: Uncaught exception 'Exception' with message 'Trying to generate a thumbnail of an unsupported format!' in

紅色的字就是問題出現的地方囉,它說你上傳了一個不被支援的檔案格式。

你的php設置訊息呢??
你的plog版本?

已記錄

記得發問前,先使用搜尋功能找找看有沒相關的解答。
如果找不到,請依照如何在LifeType論壇發問來提問喔。
winsongood
新手見習
*
文章: 7


檢視個人資料
« 回覆文章 #4 於: 九月 15, 2005, 11:14:44 上午 »

這部份問題你可以參考並閱讀這篇討論,再提供其它的訊息 http://forum.lifetype.org.tw/index.php?topic=1004.msg5996#msg5996
或是用 getid3 當keyword去搜尋,並參考其它文章.


是啊,我的问题就和上面这个帖子里的朋友一样,我发现我的getid3文件的167行代码也和这位有问题的朋友的一样,我的plog版本是plog-1.0.1,是在官方网站下载的

请问要如何解决?


至于我的PHP环境里,我发现这一项 upload_tmp_dir 的值是空的,不知有没影响?
已記錄
james
LifeType 中文發展團隊
超級會員
*****
文章: 823


哼!!你不說,誰會知道你做過那些修改呢!? (丟滑鼠~~)


檢視個人資料 個人網站
« 回覆文章 #5 於: 九月 15, 2005, 11:25:05 上午 »

這部份問題你可以參考並閱讀這篇討論,再提供其它的訊息 http://forum.lifetype.org.tw/index.php?topic=1004.msg5996#msg5996
或是用 getid3 當keyword去搜尋,並參考其它文章.


是啊,我的问题就和上面这个帖子里的朋友一样,我发现我的getid3文件的167行代码也和这位有问题的朋友的一样,我的plog版本是plog-1.0.1,是在官方网站下载的

请问要如何解决?


至于我的PHP环境里,我发现这一项 upload_tmp_dir 的值是空的,不知有没影响?
我不曉得這和你用IIS做為Web Server是否有關。
能請你用APACHE做個測試嗎??

我這使用APACHE+MYSQL+PHP不管是在WIN 或是LINUX下運作都正常.
但是IIS我就真的沒經驗囉~~ 傷心
已記錄

記得發問前,先使用搜尋功能找找看有沒相關的解答。
如果找不到,請依照如何在LifeType論壇發問來提問喔。
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #6 於: 九月 15, 2005, 09:42:54 下午 »

当我上传资源文件时,出现以下错误:

Warning: filesize() [function.filesize]: stat failed for C:\WINDOWS\TEMP\php1A.tmp in G:\setiisphp\www\plog\class\gallery\getid3\getid3.php on line 167

Warning: fread() [function.fread]: Length parameter must be greater than 0. in G:\setiisphp\www\plog\class\gallery\getid3\module.graphic.jpg.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at G:\setiisphp\www\plog\class\gallery\getid3\getid3.php:167) in G:\setiisphp\www\plog\class\view\view.class.php on line 172


不知是什么原因?但资源文件都能正常上传并使用哦,只是每次页面都会出现以上错误提示

這一個我沒遇過,你能把圖的 url 貼出來嗎,讓我可以下載來試試。

还有,如果是上传bmp图片文件,就根本上传不了,出现以下错误:

Warning: filesize() [function.filesize]: stat failed for C:\WINDOWS\TEMP\php6A.tmp in G:\setiisphp\www\plog\class\gallery\getid3\getid3.php on line 167

Fatal error: Uncaught exception 'Exception' with message 'Trying to generate a thumbnail of an unsupported format!' in G:\setiisphp\www\plog\class\gallery\resizers\gallerygdresizer.class.php:90 Stack trace: #0 G:\setiisphp\www\plog\class\gallery\resizers\gallerygdresizer.class.php(90): GalleryGDResizer::thumbnail() #1 G:\setiisphp\www\plog\class\gallery\resizers\gallerygdresizer.class.php(44): GalleryGDResizer->thumbnail('./gallery/1/1-9...') #2 G:\setiisphp\www\plog\class\gallery\resizers\galleryresizer.class.php(151): GalleryGDResizer->generate('./gallery/1/pre...', '120', '120') #3 G:\setiisphp\www\plog\class\gallery\dao\galleryresources.class.php(385): GalleryResizer->generate('./gallery/1/pre...', '120', '120', '1') #4 G:\setiisphp\www\plog\class\gallery\dao\galleryresources.class.php(498): GalleryResources->generateResourceThumbnail('./gallery/1/1-9...', '9', '1') #5 G:\setiisphp\www\plog\class\action\admin\adminaddresourceaction.class.php(78): GalleryResources->addResource('1', '1', 'sfgdsfg', Object(FileUpload)) # in G:\setiisphp\www\plog\class\gallery\resizers\gallerygdresizer.class.php on line 90


那是因為 GD 不知援 BMP,你必須改用  ImageMagick。

Mark
« 最後編輯時間: 九月 16, 2005, 01:00:04 上午 由 markwu » 已記錄

winsongood
新手見習
*
文章: 7


檢視個人資料
« 回覆文章 #7 於: 九月 16, 2005, 08:09:39 上午 »


這一個我沒遇過,你能把圖的 url 貼出來嗎,讓我可以下載來試試。


哦,那先谢啦,以下是我用的PLOG的下载地址

http://keihanna.dl.sourceforge.net/sourceforge/plog/plog-1.0.1.zip

或者可到官方网站下载

http://prdownloads.sourceforge.net/plog/plog-1.0.1.zip?download
« 最後編輯時間: 九月 16, 2005, 08:12:01 上午 由 winsongood » 已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #8 於: 九月 16, 2005, 08:52:33 上午 »

我是要你的『圖』 .... 疑惑

要不然你可以到這裡 http://demo.lifetype.org.tw/ 註冊一個帳號,自己試試看。

Mark
« 最後編輯時間: 九月 16, 2005, 08:55:09 上午 由 markwu » 已記錄

winsongood
新手見習
*
文章: 7


檢視個人資料
« 回覆文章 #9 於: 九月 16, 2005, 10:40:11 上午 »

我是要你的『圖』 .... 疑惑

要不然你可以到這裡 http://demo.lifetype.org.tw/ 註冊一個帳號,自己試試看。

Mark

哦,真是不好意思 害羞

我的图片文件是没问题的,因为不管我上传什么图片或者其他的文件,都会有类似的错误提示出来的,并不是指单一的某张,还有因为我只是在自己机里试的,我还没有开正式的网站,所以没有网址给你,不过我现在可以把我的机里的地址给你看看

http://winsonet.vicp.net

测试帐号:test123

密码:123456

还有顺便问一下,为什么我上传了资源后,在资源管理里最下面的“总使用空间”总是0的?按理说应该是计算出资源文件的容量才对吧?
« 最後編輯時間: 九月 16, 2005, 10:43:48 上午 由 winsongood » 已記錄
頁: [1]
LifeType 中文開發論壇  |  支援  |  使用與操作  |  请教!上传文件时出错! « 上篇主題 下篇主題 »
    前往: