歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 25, 2024, 05:30:17 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  安装成功但不能发表,请帮忙看一下 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 安装成功但不能发表,请帮忙看一下  (閱讀 11616 次)
21grams
新手見習
*
文章: 5


檢視個人資料
« 於: 十一月 29, 2005, 01:01:21 下午 »

环境是:
plog1.0.1
apache2.0.55
php5.1.1
mysql5.0.16
全新安装,一路正常,但安装完后无法正常发表blog,
表现为:没有任何错误提示,但发表后的文章和标题全为空。
检查tmp目录,发现有sql_error.log文件,里面全是类似这样的提示:
29-11-2005 05:49:41 ERROR - The following query =
INSERT INTO plog_articles_text
                     (article_id, topic, text, normalized_text, normalized_topic)
     VALUES( '6', '测试','测试一
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #1 於: 十一月 29, 2005, 01:08:42 下午 »

這應該算是 LifeType 的 Bug,但是好像只在 mysql 5.0 發生。

我假設你熟 mysql,把 plog_articles_text 內的 mangled_topic 的 null 屬性從 not null 改為 null 就可以了。應該可以暫時解決。

然後再把那一段 sql 重新執行一次就可以了。

Mark
已記錄

lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #2 於: 十一月 29, 2005, 01:45:52 下午 »

hi mark:

我記得你提過 PHP 5.1 有跟 PEAR 配合的問題尚未解決。他的 PHP 是 5.1 的。有關係嗎?
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #3 於: 十一月 29, 2005, 02:18:03 下午 »

hi mark:

我記得你提過 PHP 5.1 有跟 PEAR 配合的問題尚未解決。他的 PHP 是 5.1 的。有關係嗎?

PHP 5.1.1 已經修復那的 bug ... 這個原因是 mysql 5.0 所造成的。

Mark
已記錄

shef
新手見習
*
文章: 1


檢視個人資料
« 回覆文章 #4 於: 七月 18, 2006, 09:14:41 上午 »

我也出现了这个问题  傷心
我所用的虚拟主机的环境是
lifetype 1.0.6
Apache/2.0.52 (Red Hat)
PHP Version 4.4.1
mysql 4.1.7

按照前面各位老大的指导,我先将mangled_topic 的 null 属性改为 null ,然后执行sql_error.log里面的那句话
INSERT INTO plog_articles_text
                               (article_id, topic, text, normalized_text, normalized_topic)
                 VALUES( '144', 'GooBar is back!','After being silent for more than one month, GooBar is back now. Finally I&#39;ve stepped out of the series of&nbsp;terrible results in this FIFA WorldCup 2006, which definitely have left indelible shadows in my&nbsp;pure heart...(can English be worse than this...haha)[@more@]<p>All right all right...let&#39;s do a little bit review of the WC, then I&#39;ll switch to the main subject: internship...</p><p>More is coming, and be tuned!</p>','After being silent for more than one month, GooBar is back now. Finally I've stepped out of the series of&nbsp;terrible results in this FIFA WorldCup 2006, which definitely have left indelible shadows in my&nbsp;pure heart...(can English be worse than this...haha)All right all right...let's do a little bit review of the WC, then I'll switch to the main subject: internship...More is coming, and be tuned!', 'GooBar is back!')

可是系统依旧返回的错误提示是:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 've stepped out of the series of&nbsp' at line 3

难道空格的 &nbsp; 不能存在数据库中?
已記錄
頁: [1]
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  安装成功但不能发表,请帮忙看一下 « 上篇主題 下篇主題 »
    前往: