版本資訊
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
謝謝!
這是在刪除文章與分類關連的時候發生的錯誤。看不出來為什麼會這樣,你之前有做過什麼事嗎?
Mark
我很久沒有動lifetype程式了,不知道為什麼會這樣。
就是突然無法發文、登入,我用cpanel的界面修了一下database,接著砍掉tmp重建。
成功登入後就發現這個問題。
我檢查過,虛擬主機各程式的版本也沒有更新。
這樣可能要重灌了...:(