歡迎光臨, 訪客. 請先 登入註冊一個帳號.
十一月 23, 2024, 09:47:07 上午
19595 文章 在 3865 主題 由 4579 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  圖片上傳之後,發生錯誤訊息! « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 圖片上傳之後,發生錯誤訊息!  (閱讀 11443 次)
tinanu
新手見習
*
文章: 6


檢視個人資料
« 於: 六月 06, 2007, 05:48:52 下午 »

系統環境
作業系統:window 2003 Server
Web Service:IIS 6.0
PHP:PHP Version 4.4.4
LifeType:lifetype-1.1.5

問題如下:
當我上傳一張圖片時,系統就會出現下面的錯誤!
不過雖然有出現錯誤但在檔案清單中有出現該筆記錄,只是此筆資料的圖片連結都會找不到圖片!
我有到我的檔案總管去看過,在特定的資料夾中看到我所上傳的圖片;
但是圖片的名字都被更掉掉了!
請大家幫忙我看一下這是什麼原因!非常感謝!

錯誤訊息如下:
Exception message: filesize() [function.filesize]: Stat failed for C:\WINDOWS\TEMP\php625.tmp (errno=2 - No such file or directory)
Error code: 2
-- Backtrace --
D:\info\????e\blog\class\gallery\getid3\getid3.php(212): filesize
D:\info\????e\blog\class\gallery\dao\galleryresources.class.php(435): getid3.analyze
D:\info\????e\blog\class\action\admin\adminaddresourceaction.class.php(101): galleryresources.addresource
D:\info\????e\blog\class\controller\controller.class.php(310): adminaddresourceaction.perform
D:\info\????e\blog\admin.php(43): admincontroller.process

Exception message: fread() [function.fread]: Length parameter must be greater than 0.
Error code: 2
-- Backtrace --
D:\info\????e\blog\class\gallery\getid3\module.graphic.jpg.php(30): fread
D:\info\????e\blog\class\gallery\getid3\getid3.php(356): getid3_jpg.getid3_jpg
D:\info\????e\blog\class\gallery\dao\galleryresources.class.php(435): getid3.analyze
D:\info\????e\blog\class\action\admin\adminaddresourceaction.class.php(101): galleryresources.addresource
D:\info\????e\blog\class\controller\controller.class.php(310): adminaddresourceaction.perform
D:\info\????e\blog\admin.php(43): admincontroller.process

Exception message: getimagesize() [function.getimagesize]: Read error!
Error code: 2
-- Backtrace --
D:\info\????e\blog\class\gallery\getid3\getid3.lib.php(1176): getimagesize
D:\info\????e\blog\class\gallery\getid3\module.graphic.jpg.php(30): getid3_lib.getdataimagesize
D:\info\????e\blog\class\gallery\getid3\getid3.php(356): getid3_jpg.getid3_jpg
D:\info\????e\blog\class\gallery\dao\galleryresources.class.php(435): getid3.analyze
D:\info\????e\blog\class\action\admin\adminaddresourceaction.class.php(101): galleryresources.addresource
D:\info\????e\blog\class\controller\controller.class.php(310): adminaddresourceaction.perform
D:\info\????e\blog\admin.php(43): admincontroller.process

Exception message: Division by zero
Error code: 2
-- Backtrace --
D:\info\????e\blog\class\gallery\resizers\gallerygdresizer.class.php(333): calcthumbformat
D:\info\????e\blog\class\gallery\resizers\gallerygdresizer.class.php(52): gallerygdresizer.calcthumbformat
D:\info\????e\blog\class\gallery\resizers\galleryresizer.class.php(144): gallerygdresizer.generate
D:\info\????e\blog\class\gallery\resizers\gallerythumbnailgenerator.class.php(39): galleryresizer.generate
D:\info\????e\blog\class\gallery\dao\galleryresources.class.php(486): gallerythumbnailgenerator.generateresourcethumbnail
D:\info\????e\blog\class\action\admin\adminaddresourceaction.class.php(101): galleryresources.addresource
D:\info\????e\blog\class\controller\controller.class.php(310): adminaddresourceaction.perform
D:\info\????e\blog\admin.php(43): admincontroller.process

Exception message: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions
Error code: 2
-- Backtrace --
D:\info\????e\blog\class\gallery\resizers\gallerygdresizer.class.php(292): imagecreatetruecolor
D:\info\????e\blog\class\gallery\resizers\gallerygdresizer.class.php(55): gallerygdresizer.save
D:\info\????e\blog\class\gallery\resizers\galleryresizer.class.php(144): gallerygdresizer.generate
D:\info\????e\blog\class\gallery\resizers\gallerythumbnailgenerator.class.php(39): galleryresizer.generate
D:\info\????e\blog\class\gallery\dao\galleryresources.class.php(486): gallerythumbnailgenerator.generateresourcethumbnail
D:\info\????e\blog\class\action\admin\adminaddresourceaction.class.php(101): galleryresources.addresource
D:\info\????e\blog\class\controller\controller.class.php(310): adminaddresourceaction.perform
D:\info\????e\blog\admin.php(43): admincontroller.process

Exception message: Division by zero
Error code: 2
-- Backtrace --
D:\info\????e\blog\class\gallery\resizers\gallerygdresizer.class.php(333): calcthumbformat
D:\info\????e\blog\class\gallery\resizers\gallerygdresizer.class.php(52): gallerygdresizer.calcthumbformat
D:\info\????e\blog\class\gallery\resizers\galleryresizer.class.php(144): gallerygdresizer.generate
D:\info\????e\blog\class\gallery\resizers\gallerythumbnailgenerator.class.php(77): galleryresizer.generate
D:\info\????e\blog\class\gallery\dao\galleryresources.class.php(492): gallerythumbnailgenerator.generateresourcemediumsizethumbnail
D:\info\????e\blog\class\action\admin\adminaddresourceaction.class.php(101): galleryresources.addresource
D:\info\????e\blog\class\controller\controller.class.php(310): adminaddresourceaction.perform
D:\info\????e\blog\admin.php(43): admincontroller.process

Exception message: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions
Error code: 2
-- Backtrace --
D:\info\????e\blog\class\gallery\resizers\gallerygdresizer.class.php(292): imagecreatetruecolor
D:\info\????e\blog\class\gallery\resizers\gallerygdresizer.class.php(55): gallerygdresizer.save
D:\info\????e\blog\class\gallery\resizers\galleryresizer.class.php(144): gallerygdresizer.generate
D:\info\????e\blog\class\gallery\resizers\gallerythumbnailgenerator.class.php(77): galleryresizer.generate
D:\info\????e\blog\class\gallery\dao\galleryresources.class.php(492): gallerythumbnailgenerator.generateresourcemediumsizethumbnail
D:\info\????e\blog\class\action\admin\adminaddresourceaction.class.php(101): galleryresources.addresource
D:\info\????e\blog\class\controller\controller.class.php(310): adminaddresourceaction.perform
D:\info\????e\blog\admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at D:\info\????e\blog\class\object\exception.class.php:51)
Error code: 2
-- Backtrace --
D:\info\????e\blog\class\view\view.class.php(323): header
D:\info\????e\blog\class\view\admin\adminview.class.php(112): view.render
D:\info\????e\blog\class\view\admin\admintemplatedview.class.php(36): adminview.render
D:\info\????e\blog\class\view\admin\adminresourceslistview.class.php(147): admintemplatedview.render
D:\info\????e\blog\class\controller\controller.class.php(330): adminresourceslistview.render
D:\info\????e\blog\admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at D:\info\????e\blog\class\object\exception.class.php:51)
Error code: 2
-- Backtrace --
D:\info\????e\blog\class\view\view.class.php(323): header
D:\info\????e\blog\class\view\admin\adminview.class.php(112): view.render
D:\info\????e\blog\class\view\admin\admintemplatedview.class.php(36): adminview.render
D:\info\????e\blog\class\view\admin\adminresourceslistview.class.php(147): admintemplatedview.render
D:\info\????e\blog\class\controller\controller.class.php(330): adminresourceslistview.render
D:\info\????e\blog\admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at D:\info\????e\blog\class\object\exception.class.php:51)
Error code: 2
-- Backtrace --
D:\info\????e\blog\class\view\view.class.php(323): header
D:\info\????e\blog\class\view\admin\adminview.class.php(112): view.render
D:\info\????e\blog\class\view\admin\admintemplatedview.class.php(36): adminview.render
D:\info\????e\blog\class\view\admin\adminresourceslistview.class.php(147): admintemplatedview.render
D:\info\????e\blog\class\controller\controller.class.php(330): adminresourceslistview.render
D:\info\????e\blog\admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at D:\info\????e\blog\class\object\exception.class.php:51)
Error code: 2
-- Backtrace --
D:\info\????e\blog\class\view\view.class.php(323): header
D:\info\????e\blog\class\view\admin\adminview.class.php(112): view.render
D:\info\????e\blog\class\view\admin\admintemplatedview.class.php(36): adminview.render
D:\info\????e\blog\class\view\admin\adminresourceslistview.class.php(147): admintemplatedview.render
D:\info\????e\blog\class\controller\controller.class.php(330): adminresourceslistview.render
D:\info\????e\blog\admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at D:\info\????e\blog\class\object\exception.class.php:51)
Error code: 2
-- Backtrace --
D:\info\????e\blog\class\view\view.class.php(323): header
D:\info\????e\blog\class\view\admin\adminview.class.php(112): view.render
D:\info\????e\blog\class\view\admin\admintemplatedview.class.php(36): adminview.render
D:\info\????e\blog\class\view\admin\adminresourceslistview.class.php(147): admintemplatedview.render
D:\info\????e\blog\class\controller\controller.class.php(330): adminresourceslistview.render
D:\info\????e\blog\admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at D:\info\????e\blog\class\object\exception.class.php:51)
Error code: 2
-- Backtrace --
D:\info\????e\blog\class\view\view.class.php(175): header
D:\info\????e\blog\class\view\view.class.php(325): adminresourceslistview.sendcontenttype
D:\info\????e\blog\class\view\admin\adminview.class.php(112): view.render
D:\info\????e\blog\class\view\admin\admintemplatedview.class.php(36): adminview.render
D:\info\????e\blog\class\view\admin\adminresourceslistview.class.php(147): admintemplatedview.render
D:\info\????e\blog\class\controller\controller.class.php(330): adminresourceslistview.render
D:\info\????e\blog\admin.php(43): admincontroller.process
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #1 於: 六月 06, 2007, 08:47:50 下午 »

請把他升級到 1.2.2,因為整個上傳的機制改變了。

所以如果你是新架設的網站,請直接用 LifeType 1.2.2。

Mark
已記錄

tinanu
新手見習
*
文章: 6


檢視個人資料
« 回覆文章 #2 於: 六月 07, 2007, 10:59:35 上午 »

謝謝您,問題已解決
已記錄
tinanu
新手見習
*
文章: 6


檢視個人資料
« 回覆文章 #3 於: 六月 07, 2007, 05:17:53 下午 »

不好意思。又來問個問題!

現在我是可以傳檔案上去了!但是發現在網頁上面都有如下面的程式碼!
我所上傳的檔案都很小,都是十幾kb~幾百kb

是不是我哪個權限沒有開到呢?
我有搜尋過討論區,但是有找到類似的問題,但找不到答案!
在麻煩大家幫忙看一下原因!謝謝大家了!

系統環境
作業系統:window 2003 Server
Web Service:IIS 6.0
PHP:PHP Version 4.4.4
LifeType:lifetype-1.2.2


錯誤Code
-----------------------------
Exception message: filesize() [function.filesize]: Stat failed for C:\WINDOWS\TEMP\php6F3.tmp (errno=2 - No such file or directory)
Error code: 2
-- Backtrace --
D:\info\????e\blog\class\gallery\getid3\getid3.php(212): filesize
D:\info\????e\blog\class\gallery\dao\galleryresources.class.php(432): getid3.analyze
D:\info\????e\blog\class\action\admin\adminaddresourceaction.class.php(114): galleryresources.addresource
D:\info\????e\blog\class\controller\controller.class.php(347): adminaddresourceaction.perform
D:\info\????e\blog\admin.php(43): admincontroller.process

Exception message: fread() [function.fread]: Length parameter must be greater than 0.
Error code: 2
-- Backtrace --
D:\info\????e\blog\class\gallery\getid3\module.graphic.jpg.php(30): fread
D:\info\????e\blog\class\gallery\getid3\getid3.php(356): getid3_jpg.getid3_jpg
D:\info\????e\blog\class\gallery\dao\galleryresources.class.php(432): getid3.analyze
D:\info\????e\blog\class\action\admin\adminaddresourceaction.class.php(114): galleryresources.addresource
D:\info\????e\blog\class\controller\controller.class.php(347): adminaddresourceaction.perform
D:\info\????e\blog\admin.php(43): admincontroller.process

Exception message: getimagesize() [function.getimagesize]: Read error!
Error code: 2
-- Backtrace --
D:\info\????e\blog\class\gallery\getid3\getid3.lib.php(1176): getimagesize
D:\info\????e\blog\class\gallery\getid3\module.graphic.jpg.php(30): getid3_lib.getdataimagesize
D:\info\????e\blog\class\gallery\getid3\getid3.php(356): getid3_jpg.getid3_jpg
D:\info\????e\blog\class\gallery\dao\galleryresources.class.php(432): getid3.analyze
D:\info\????e\blog\class\action\admin\adminaddresourceaction.class.php(114): galleryresources.addresource
D:\info\????e\blog\class\controller\controller.class.php(347): adminaddresourceaction.perform
D:\info\????e\blog\admin.php(43): admincontroller.process
已記錄
tinanu
新手見習
*
文章: 6


檢視個人資料
« 回覆文章 #4 於: 六月 07, 2007, 05:41:40 下午 »

Sorry;問題已解決了!是權限沒開!^^
感謝大家的幫忙
已記錄
頁: [1]
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  圖片上傳之後,發生錯誤訊息! « 上篇主題 下篇主題 »
    前往: