歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 25, 2024, 05:54:57 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  圖片無法上傳.非圖片類可以正確上傳之問題 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 圖片無法上傳.非圖片類可以正確上傳之問題  (閱讀 14168 次)
oncefull
新手見習
*
文章: 5


檢視個人資料
« 於: 十二月 17, 2006, 07:16:58 下午 »

出現的錯誤訊息如下:
Exception message: imagejpeg(): Unable to open './gallery/1/previews/./gallery/1/DSC09052.JPG' for writing
Error code: 2
-- Backtrace --
c:\appserv\www\blog\class\gallery\resizers\gallerygdresizer.class.php(314): imagejpeg
c:\appserv\www\blog\class\gallery\resizers\gallerygdresizer.class.php(55): gallerygdresizer.save
c:\appserv\www\blog\class\gallery\resizers\galleryresizer.class.php(144): gallerygdresizer.generate
c:\appserv\www\blog\class\gallery\resizers\gallerythumbnailgenerator.class.php(34): galleryresizer.generate
c:\appserv\www\blog\class\gallery\dao\galleryresources.class.php(486): gallerythumbnailgenerator.generateresourcethumbnail
c:\appserv\www\blog\class\action\admin\adminaddresourceaction.class.php(103): galleryresources.addresource
c:\appserv\www\blog\class\controller\controller.class.php(337): adminaddresourceaction.perform
c:\appserv\www\blog\admin.php(43): admincontroller.process

Exception message: imagejpeg(): Unable to open './gallery/1/previews-med/./gallery/1/DSC09052.JPG' for writing
Error code: 2
-- Backtrace --
c:\appserv\www\blog\class\gallery\resizers\gallerygdresizer.class.php(314): imagejpeg
c:\appserv\www\blog\class\gallery\resizers\gallerygdresizer.class.php(55): gallerygdresizer.save
c:\appserv\www\blog\class\gallery\resizers\galleryresizer.class.php(144): gallerygdresizer.generate
c:\appserv\www\blog\class\gallery\resizers\gallerythumbnailgenerator.class.php(67): galleryresizer.generate
c:\appserv\www\blog\class\gallery\dao\galleryresources.class.php(492): gallerythumbnailgenerator.generateresourcemediumsizethumbnail
c:\appserv\www\blog\class\action\admin\adminaddresourceaction.class.php(103): galleryresources.addresource
c:\appserv\www\blog\class\controller\controller.class.php(337): adminaddresourceaction.perform
c:\appserv\www\blog\admin.php(43): admincontroller.process

架設環境windows2003
phpMyAdmin 2.5.6
mysql 3.23.49  gd版本2.0.22
gallery我有設為可讀寫

因為重新安裝依舊無法上傳圖片.目前情況是上傳非圖片檔案不產生預覽的上傳ok.但是上傳圖片不可以.
請問有前輩可以幫忙解答這個問題嗎?
安裝版本為lifetype 1.1.2版 安裝方式並無變更網址設定與其他任何設定,也就是ㄧ安裝完畢測試上傳檔案就出現這樣訊息. 麻煩各位前輩.謝謝

附註:gallery的資料夾我檢查事實上有上傳成功,可是縮圖部分失敗.另外上傳時他上方出現的是我上面的錯誤訊息,但是下方卻顯現上傳成功.還有,我在前台要觀看那個檔案,點選下載也是失敗.
« 最後編輯時間: 十二月 18, 2006, 02:12:36 下午 由 oncefull » 已記錄
mermaidz
新手見習
*
文章: 9


富安國小資訊組長


檢視個人資料 個人網站
« 回覆文章 #1 於: 一月 04, 2007, 07:13:27 上午 »

問題應該出在縮圖上,請先去這邊看看

全部站台管控 » 檔案中心設定
您用來產生縮圖的後端系統。如果使用PHP,GD的支援是必須的。

如果沒有裝(猜測應該是沒裝GD)或者是你用的是imagemagick可能沒設定好
如果想鴕鳥心態就選none
不過我目前發現如果上傳照片太大,好像是1MB左右的大小
就會造成縮圖無法產生的問題,很可能是我自己php那邊鎖住了(懶惰不想改,繼續鴕鳥心態)
你的問題應該不是lifetype沒有架設好而是屬於環境沒調整好的關係吧。
已記錄

freebsd5.4,
Apache2.1.4 (FreeBSD) Server
MySQL 版本4.1.10a
php-4.4.0
lifetype1.1
gallery2.1
nba23
版主
一般會員
*****
文章: 110



檢視個人資料 個人網站
« 回覆文章 #2 於: 一月 04, 2007, 09:21:06 上午 »

你的GD没有装好,在windows下的,你进php.ini 看看GD部分是否开启了了.然后再用

 用phpinfo()看gd信息   jpeg是否为enable
已記錄

http://blog.cnplog.com : FreeBSD 6.1-STABLE/APACHE2/PHP4.4.2/MySQL 4.1.21/LifeType 1.1
頁: [1]
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  圖片無法上傳.非圖片類可以正確上傳之問題 « 上篇主題 下篇主題 »
    前往: