歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 23, 2024, 08:47:28 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  測試  |  LifeType 1.1 測試  |  升級 lifetype-1.1-beta1時錯誤 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 升級 lifetype-1.1-beta1時錯誤  (閱讀 17534 次)
hlps9999
LifeType 中文發展團隊
資深會員
*****
文章: 288



檢視個人資料 個人網站
« 於: 七月 29, 2006, 02:14:30 上午 »

在FC3下,MySQL 版本 3.23.58,PHP Version 4.3.9

為了測試1.1,我將原本的資料庫複製了一個新的,執行wizard.php
引用
Database Info
Changes to table articles executed successfully.
Changes to table articles_categories executed successfully.
略...
Changes to table phpbb2_users executed successfully.
Changes to table blog_categories executed successfully.
Changes to table global_articles_categories executed successfully.

** Modifications to the database schema carried out successfully **

The next step will update some of the data in your database. This process may take a while depending on the amount of data in your database, and the browser will periodically refresh to avoid timeout issues. Please do not attempt to interrupt this process.Error removing duplicates (tried 4.0 and 4.1 syntax) in config table: You have an error in your SQL syntax near 'plog_config FROM plog_config a LEFT JOIN plog_config b ON a.config_key = b.confi' at line 1

到這裡,就無法再繼續Next下去了。

有看過這篇之前的討論 Error with wizard.php

不知道是不是因為MySQL 版本 3.23.58的關係?
已記錄
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #1 於: 七月 29, 2006, 03:25:14 上午 »

看錯誤訊息,應該是 MySQL 版本的問題。錯誤訊息裡有一段:
引用
Error removing duplicates (tried 4.0 and 4.1 syntax) in config table:(後略)
也許,在 wizard.php 的步驟一做環境檢查時,應該加上 MySQL 的版本檢查。

阿欣有空的話,到 mantis 回報一下吧 微笑

我在 winxp 下的 LifeType 2 Go 做了跟你一模一樣的事,很順利的就完成了呢!

lss
已記錄

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


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #2 於: 七月 29, 2006, 11:18:11 上午 »

mmm.... 這是因為 config table 內有 duplicate key ...

我跟 Jon 應該已經修復了啊! 傷心

你可以把 lt_config 中的 duplicate key 刪掉一個,在試著升級試試看。

我還是必須來看看,為什麼修復的  bug 又出現了。 傷心

Mark

已記錄

hlps9999
LifeType 中文發展團隊
資深會員
*****
文章: 288



檢視個人資料 個人網站
« 回覆文章 #3 於: 七月 29, 2006, 01:55:47 下午 »

你可以把 lt_config 中的 duplicate key 刪掉一個,在試著升級試試看。
不好意思,Mark,我資資愚頓,不知道要刪哪一個耶!
已記錄
hlps9999
LifeType 中文發展團隊
資深會員
*****
文章: 288



檢視個人資料 個人網站
« 回覆文章 #4 於: 七月 30, 2006, 02:23:27 上午 »

我在plog_config裡找到兩個重複的config_key
template_http_cache_enabled
thumbnail_generator_use_smoothing_algorithm

各刪除一個後,還是出現同樣的錯誤訊息
已記錄
hlps9999
LifeType 中文發展團隊
資深會員
*****
文章: 288



檢視個人資料 個人網站
« 回覆文章 #5 於: 七月 30, 2006, 01:38:42 下午 »

先說我是亂試的,
我將wizard.php裡部分程式註解掉,
引用
                        // On 4.0, the above query won't work, so let's try it in 4.0 syntax
                        // remove all duplicates in plog_config table
                    $query = "DELETE ".$this->_dbPrefix."config FROM ".$this->_dbPrefix."config a ".
                        "LEFT JOIN ".$this->_dbPrefix."config b ".
                        "ON a.config_key = b.config_key WHERE a.id > b.id ";
                    $result = $this->_db->Execute($query);
//                    if(!$result){
//                        $message .= "Error removing duplicates (tried 4.0 and 4.1 syntax) in config table: ".
//                            $this->_db->ErrorMsg()."<br/>";
//                        $errors = true;
//                    }

                }

後來就更新完成了,還不知道這樣會不會有什麼影響,目前初步看起來是正常的。
已記錄
eppies
新手見習
*
文章: 12


檢視個人資料
« 回覆文章 #6 於: 十月 11, 2006, 03:21:27 上午 »

我在升級1.1beta2 也遇到一樣的問題

** Modifications to the database schema carried out successfully **

The next step will update some of the data in your database. This process may take a while depending on the amount of data in your database, and the browser will periodically refresh to avoid timeout issues. Please do not attempt to interrupt this process.Error removing duplicates (tried 4.0 and 4.1 syntax) in config table: You have an error in your SQL syntax near 'plog_config FROM plog_config a LEFT JOIN plog_config b ON a.config_key = b.confi' at line 1

砍掉了重覆的template_http_cache_enabled後
還是一樣出現上述的問題
請問是哪還需要砍嗎
謝謝
已記錄
hlps9999
LifeType 中文發展團隊
資深會員
*****
文章: 288



檢視個人資料 個人網站
« 回覆文章 #7 於: 十月 11, 2006, 12:03:58 下午 »

我使用Lifetype1.1就沒這問題了。
已記錄
eppies
新手見習
*
文章: 12


檢視個人資料
« 回覆文章 #8 於: 十月 11, 2006, 05:02:25 下午 »

謝謝hlps9999
那我試看看    眨眼睛
已記錄
頁: [1]
LifeType 中文開發論壇  |  測試  |  LifeType 1.1 測試  |  升級 lifetype-1.1-beta1時錯誤 « 上篇主題 下篇主題 »
    前往: