環境:
Appserv 2.5.6
Winxp home
安裝的時候出現這個錯誤
Fatal error: Call to a member function setNumPublishedArticles() on a non-object in C:\AppServ\www\lifetype-devel-20060813\class\dao\articles.class.php on line 669
tmp/sql_error.log 裡頭的訊息是:
C:\AppServ\www\lifetype-devel-20060813\class\logger\logger\logger.class.php(157): PatternLayout.format
C:\AppServ\www\lifetype-devel-20060813\class\logger\logger\logger.class.php(137): Logger.log
C:\AppServ\www\lifetype-devel-20060813\class\dao\model.class.php(149): Logger.error
C:\AppServ\www\lifetype-devel-20060813\class\dao\model.class.php(408): Model.Execute
C:\AppServ\www\lifetype-devel-20060813\class\dao\blogcategories.class.php(41): Model.add
C:\AppServ\www\lifetype-devel-20060813\wizard.php(1135): BlogCategories.addBlogCategory
C:\AppServ\www\lifetype-devel-20060813\class\controller\controller.class.php(310): WizardStepFive.perform
C:\AppServ\www\lifetype-devel-20060813\wizard.php(2389): Controller.process
14-08-2006 12:31:14 ERROR - The following query =
INSERT INTO `lt_blog_categories` (name, description, properties, num_blogs, num_active_blogs, mangled_name) VALUES ('General', 'General', 'a:0:{}', '', '', 'general')generated the following error message =
Out of range value adjusted for column 'num_blogs' at row 1
C:\AppServ\www\lifetype-devel-20060813\class\logger\logger\logger.class.php(157): PatternLayout.format
C:\AppServ\www\lifetype-devel-20060813\class\logger\logger\logger.class.php(137): Logger.log
C:\AppServ\www\lifetype-devel-20060813\class\dao\model.class.php(149): Logger.error
C:\AppServ\www\lifetype-devel-20060813\class\dao\model.class.php(408): Model.Execute
C:\AppServ\www\lifetype-devel-20060813\class\dao\articlecategories.class.php(231): Model.add
C:\AppServ\www\lifetype-devel-20060813\wizard.php(1177): ArticleCategories.addArticleCategory
C:\AppServ\www\lifetype-devel-20060813\class\controller\controller.class.php(310): WizardStepFive.perform
C:\AppServ\www\lifetype-devel-20060813\wizard.php(2389): Controller.process
14-08-2006 12:31:14 ERROR - The following query =
INSERT INTO `lt_articles_categories` (name, url, blog_id, parent_id, description, in_main_page, last_modification, properties, num_articles, num_published_articles, mangled_name) VALUES ('General', 'General', '1', '', '', '1', '20060814123114', 'a:0:{}', '0', '0', 'general')generated the following error message =
Out of range value adjusted for column 'parent_id' at row 1
C:\AppServ\www\lifetype-devel-20060813\class\logger\logger\logger.class.php(157): PatternLayout.format
C:\AppServ\www\lifetype-devel-20060813\class\logger\logger\logger.class.php(137): Logger.log
C:\AppServ\www\lifetype-devel-20060813\class\dao\model.class.php(149): Logger.error
C:\AppServ\www\lifetype-devel-20060813\class\dao\articles.class.php(856): Model.Execute
C:\AppServ\www\lifetype-devel-20060813\class\dao\articles.class.php(796): Articles.addArticleText
C:\AppServ\www\lifetype-devel-20060813\wizard.php(1191): Articles.addArticle
C:\AppServ\www\lifetype-devel-20060813\class\controller\controller.class.php(310): WizardStepFive.perform
C:\AppServ\www\lifetype-devel-20060813\wizard.php(2389): Controller.process
14-08-2006 12:31:14 ERROR - The following query =
INSERT INTO lt_articles_text (article_id,topic,text,normalized_text,normalized_topic) VALUES (1,'恭喜!','如果你可以看到這篇文章,表示註冊過程已經順利完成。現在你可以開始blogging了!','如果你可以看到這篇文章,表示註冊過程已經順利完成。現在你可以開始blogging了!','恭喜!');generated the following error message =
Field 'mangled_topic' doesn't have a default value
C:\AppServ\www\lifetype-devel-20060813\class\logger\logger\logger.class.php(157): PatternLayout.format
C:\AppServ\www\lifetype-devel-20060813\class\logger\logger\logger.class.php(137): Logger.log
C:\AppServ\www\lifetype-devel-20060813\class\dao\model.class.php(149): Logger.error
C:\AppServ\www\lifetype-devel-20060813\class\dao\articles.class.php(665): Model.Execute
C:\AppServ\www\lifetype-devel-20060813\class\dao\articles.class.php(799): Articles.addPostCategoriesLink
C:\AppServ\www\lifetype-devel-20060813\wizard.php(1191): Articles.addArticle
C:\AppServ\www\lifetype-devel-20060813\class\controller\controller.class.php(310): WizardStepFive.perform
C:\AppServ\www\lifetype-devel-20060813\wizard.php(2389): Controller.process
14-08-2006 12:31:14 ERROR - The following query =
INSERT INTO lt_article_categories_link (article_id,category_id) VALUES (1,'');generated the following error message =
Out of range value adjusted for column 'category_id' at row 1
請問一下該如何修正呢? 謝謝大家