LifeType 中文開發論壇

支援 => 使用與操作 => 主題作者是: Nyserq 於 八月 05, 2007, 09:41:13 下午



主題: 請問...刪除垃圾迴響時會有錯誤訊息
作者: Nyserq八月 05, 2007, 09:41:13 下午
版本資訊
LifeType 1.1.6
Apache 1.3.37(Unix)
PHP 4.4.4
MySQL 4.1.21-standard

本來一直都滿正常沒有問題
我也沒有升級lifetype或新加裝任何plugin
前幾天突然無法登入後台,登入時會出現一堆錯誤訊息
看了看訊息好像是tmp下的檔案沒有寫入權限
可是我去看目錄和檔案權限都沒有什麼問題,後來我把tmp目錄砍掉再重建一個tmp後就可以正常登入了
發文或留言都沒有問題。

可是現在管理迴響,勾選垃圾留言批次刪除時都會出現一堆錯誤訊息
雖然看起來還是可以刪除,可是每次都出現一堆訊息感覺怪怪的。
想知道是不是出了什麼問題。

錯誤訊息如下:
程式碼:
Exception message: Invalid argument supplied for foreach()
Error code: 2
-- Backtrace --
/home/kznlflq/public_html/plog/class/dao/articles.class.php(697): deletepostcategorieslink
/home/kznlflq/public_html/plog/class/dao/articles.class.php(717): articles.deletepostcategorieslink
/home/kznlflq/public_html/plog/class/dao/articles.class.php(962): articles.updatepostcategorieslink
/home/kznlflq/public_html/plog/class/dao/commentscommon.class.php(307): articles.updatearticle
/home/kznlflq/public_html/plog/class/action/admin/admindeletecommentaction.class.php(109): articlecomments.deletecomment
/home/kznlflq/public_html/plog/class/action/admin/admindeletecommentaction.class.php(57): admindeletecommentaction._deletecomments
/home/kznlflq/public_html/plog/class/controller/controller.class.php(310): admindeletecommentaction.perform
/home/kznlflq/public_html/plog/admin.php(43): admincontroller.process

Exception message: Invalid argument supplied for foreach()
Error code: 2
-- Backtrace --
/home/kznlflq/public_html/plog/class/dao/articles.class.php(697): deletepostcategorieslink
/home/kznlflq/public_html/plog/class/dao/articles.class.php(717): articles.deletepostcategorieslink
/home/kznlflq/public_html/plog/class/dao/articles.class.php(962): articles.updatepostcategorieslink
/home/kznlflq/public_html/plog/class/dao/commentscommon.class.php(307): articles.updatearticle
/home/kznlflq/public_html/plog/class/action/admin/admindeletecommentaction.class.php(109): articlecomments.deletecomment
/home/kznlflq/public_html/plog/class/action/admin/admindeletecommentaction.class.php(57): admindeletecommentaction._deletecomments
/home/kznlflq/public_html/plog/class/controller/controller.class.php(310): admindeletecommentaction.perform
/home/kznlflq/public_html/plog/admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at /home/kznlflq/public_html/plog/class/object/exception.class.php:39)
Error code: 2
-- Backtrace --
/home/kznlflq/public_html/plog/class/view/view.class.php(323): header
/home/kznlflq/public_html/plog/class/view/admin/adminview.class.php(112): view.render
/home/kznlflq/public_html/plog/class/view/admin/admintemplatedview.class.php(36): adminview.render
/home/kznlflq/public_html/plog/class/view/admin/adminarticlecommentslistview.class.php(135): admintemplatedview.render
/home/kznlflq/public_html/plog/class/controller/controller.class.php(330): adminarticlecommentslistview.render
/home/kznlflq/public_html/plog/admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at /home/kznlflq/public_html/plog/class/object/exception.class.php:39)
Error code: 2
-- Backtrace --
/home/kznlflq/public_html/plog/class/view/view.class.php(323): header
/home/kznlflq/public_html/plog/class/view/admin/adminview.class.php(112): view.render
/home/kznlflq/public_html/plog/class/view/admin/admintemplatedview.class.php(36): adminview.render
/home/kznlflq/public_html/plog/class/view/admin/adminarticlecommentslistview.class.php(135): admintemplatedview.render
/home/kznlflq/public_html/plog/class/controller/controller.class.php(330): adminarticlecommentslistview.render
/home/kznlflq/public_html/plog/admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at /home/kznlflq/public_html/plog/class/object/exception.class.php:39)
Error code: 2
-- Backtrace --
/home/kznlflq/public_html/plog/class/view/view.class.php(323): header
/home/kznlflq/public_html/plog/class/view/admin/adminview.class.php(112): view.render
/home/kznlflq/public_html/plog/class/view/admin/admintemplatedview.class.php(36): adminview.render
/home/kznlflq/public_html/plog/class/view/admin/adminarticlecommentslistview.class.php(135): admintemplatedview.render
/home/kznlflq/public_html/plog/class/controller/controller.class.php(330): adminarticlecommentslistview.render
/home/kznlflq/public_html/plog/admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at /home/kznlflq/public_html/plog/class/object/exception.class.php:39)
Error code: 2
-- Backtrace --
/home/kznlflq/public_html/plog/class/view/view.class.php(323): header
/home/kznlflq/public_html/plog/class/view/admin/adminview.class.php(112): view.render
/home/kznlflq/public_html/plog/class/view/admin/admintemplatedview.class.php(36): adminview.render
/home/kznlflq/public_html/plog/class/view/admin/adminarticlecommentslistview.class.php(135): admintemplatedview.render
/home/kznlflq/public_html/plog/class/controller/controller.class.php(330): adminarticlecommentslistview.render
/home/kznlflq/public_html/plog/admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at /home/kznlflq/public_html/plog/class/object/exception.class.php:39)
Error code: 2
-- Backtrace --
/home/kznlflq/public_html/plog/class/view/view.class.php(323): header
/home/kznlflq/public_html/plog/class/view/admin/adminview.class.php(112): view.render
/home/kznlflq/public_html/plog/class/view/admin/admintemplatedview.class.php(36): adminview.render
/home/kznlflq/public_html/plog/class/view/admin/adminarticlecommentslistview.class.php(135): admintemplatedview.render
/home/kznlflq/public_html/plog/class/controller/controller.class.php(330): adminarticlecommentslistview.render
/home/kznlflq/public_html/plog/admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at /home/kznlflq/public_html/plog/class/object/exception.class.php:39)
Error code: 2
-- Backtrace --
/home/kznlflq/public_html/plog/class/view/view.class.php(175): header
/home/kznlflq/public_html/plog/class/view/view.class.php(325): adminarticlecommentslistview.sendcontenttype
/home/kznlflq/public_html/plog/class/view/admin/adminview.class.php(112): view.render
/home/kznlflq/public_html/plog/class/view/admin/admintemplatedview.class.php(36): adminview.render
/home/kznlflq/public_html/plog/class/view/admin/adminarticlecommentslistview.class.php(135): admintemplatedview.render
/home/kznlflq/public_html/plog/class/controller/controller.class.php(330): adminarticlecommentslistview.render
/home/kznlflq/public_html/plog/admin.php(43): admincontroller.process

謝謝!


主題: Re: 請問...刪除垃圾迴響時會有錯誤訊息
作者: markwu八月 07, 2007, 10:17:42 上午
這是在刪除文章與分類關連的時候發生的錯誤。看不出來為什麼會這樣,你之前有做過什麼事嗎?

Mark


主題: Re: 請問...刪除垃圾迴響時會有錯誤訊息
作者: Nyserq八月 07, 2007, 08:42:17 下午
這是在刪除文章與分類關連的時候發生的錯誤。看不出來為什麼會這樣,你之前有做過什麼事嗎?

Mark

我很久沒有動lifetype程式了,不知道為什麼會這樣。
就是突然無法發文、登入,我用cpanel的界面修了一下database,接著砍掉tmp重建。
成功登入後就發現這個問題。
我檢查過,虛擬主機各程式的版本也沒有更新。

這樣可能要重灌了...:(


主題: Re: 請問...刪除垃圾迴響時會有錯誤訊息
作者: Nyserq八月 18, 2007, 11:00:07 上午
我把1.1.6的檔案再重新update
結果還是一樣,這樣是不是database的問題?
要怎麼修呢?..