歡迎光臨, 訪客. 請先 登入註冊一個帳號.
三月 29, 2024, 11:49:07 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: [1]
1  支援 / 安裝與設定 / Re: 安裝時出現問題...MySQL 4.1.22 於: 六月 23, 2008, 11:00:25 下午
MySQL 資料庫都設定正確...權限也給 ALL 了
我是用虛擬主機架的...管理控制台是 cPanel 11
不知道你的問題解決了嗎?
我今天升級部落格也發生同樣的事情,搜尋文章之後想到了:
/config/config.properties.php
之前的版本會幫我們自動填入"db_prefix"為"lt_",1.2之後都是空白,如果之前設定為"lt_",就要記得去填入
$config["db_prefix"] = "lt_";

2  支援 / 安裝與設定 / Re: 1.03迴響時出現問題 於: 十二月 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,剛剛重新來過,就把所有問題都解決囉!

3  支援 / 安裝與設定 / Re: 1.03迴響時出現問題 於: 十二月 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
麻煩各位,先謝過囉!
4  支援 / 使用與操作 / 這是 Zoundry,另一個很棒的離線 blog editor。 於: 十月 14, 2006, 10:25:01 下午
這是 Zoundry,另一個很棒的離線 blog editor。

1.快速偵測 Blog 軟體的類型(可以立刻偵測出 Lifetype),且可以自動抓到 xmlrpc.php 的正確路徑,對一般使用者在設定上來說,是非常方便的。

2.可插入 local 圖片。

3.正確抓取文章類別(Categories),所以能在離線時就指定好 blog 上的文章類別了,這是目前WLW(Windows Live Writer)在 Lifetype 上尚未解決的,但看來用 Zoundry 是沒問題了。

4.發佈時提供的相關資訊細節明確,例如你可以了解將有哪些東西、檔案會傳上去,資訊透明感及可靠度相當高。

5.More...

不過它的XHTML碼並不太乾淨,這是真的!如果你修改過內容後,再去看它的XHTML碼,天啊!很亂呢!
相較之下,WLW會產生比較乾淨的XHTML碼,只是WLW目前的功能在Lifetype上有些小限制(之前就談過)

下載:http://www.zoundry.com/

Zoundry 發文時,想要自行分隔延伸的內容記得在分隔處插入
5  支援 / 使用與操作 / Re: 请问LifeType能用Windows Live Writer么 於: 十月 12, 2006, 04:20:11 下午
引用
關於WLW只能傳單張圖的說法,不知所指為何?我試了一下,在文章中插入數張圖,用WLW傳到lifetype都很正常啊(如果有update過相應版本的xmlrpc.php),確實是一次就傳好了,不限單張圖。

真的可以插入多張圖,我此文就是用 Windows Live Writer 編輯上傳:
http://140.128.224.30:8080/stesblog/index.php?op=ViewArticle&articleId=78&blogId=6

超好用,真是太感激奇磊了!
6  支援 / 使用與操作 / Re: 请问LifeType能用Windows Live Writer么 於: 十月 11, 2006, 10:36:18 下午
我不是說了,那個只給 1.0 用嗎?何必一定要在 1.1 來試呢?  微笑

Mark

我們學校的奇磊老師有適用在1.1版本上的喔!
在學校部落格也測試成功

下面是奇磊來函的部份:
關於lifetype上使用windows live writer的方法,是參考Mark的如何在 LifeType 上使用 Windows Live Writer (1),但因為作者提供的修改版本只能在1.06版上,不能直接用在1.1版。我只好手動查考修改處,並加上先暫時過濾掉特殊字元,重新修改1.1版的xmlrpc.php,經在自己的機器上測試,已能用windows live writer將含有local 圖片的blog文章直接上傳,一切正常!!
我把它放在這裡

請于大姐和邱棻試著先update看看,如果穩定無誤,這樣以後大家就會可以
快樂的使用Windows Live Writer在Lifetype 1.1上了!
麻煩兩位了!
奇磊
7  支援 / 安裝與設定 / Re: [問題]無法刪除恭喜與使用者ID & 註冊信亂碼 於: 十月 01, 2006, 08:05:53 上午
引用
最後是註冊信亂碼的問題,目前我安裝的Life Type是用UTF-8編碼,寄出的註冊信當然是UTF-8編碼
這樣問題我在站上FAQ上找到解決的方法,但內容變成了BIG5編碼了,可以寄出的主題(Subject)還是亂碼?
請問該如何解決這個問題呢?

我是這樣子解決的:

修改 /class/mail 下面的
emailmessage.class.php
把$this->_charset = 'iso-8859-1';改成'UTF-8';



修改 /class/mail/phpmailer 下面的
class.phpmailer.php

把 var $CharSet = 'iso-8859-1';改成'UTF-8';

LifeType平台為1.1版


8  支援 / 安裝與設定 / Re: 安裝完畢無法發表新文章---問題解決,成功,多謝! 於: 九月 09, 2006, 03:43:19 下午
這是 lifetype 在 mysql5  的 bug ...

因為在 mysql5 中,預設的 strict mode 是 enabled 的。(不允許空值)

所以你必須關掉 strict mode,這樣就可以在 mysql5  下面使用了。

請參考:http://blog.derjohng.com/2006/02/24/mysql-out-of-range-value-adjusted-for-column/

Mark

那個是單獨安裝 mysql 5會出現的選項畫面,我是利用AppServ快速裝起來的,請問要如何關掉?


好像找到了,在my-template.ini
是這句關掉嗎?sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
<<ifdef STRICTMODE>>
# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
<<endif>>
來試試看!

在my.ini也找到

# Set the SQL mode to strict
#sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
mark起來也重開mysql,可是還是失敗!


今天到此,要去找周老爺子了,老人家吃不消囉!

問題解決,成功囉,多謝!

1.移除AppServ之下安裝的MySQL
2.下載mysql-5.0.22-win32重新安裝,選擇自行安裝,安裝過程要注意去停掉之前安裝的MySQL,不然3306Port會被佔用掉。
3.第一次安裝,我自己邊安裝邊寫下來過程與狀況的排除,也是第一次安裝者,可以參考喔!


http://yunol.stes.tc.edu.tw/phpBB2/viewtopic.php?t=14841
9  支援 / 安裝與設定 / Re: 安裝完畢無法發表新文章 於: 九月 08, 2006, 06:14:24 下午
這是 lifetype 在 mysql5  的 bug ...

因為在 mysql5 中,預設的 strict mode 是 enabled 的。(不允許空值)

所以你必須關掉 strict mode,這樣就可以在 mysql5  下面使用了。

請參考:http://blog.derjohng.com/2006/02/24/mysql-out-of-range-value-adjusted-for-column/

Mark

那個是單獨安裝 mysql 5會出現的選項畫面,我是利用AppServ快速裝起來的,請問要如何關掉?


好像找到了,在my-template.ini
是這句關掉嗎?sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
<<ifdef STRICTMODE>>
# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
<<endif>>
來試試看!

在my.ini也找到

# Set the SQL mode to strict
#sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
mark起來也重開mysql,可是還是失敗!


今天到此,要去找周老爺子了,老人家吃不消囉!
10  支援 / 安裝與設定 / Re: 安裝完畢無法發表新文章 於: 九月 08, 2006, 05:35:24 下午
這是 lifetype 在 mysql5  的 bug ...

因為在 mysql5 中,預設的 strict mode 是 enabled 的。(不允許空值)

所以你必須關掉 strict mode,這樣就可以在 mysql5  下面使用了。

請參考:http://blog.derjohng.com/2006/02/24/mysql-out-of-range-value-adjusted-for-column/
Mark

那個是單獨安裝 mysql 5會出現的選項畫面,我是利用AppServ快速裝起來的,請問要如何關掉?
11  支援 / 安裝與設定 / Re: 安裝完畢無法發表新文章 於: 九月 08, 2006, 02:48:29 下午
引用

朋友的網站還是存在第一個問題,我已經將Appserv 改成2.4.6,主機是 win2003 server

您提供的連結我看了,駑鈍,不懂,可否多解釋一下,謝謝。

sql_error.log

generated the following error message =
Field 'mangled_topic' doesn't have a default value
08-09-2006 15:38:51 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

可連結到網誌看我說的情形
http://aimm02.cse.ttu.edu.tw/aimmblog/index.php?blogId=1
12  支援 / 安裝與設定 / Re: 安裝完畢無法發表新文章 於: 九月 08, 2006, 11:28:32 上午
Hi yunol:

第一個問題請參考 http://forum.lifetype.org.tw/index.php?topic=2715.0
第二個問題是編碼設定的問題,在安裝時請指定編碼為UTF-8,同時你在新建資料庫時也必須指定Mysql資料庫編碼為UTF8。

關於MySQL UTF8中文編碼的問題,請參

連結過去看了,但是還沒消化。
多謝喔!
13  支援 / 安裝與設定 / Re: 安裝完畢無法發表新文章 於: 九月 08, 2006, 11:23:53 上午
如果你的 LifeType 資料庫原來就是使用 utf8 編碼,是升級後才出問題的話,那應該是 MySQL 預設編碼不是 utf8 造成的,詳細原因可以看 james 介紹的文章,裡頭說的很詳細。

這可以藉由設定 LifeType 的設定檔來避免,請參考我寫的這篇升級 LifeType 1.1 beta1 的小撇步。看來,得把他寫進 FAQ 了。

lss

多謝您的熱心解答,我之前並沒有安裝過 LifeType ,第一次安裝。
安裝過程很順利,但就是登入之後的第一則文都無法看到,可以看到有文章發表,連結卻看不到任何文字。
幫朋友安裝也是發生相同的問題,他的電腦還有一個怪問題,無法讀取 mysql 模組,我搜尋網路解決了,但是沒有立刻記錄下來,就給它忘記了,年紀有點囉!

後來我自己電腦就重灌 AppServ 2.5.6 但是不勾選 mysql ,然後把自己舊電腦上面的 mysql 複製過來,版本是 4.1.20 接著再重新安裝 LifeType 就 OK 囉!

可是目前朋友的還卡在
無法讀取 mysql 模組

我之所以會踹這支程式,是因為去年台中縣市舉辦中小學生的部落格大賽,就用它架起的,第一次比賽師生都反應熱烈,架起的四台機器受不了,網路有時連線非常的慢,所以聽網路中心的消息是要交給各校自行架設。

我06/08/01剛退休,退休前任職西屯國小兼任資訊組,是台中市年紀最大的資訊組長啦,接手的新組長都還不熟悉各種狀況,所以還要退而不休加以協助。

對不起,說了好多,只是很感激有這麼快速的回覆。

休息一下,會繼續努力解決問題。
14  支援 / 安裝與設定 / 安裝完畢無法發表新文章 於: 九月 07, 2006, 11:56:45 下午
安裝版本是LifeType 1.0.6 正式版(zip 格式)

安裝完畢無法發表新文章,有發表但是看不到。

我的環境是
Win XP
AppServ 2.5.6包的(Apache 2.2.2+MySQL 5.0.22+PHP 5.1.4)

sql_error.log


generated the following error message =
Field 'mangled_topic' doesn't have a default value
07-09-2006 10:37:56 ERROR - The following query =
INSERT INTO lt_articles_text
                               (article_id, topic, text, normalized_text, normalized_topic)
                 VALUES( '3', '測試','<strong><font style="BACKGROUND-COLOR: #ffffcc" color="#0000ff">測試</font></strong>[@more@]','測試', '測試')
generated the following error message =
Field 'mangled_topic' doesn't have a default value

搜尋過,和這篇問題有點相似,但是又不同,煩請協助,多謝!
http://forum.lifetype.org.tw/index.php?topic=1593.msg9423


再補充一下,我安裝lifetype-1.1也有和這個網頁相似的問題,我們環境相同,不知道是否有關聯。
http://forum.lifetype.org.tw/index.php?topic=2459.msg14157

我兩者都是全新安裝,不是升級。

sql_error.log如下:
07-09-2006 17:51:48 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
D:\mysite\htdocs\yunolblog\class\logger\logger\logger.class.php(157): PatternLayout.format
D:\mysite\htdocs\yunolblog\class\logger\logger\logger.class.php(137): Logger.log
D:\mysite\htdocs\yunolblog\class\dao\model.class.php(146): Logger.error
D:\mysite\htdocs\yunolblog\class\dao\articles.class.php(665): Model.Execute
D:\mysite\htdocs\yunolblog\class\dao\articles.class.php(799): Articles.addPostCategoriesLink
D:\mysite\htdocs\yunolblog\wizard.php(1191): Articles.addArticle
D:\mysite\htdocs\yunolblog\class\controller\controller.class.php(310): WizardStepFive.perform
D:\mysite\htdocs\yunolblog\wizard.php(2395): Controller.process

 07-09-2006 17:51:48 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


ㄟ,又來了,我是屬於那種不解決問題睡不著的人。
是mysql的問題,用 mysql4.1.20 安裝 lifetype1.0.6 可發表,完全正常沒問題,但是安裝 lifetype1.1 有問題,中文字都變成了?號。
頁: [1]