LifeType 中文開發論壇

支援 => 安裝與設定 => 主題作者是: ccc4mak 於 一月 25, 2006, 04:54:26 下午



主題: 1.03迴響時出現問題
作者: ccc4mak一月 25, 2006, 04:54:26 下午
當別人發表迴響時會出現


錯誤

在將留言新增至資料庫時發生問題。

回到上一頁


主題: Re: 1.03迴響時出現問題
作者: coolman0302六月 18, 2006, 01:38:50 上午
在將留言新增至資料庫時發生問題~我也會有這個問題~想請教各位~是那裡發生錯誤~


winsdows 2000+iis
php 4.4.2
mysql 5.0

http://blog.merrymonarc.com


主題: Re: 1.03迴響時出現問題
作者: coolman0302六月 18, 2006, 02:16:32 下午
環境重架~就好了~


主題: Re: 1.03迴響時出現問題
作者: markwu七月 03, 2006, 02:39:25 下午
下次有這樣的問題,請把

1. Apache 的 error.log, 與
2. ./tmp/sql_error.log

一起貼上來,這樣才好幫你找問題。

Mark


主題: Re: 1.03迴響時出現問題
作者: lss七月 06, 2006, 11:03:06 下午
就算是 iis 也是有 error log 可以匯出成文字檔。把那些貼出來可以省下很多來回詢問的時間。

lss


主題: Re: 1.03迴響時出現問題
作者: yunol十二月 25, 2006, 03:54:31 上午
下次有這樣的問題,請把

1. Apache 的 error.log, 與
2. ./tmp/sql_error.log

一起貼上來,這樣才好幫你找問題。

Mark

這些天機器很不穩定,Apache一直當掉,我就重灌,倒回資料庫第一次還正常,再灌再倒,問題就來了,部落格也是迴響時發生「將留言新增至資料庫時發生問題」,新增文章時,發表之後是空白的,但是舊文章可以修改發表。

Apache還是很不穩定,最急迫要解決的是blog問題:

1.sql_error.log

程式碼:
D:\stes_site\htdocs\stesblog\class\logger\logger\logger.class.php(157): PatternLayout.format
D:\stes_site\htdocs\stesblog\class\logger\logger\logger.class.php(137): Logger.log
D:\stes_site\htdocs\stesblog\class\dao\model.class.php(146): Logger.error
D:\stes_site\htdocs\stesblog\class\dao\model.class.php(402): Model.Execute
D:\stes_site\htdocs\stesblog\class\dao\commentscommon.class.php(57): Model.add
D:\stes_site\htdocs\stesblog\class\action\addcommentaction.class.php(184): CommentsCommon.addComment
D:\stes_site\htdocs\stesblog\class\controller\controller.class.php(310): AddCommentAction.perform
D:\stes_site\htdocs\stesblog\index.php(50): Controller.process

 24-12-2006 20:32:24 ERROR - The following query =
INSERT INTO `lt_articles_comments` (article_id, blog_id, topic, text, date, user_email, user_url, user_name, parent_id, client_ip, send_notification, status, spam_rate, type, normalized_text, normalized_topic) VALUES ('1513', '6', '', '<p>test</p>
', '20061224203224', '', '', 'yunol', '0', '220.134.97.225', '0', '0', '0', '1', 'test', '')generated the following error message =
Field 'properties' doesn't have a default value
D:\stes_site\htdocs\stesblog\class\logger\logger\logger.class.php(157): PatternLayout.format
D:\stes_site\htdocs\stesblog\class\logger\logger\logger.class.php(137): Logger.log
D:\stes_site\htdocs\stesblog\class\dao\model.class.php(146): Logger.error
D:\stes_site\htdocs\stesblog\class\dao\model.class.php(444): Model.Execute
D:\stes_site\htdocs\stesblog\class\dao\articlecategories.class.php(296): Model.update
D:\stes_site\htdocs\stesblog\class\dao\articles.class.php(702): ArticleCategories.updateCategory
D:\stes_site\htdocs\stesblog\class\dao\articles.class.php(721): Articles.deletePostCategoriesLink
D:\stes_site\htdocs\stesblog\class\dao\articles.class.php(959): Articles.updatePostCategoriesLink
D:\stes_site\htdocs\stesblog\class\action\admin\adminupdatepostaction.class.php(121): Articles.updateArticle
D:\stes_site\htdocs\stesblog\class\controller\controller.class.php(310): AdminUpdatePostAction.perform
D:\stes_site\htdocs\stesblog\admin.php(43): Controller.process

 24-12-2006 20:33:19 ERROR - The following query =
UPDATE `lt_articles_categories` SET `name`='大自然', `url`='', `blog_id`='6', `parent_id`='', `description`='大自然', `in_main_page`='1', `last_modification`='2006-12-21 14:30:43', `properties`='', `num_articles`='16', `num_published_articles`='16', `mangled_name`='ec' WHERE id = '18'generated the following error message =
Out of range value adjusted for column 'parent_id' at row 1
D:\stes_site\htdocs\stesblog\class\logger\logger\logger.class.php(157): PatternLayout.format
D:\stes_site\htdocs\stesblog\class\logger\logger\logger.class.php(137): Logger.log
D:\stes_site\htdocs\stesblog\class\dao\model.class.php(146): Logger.error
D:\stes_site\htdocs\stesblog\class\dao\model.class.php(444): Model.Execute
D:\stes_site\htdocs\stesblog\class\dao\articlecategories.class.php(296): Model.update
D:\stes_site\htdocs\stesblog\class\dao\articles.class.php(674): ArticleCategories.updateCategory
D:\stes_site\htdocs\stesblog\class\dao\articles.class.php(725): Articles.addPostCategoriesLink
D:\stes_site\htdocs\stesblog\class\dao\articles.class.php(959): Articles.updatePostCategoriesLink
D:\stes_site\htdocs\stesblog\class\action\admin\adminupdatepostaction.class.php(121): Articles.updateArticle
D:\stes_site\htdocs\stesblog\class\controller\controller.class.php(310): AdminUpdatePostAction.perform
D:\stes_site\htdocs\stesblog\admin.php(43): Controller.process


2.Apache的error.log並沒什麼警告

程式碼:
[Mon Dec 25 04:32:50 2006] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Mon Dec 25 04:32:50 2006] [notice] Apache/2.2.2 (Win32) PHP/5.1.4 configured -- resuming normal operations
[Mon Dec 25 04:32:50 2006] [notice] Server built: Apr 29 2006 18:32:31
[Mon Dec 25 04:32:50 2006] [notice] Parent: Created child process 1652
[Mon Dec 25 04:32:50 2006] [notice] Disabled use of AcceptEx() WinSock2 API
[Mon Dec 25 04:32:50 2006] [notice] Child 1652: Child process is running
[Mon Dec 25 04:32:50 2006] [notice] Child 1652: Acquired the start mutex.
[Mon Dec 25 04:32:50 2006] [notice] Child 1652: Starting 64 worker threads.
[Mon Dec 25 04:32:50 2006] [notice] Child 1652: Listening on port 8080.
[Mon Dec 25 04:32:57 2006] [error] [client 220.181.19.187] File does not exist: D:/stes_site/htdocs/yunol/learning/pc7f.htm
[Mon Dec 25 04:33:01 2006] [error] [client 220.181.19.187] File does not exist: D:/stes_site/htdocs/yunol/learning/pc8f.htm
[Mon Dec 25 04:33:16 2006] [error] [client 220.181.19.187] File does not exist: D:/stes_site/htdocs/yunol/learning/pc9f.htm
[Mon Dec 25 04:34:37 2006] [error] [client 220.181.19.187] File does not exist: D:/stes_site/htdocs/yunol/stes/edu/92computest
[Mon Dec 25 04:34:57 2006] [error] [client 220.181.19.187] File does not exist: D:/stes_site/htdocs/yunol/stes/dwmx/htm
[Mon Dec 25 04:36:13 2006] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Mon Dec 25 04:36:13 2006] [notice] Apache/2.2.2 (Win32) PHP/5.1.4 configured -- resuming normal operations
[Mon Dec 25 04:36:13 2006] [notice] Server built: Apr 29 2006 18:32:31
[Mon Dec 25 04:36:13 2006] [notice] Parent: Created child process 272
[Mon Dec 25 04:36:13 2006] [notice] Disabled use of AcceptEx() WinSock2 API
[Mon Dec 25 04:36:13 2006] [notice] Child 272: Child process is running
[Mon Dec 25 04:36:13 2006] [notice] Child 272: Acquired the start mutex.
[Mon Dec 25 04:36:13 2006] [notice] Child 272: Starting 64 worker threads.
[Mon Dec 25 04:36:13 2006] [notice] Child 272: Listening on port 8080.

環境:
WinXP
Appserv2.5.6
麻煩各位,先謝過囉!


主題: Re: 1.03迴響時出現問題
作者: lss十二月 25, 2006, 07:29:47 上午
搜尋一下 MySQL 5.0 在安裝時會遇到的問題或找一下 FAQ 啦。

lss


主題: Re: 1.03迴響時出現問題
作者: yunol十二月 25, 2006, 10:45:06 上午
搜尋一下 MySQL 5.0 在安裝時會遇到的問題或找一下 FAQ 啦。

lss

多謝啦!真是的,自己摸整晚,有用「空白」搜尋,範圍太大了。

把方法也寫在這:
使用phpmyadmin這個mysql管理工具,進入數據庫查看 plog_articles_text表,把 mangled_topic column的 (NOT NULL),修改為(NULL)。

回部落格測試了一下:

發表迴響還是不行!
想插入圖片,問題又來囉:無法上傳檔案,來去搜尋一下。

想到了,當初我安裝Appserv的時候不勾選MySQL,然後單獨安裝,安裝過程不去勾選Strict Mode,剛剛重新來過,就把所有問題都解決囉!