主題: 上传资源文件时发生的一个错误 作者: Philharmania 於 三月 21, 2005, 11:23:25 上午 以前用着一直没什么问题,今天突然出错。用FTP查看,发现上传的文件虽然产生,但是一个0B的空文件,在preview子目录中也没有生成预览。资源列表中只有文件名存在。
是网站空间的问题吗?谢先。 Exception message: move_uploaded_file(): Unable to move '/tmp/phpoToIkO' to './tmp/1024768.gif' Error code: 2 -- Backtrace -- /MYADDRESS/class/file/fileuploads.class.php(56): move_uploaded_file /MYADDRESS/class/gallery/dao/galleryresourcestorage.class.php(215): fileuploads.process /MYADDRESS/class/gallery/dao/galleryresources.class.php(197): galleryresourcestorage.store /MYADDRESS/class/action/adminaddresourceaction.class.php(69): galleryresources.addresource /MYADDRESS/class/controller/controller.class.php(102): adminaddresourceaction.perform /MYADDRESS/admin.php(37): admincontroller.process Exception message: imagecreatefromgif(): './gallery/2/2-25.gif' is not a valid GIF file Error code: 2 -- Backtrace -- /MYADDRESS/class/gallery/resizers/gallerygdresizer.class.php(99): imagecreatefromgif /MYADDRESS/class/gallery/resizers/gallerygdresizer.class.php(33): gallerygdresizer.thumbnail /MYADDRESS/class/gallery/resizers/galleryresizer.class.php(130): gallerygdresizer.generate /MYADDRESS/class/gallery/dao/galleryresources.class.php(232): galleryresizer.generate /MYADDRESS/class/action/adminaddresourceaction.class.php(69): galleryresources.addresource /MYADDRESS/class/controller/controller.class.php(102): adminaddresourceaction.perform /MYADDRESS/admin.php(37): admincontroller.process 主題: Re: 上传资源文件时发生的一个错误 作者: markwu 於 三月 21, 2005, 11:39:18 上午 引用自: Philharmania Exception message: imagecreatefromgif(): './gallery/2/2-25.gif' is not a valid GIF file 他說這是一個非標準(不正確)的 GIF 檔案。所以沒辦法產生縮圖。看樣子是沒上傳成功所造成的。你可以把就檔砍掉,再是一次嗎? 有可能是你的空間滿了嗎? Mark 主題: 上传资源文件时发生的一个错误 作者: Philharmania 於 三月 21, 2005, 11:47:01 上午 谢谢markwu兄。
空间应该没满,而且刚刚我删了一个5M的文件,又再次上传,还是没有成功。 此次的出错信息略有不同。 Exception message: move_uploaded_file(): Unable to move '/tmp/phpi3LEP3' to './tmp/Bach.jpg' Error code: 2 -- Backtrace -- /MYADDRESS/class/file/fileuploads.class.php(56): move_uploaded_file /MYADDRESS/class/gallery/dao/galleryresourcestorage.class.php(215): fileuploads.process /MYADDRESS/class/gallery/dao/galleryresources.class.php(197): galleryresourcestorage.store /MYADDRESS/class/action/adminaddresourceaction.class.php(69): galleryresources.addresource /MYADDRESS/class/controller/controller.class.php(102): adminaddresourceaction.perform /MYADDRESS/admin.php(37): admincontroller.process Exception message: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: Error code: 2 -- Backtrace -- /MYADDRESS/class/gallery/resizers/gallerygdresizer.class.php(90): imagecreatefromjpeg /MYADDRESS/class/gallery/resizers/gallerygdresizer.class.php(33): gallerygdresizer.thumbnail /MYADDRESS/class/gallery/resizers/galleryresizer.class.php(130): gallerygdresizer.generate /MYADDRESS/class/gallery/dao/galleryresources.class.php(232): galleryresizer.generate /MYADDRESS/class/action/adminaddresourceaction.class.php(69): galleryresources.addresource /MYADDRESS/class/controller/controller.class.php(102): adminaddresourceaction.perform /MYADDRESS/admin.php(37): admincontroller.process Exception message: imagecreatefromjpeg(): './gallery/2/2-27.jpg' is not a valid JPEG file Error code: 2 -- Backtrace -- /MYADDRESS/class/gallery/resizers/gallerygdresizer.class.php(90): imagecreatefromjpeg /MYADDRESS/class/gallery/resizers/gallerygdresizer.class.php(33): gallerygdresizer.thumbnail /MYADDRESS/class/gallery/resizers/galleryresizer.class.php(130): gallerygdresizer.generate /MYADDRESS/class/gallery/dao/galleryresources.class.php(232): galleryresizer.generate /MYADDRESS/class/action/adminaddresourceaction.class.php(69): galleryresources.addresource /MYADDRESS/class/controller/controller.class.php(102): adminaddresourceaction.perform /MYADDRESS/admin.php(37): admincontroller.process 主題: 上传资源文件时发生的一个错误 作者: markwu 於 三月 21, 2005, 12:20:40 下午 你的 jpg 檔有 5M 這麼大,太離譜了。呵呵!
請問你的上傳檔案限制有設定對嗎?另外你的空間是不是真的沒滿?因為看起來搬不過去到 /tmp. :( Mark 主題: Re: 上传资源文件时发生的一个错误 作者: lss 於 三月 21, 2005, 12:23:32 下午 引用自: Philharmania Exception message: move_uploaded_file(): Unable to move '/tmp/phpoToIkO' to './tmp/1024768.gif' 既然網頁空間沒滿,那會不會是 /tmp 出問題?例如 /tmp 的權限改變了?或/tmp所在的分割區滿了? apache 的 error.log 應該會有些有用的訊息。 主題: 上传资源文件时发生的一个错误 作者: Philharmania 於 三月 22, 2005, 10:12:51 上午 谢谢markwu兄和lss兄的回复。
昨天我在FTP里看过tmp的权限是777的。另外先前删去的5M文件是个MP3,以确保有足够的空间上传一个几十K的图片,呵呵,没说清楚。 不过今天早上突然发觉又可以了。 :-S 只能继续观察了。 |