歡迎光臨, 訪客. 請先 登入註冊一個帳號.
十一月 23, 2024, 08:06:54 上午
19595 文章 在 3865 主題 由 4579 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  使用與操作  |  在新增檔案時發生錯誤。求救! « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 在新增檔案時發生錯誤。求救!  (閱讀 36835 次)
jianmin2
新手見習
*
文章: 14


檢視個人資料
« 於: 五月 24, 2007, 09:27:24 下午 »

我的軟體
win xp sp2
appserv-win32-2.5.8
lifetype 1.2.1版
外掛有用
googleadsense、templateeditor、badbehavior、gallery、embedmedia
我是裝了最新版的plog
都按照步驟設好了~
也可以正常的使用
但是用檔案中心上傳
按新增後出現空白畫面
然後再重整一次後就出現檔案中心的畫面了!
但是在檔案中心還是看不到上傳的東西!!
不過圖片檔可以
我有看過該論壇的文章
也改過php.ini 中的 memory_limit的容量了
也改過全部站台管控 的上傳設定了
 php.ini的
post_max_size 和 upload_max_filesize也改成10M了
在改了PHP.INI檔後就會出現
在新增檔案時發生錯誤。
跟以下訊息
Warning: copy(./gallery/1/09. 雪花.mp3) [function.copy]: failed to open stream: Invalid argument in C:\AppServ\www\lifetype\class\file\file.class.php on line 393

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\lifetype\class\file\file.class.php:393) in C:\AppServ\www\lifetype\class\view\view.class.php on line 321

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\lifetype\class\file\file.class.php:393) in C:\AppServ\www\lifetype\class\view\view.class.php on line 321

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\lifetype\class\file\file.class.php:393) in C:\AppServ\www\lifetype\class\view\view.class.php on line 321

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\lifetype\class\file\file.class.php:393) in C:\AppServ\www\lifetype\class\view\view.class.php on line 321

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\lifetype\class\file\file.class.php:393) in C:\AppServ\www\lifetype\class\view\view.class.php on line 321

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\lifetype\class\file\file.class.php:393) in C:\AppServ\www\lifetype\class\view\view.class.php on line 175
但是在改了之後,更嚴重,只剩圖片可上傳 其它檔都不能上傳,改後連不是2M的DOC、TXT或其它檔都不行(圖片OK)

以下是我的error.log訊息

[Wed May 23 23:33:30 2007] [notice] Child 5104: Child process is running
[Wed May 23 23:33:31 2007] [notice] Child 5104: Acquired the start mutex.
[Wed May 23 23:33:31 2007] [notice] Child 5104: Starting 64 worker threads.
[Wed May 23 23:33:31 2007] [notice] Child 3812: Released the start mutex
[Wed May 23 23:33:32 2007] [notice] Child 3812: Waiting for 64 worker threads to exit.
[Wed May 23 23:33:32 2007] [notice] Child 3812: All worker threads have exited.
[Wed May 23 23:33:32 2007] [notice] Child 3812: Child process is exiting
[Wed May 23 23:33:32 2007] [notice] Child 5104: Starting thread to listen on port 80.
[Wed May 23 23:33:41 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:33:41 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:33:51 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/admin.php?op=resources&albumId=1&page=1
[Wed May 23 23:33:51 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/admin.php?op=resources&albumId=1&page=1
[Wed May 23 23:34:02 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:34:02 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:34:17 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:34:17 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:35:05 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/index.php?op=ViewAlbum&albumId=1&blogId=1
[Wed May 23 23:35:05 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/index.php?op=ViewAlbum&albumId=1&blogId=1
[Wed May 23 23:35:05 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/favicon.ico
[Wed May 23 23:36:10 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:36:10 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:37:44 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:37:44 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:37:57 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:37:57 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:44:37 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:44:37 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:45:28 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:45:28 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:46:03 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:46:03 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:46:30 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:46:30 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:49:15 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:49:15 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:49:35 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:49:35 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/admin.php
[Wed May 23 23:50:43 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/index.php?op=ViewAlbum&albumId=1&blogId=1
[Wed May 23 23:50:43 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/index.php?op=ViewAlbum&albumId=1&blogId=1
[Wed May 23 23:50:43 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/favicon.ico
[Wed May 23 23:50:46 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/favicon.ico
[Wed May 23 23:50:47 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/index.php?op=ViewAlbum&albumId=1&blogId=1
[Wed May 23 23:50:47 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/index.php?op=ViewAlbum&albumId=1&blogId=1
[Wed May 23 23:50:48 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/favicon.ico
[Wed May 23 23:50:55 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/favicon.ico
[Wed May 23 23:59:26 2007] [error] [client 59.116.79.196] File does not exist: C:/AppServ/www/lifetype/gallery/1/previews/cover.jpg, referer: http://jianmin.no-ip.org/lifetype/admin.php?op=resources&albumId=1&page=1
[Wed May 23 23:59:26 2007] [error] [client 59.116.79.196] script 'C:/AppServ/www/error.php' not found or unable to stat, referer: http://jianmin.no-ip.org/lifetype/admin.php?op=resources&albumId=1&page=1

然後還有就是
官方網站說的
"以上兩個方法如果都試過了,卻還是沒有辦法上傳 10MB 的檔案,那麼可能還有一個地方需要修改,那就是 Apache 的設定。請把 Apache 的 LimitRequestBody 這個參數改為你要的大小,如 10000000 (10MB),改過後記得重新啟動 Apache。可能的參數設定檔因不同的系統而異:

    * Windows:在 Apache 安裝目錄的 /conf/httpd.conf 中"
這個我找不到LimitRequestBody 這個參數可以改!為什麼?

希望有那個大大可以幫幫我的!!感激不盡!
已記錄
dada0104
新手見習
*
文章: 1


檢視個人資料
« 回覆文章 #1 於: 八月 20, 2008, 05:26:38 下午 »

您好!~想請教一下~
我也有相同的問題!!

我在新增檔案上面,無法把檔案新增上去!!
檔案大小是圖片.jpg 大小大概才18K~19K左右,

所以應該不會是檔案大小的問題,預設好像是2M;
新增上去無任何的錯誤,但是卻沒有看到檔案,
檢測預設路徑./gallery ,也沒有錯誤!也開放所有權限!

去察看error.log檔案,看到錯誤訊息如下:
PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0

不知道要如何解決這個問題呢?

作業系統 Linux CentOS 5
Lifetype 1.2.8

                 
已記錄
頁: [1]
LifeType 中文開發論壇  |  支援  |  使用與操作  |  在新增檔案時發生錯誤。求救! « 上篇主題 下篇主題 »
    前往: