歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 20, 2024, 06:57:22 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  我的blog 0.32升级到plog-devel-20050310 的过程 « 上篇主題 下篇主題 »
頁: [1] 2
作者 主題: 我的blog 0.32升级到plog-devel-20050310 的过程  (閱讀 29660 次)
tyyx
新手見習
*
文章: 14


檢視個人資料
« 於: 三月 10, 2005, 11:13:26 上午 »

系统 freebsd 5.2 PHP 4.3.10
1.上传plog-devel-20050310到站点覆盖原来文件,保留原来的\config\config.properties.php
2. 注意\tmp目录权限为 777,清空\tmp,浏览wizard.php.
 next -next-next...
3.blog正常显示...登陆admin.php 提示:
Fatal error: Cannot redeclare class admindefaultview in  .../class/view/admindefaultview.class.php on line 14
 驚訝
4.重装一个新的,却发现能正常登陆admin.php  驚訝
5.对比两个目录,发现\class目录改动比较多,删除\class再重新上传.
6.终于见到admin.php的正常页面.
总结升级过程:
1.删除原\class 目录,清空 \tmp目录.根目录的文件也可以删除(假如自己没有加文件)例如register.php就是多余的. \gallery和\templates\blog_*目录不要删除.
2.上传plog-devel-20050310 里面文件,覆盖原文件.注意保留\config\config.properties.php

3.浏览wizard.php.升级完成后删除wizard.php.
 \config\config.properties.php没有定义数据库等就是全新安装,有定义就变成update了.

 微笑 plog1.0变化真大,还需要一段时间适应...
已記錄
tyyx
新手見習
*
文章: 14


檢視個人資料
« 回覆文章 #1 於: 三月 10, 2005, 11:18:30 上午 »

Plog安装,使用中,注意下面几个目录的权限:
\config\config.properties.php  第一次安装时
\locale   #假如想添加删除语言包
\gallery #上传文件图片
\templates  #上传模板并解压
\tmp
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #2 於: 三月 10, 2005, 02:34:35 下午 »

謝謝!太棒的文章了!列入精華區。

Mark
已記錄

firer
新手見習
*
文章: 20


檢視個人資料
« 回覆文章 #3 於: 三月 11, 2005, 10:20:12 上午 »

感谢。
我升级不成功,出现的问题和文中的一模一样。按照本文升级一次成功。

再次感谢。
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #4 於: 三月 11, 2005, 01:14:19 下午 »

Hi firer:

看樣子,我不會的問題,有人會。呵呵!下次多來論壇問.... 嘻嘻。恭喜你解決了!

Mark
已記錄

ellenlee
新手見習
*
文章: 10


檢視個人資料
« 回覆文章 #5 於: 三月 12, 2005, 04:03:04 下午 »

我照著樓主的步驟
卻停在執行wizard.php來update裡的第二個步驟
就停在那兒不動了
一直說著它在轉換我1114篇文章的頭500篇,一共要有3次的轉換等等文字的那個步驟
然後停了好久
不動

升級失敗 嚎啕大哭

請問有人可以告訴我這是什麼問題嗎
我的plog是多用戶的,用戶大概有200多位,文章應該就是轉換過程它所說的1114篇
已記錄
Loaf
新手見習
*
文章: 23


檢視個人資料
« 回覆文章 #6 於: 三月 13, 2005, 04:18:33 上午 »

我的主機是用APPSERV2.3.0架在WINXP上的。
參考了老貓及TYYX的做法,先把舊目錄複製到一個新的PLOG1目錄,然後打算由那做1.0的昇級測試。這步驟是OK的,網址指向新目錄時可以看到網頁的內容。
再來是刪除PLOG1下所有資料,只保存CONFIG目錄,並COPY所有的1.0資料致新PLOG1下。這也簡單。
然後執行wizard.php,出現了

(前略successful部份)
"; return true; } function perform() { $updaters = Array( "updateArticleCategories", "updateArticleComments", "updateBlogs", "updateAlbums", "updateResources", "updateArticleText" ); // loop through each one of the methods to take care of updating one of the tables foreach( $updaters as $method ) { $result = $this->$method(); if( !$result ) { $this->_view = new WizardView( "update3" ); $this->_view->setErrorMessage( $this->message ); return false; } } // everything went fine so we can show the final page! $this->_view = new WizardView( "update4" ); $this->_view->setValue( "message", $this->message ); return true; } } // check if the "./tmp" folder is writable by us, otherwise // throw an error before the user gets countless errors // from Smarty if( !File::isWritable( TEMP_FOLDER ) || !File::isDir( TEMP_FOLDER )) { print("Error

This wizard needs the ".TEMP_FOLDER." folder to be writable by the web server user.

Please correct that and try again."); die(); } //// main part //// $controller = new Controller( $_actionMap, "nextStep" ); $controller->process( HttpVars::getRequest()); ?>

因為是WINSOWS的系統,所以沒有權限的問題,我也試了TMP、TEMP,甚至TEMP_FOLDER,都不行。
請高人指點一下。
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #7 於: 三月 13, 2005, 09:52:32 上午 »

引用自: ellenlee

請問有人可以告訴我這是什麼問題嗎
我的plog是多用戶的,用戶大概有200多位,文章應該就是轉換過程它所說的1114篇


Hi ellenlee:

你會介意把資料庫寄給我試試嗎?我們在作這個測試其實已經用過上萬筆資料的資料庫做過轉換測試,所以如果還有問題,我必需要用你的資料庫來查。

Mark
已記錄

markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #8 於: 三月 13, 2005, 09:55:03 上午 »

引用自: Loaf
我的主機是用APPSERV2.3.0架在WINXP上的。
參考了老貓及TYYX的做法,先把舊目錄複製到一個新的PLOG1目錄,然後打算由那做1.0的昇級測試。這步驟是OK的,網址指向新目錄時可以看到網頁的內容。
再來是刪除PLOG1下所有資料,只保存CONFIG目錄,並COPY所有的1.0資料致新PLOG1下。這也簡單。
然後執行wizard.php,出現了

(前略successful部份)
"; return true; } function perform() { $updaters = Array( "updateArticleCategories", "updateArticleComments", "updateBlogs", "updateAlbums", "updateResources", "updateArticleText" ); // loop through each one of the methods to take care of updating one of the tables foreach( $updaters as $method ) { $result = $this->$method(); if( !$result ) { $this->_view = new WizardView( "update3" ); $this->_view->setErrorMessage( $this->message ); return false; } } // everything went fine so we can show the final page! $this->_view = new WizardView( "update4" ); $this->_view->setValue( "message", $this->message ); return true; } } // check if the "./tmp" folder is writable by us, otherwise // throw an error before the user gets countless errors // from Smarty if( !File::isWritable( TEMP_FOLDER ) || !File::isDir( TEMP_FOLDER )) { print("Error

This wizard needs the ".TEMP_FOLDER." folder to be writable by the web server user.

Please correct that and try again."); die(); } //// main part //// $controller = new Controller( $_actionMap, "nextStep" ); $controller->process( HttpVars::getRequest()); ?>

因為是WINSOWS的系統,所以沒有權限的問題,我也試了TMP、TEMP,甚至TEMP_FOLDER,都不行。
請高人指點一下。


怪了!這不像是 Error Message,這像是 Wizard.php 的程式阿!你能在上傳一次試試看嗎?另外 Apache 的 Error.log 也是這個錯誤嗎?

Mark
已記錄

Loaf
新手見習
*
文章: 23


檢視個人資料
« 回覆文章 #9 於: 三月 13, 2005, 12:30:23 下午 »

我是直接在XP的主機上下載檔案,解開放上去的。
我已將上次實驗的部份全部砍掉,重新下載一次,結果還是一樣。
在跑Wizard.php後,仍會出現了一堆successful的訊息,最後一樣是我POST的那個問題。
在AppServ的Error.log上,出現的是
[Sun Mar 13 00:26:45 2005] [warn] NameVirtualHost xx.xx.xx.xx:80 has no VirtualHostsing!
不過奇怪的是,我在主機上的網站仍是正常的運作啊!
真不知問題在那?
已記錄
Blogit
新手見習
*
文章: 15


檢視個人資料
« 回覆文章 #10 於: 三月 13, 2005, 12:46:32 下午 »

我的升级步骤也是在这个地方停止了.

引用
Processing 500 posts per step, out of 9526.
Current step is 1 out of 20.

Please wait... This process may take a while. This page will reload itself until all the steps have been completed.


暂时还没找到原因.目瞪口呆
已記錄
Loaf
新手見習
*
文章: 23


檢視個人資料
« 回覆文章 #11 於: 三月 13, 2005, 12:56:21 下午 »

回報Mark,問題找到了,
是在Config這個資料夾上,我天真的以為內容是完全一樣的,
所以沒有COPY到其中的login.property.php到新的資料夾內。
真是太抱歉了,擔誤了大家的時間,希望可以勉強做為失敗案例。
已記錄
Loaf
新手見習
*
文章: 23


檢視個人資料
« 回覆文章 #12 於: 三月 14, 2005, 10:10:30 上午 »

昨天升級成功後,很高興的去睡了,不過感覺怪怪的,因為在管理頁面之下,頁面的呈現和MARK所介紹的不一樣,比較像是純文字版的,一列一列的由上而下列出各個選項。
今天打開網頁,一開始沒有問題,進入管理頁面之後,(仍和昨天一樣),先試定好喜歡的模版,打算看看PLUGIN的內容,(根本就還沒看到內容),然後就出現了以下的錯誤。

Exception message: main(c:\appserv\www\plog/class/logger/ploglogger.class.php): failed to open stream: No such file or directory
Error code: 2
-- Backtrace --
c:\appserv\www\plog\plugins\logger\pluginlogger.class.php(4): include_once
c:\appserv\www\plog\class\plugin\pluginmanager.class.php(157): include_once
c:\appserv\www\plog\index.php(38): pluginmanager.loadplugins

Exception message: main(): Failed opening 'c:\appserv\www\plog/class/logger/ploglogger.class.php' for inclusion (include_path='.;c:\php4\pear')
Error code: 2
-- Backtrace --
c:\appserv\www\plog\plugins\logger\pluginlogger.class.php(4): include_once
c:\appserv\www\plog\class\plugin\pluginmanager.class.php(157): include_once
c:\appserv\www\plog\index.php(38): pluginmanager.loadplugins

Fatal error: Undefined class name 'ploglogger' in c:\appserv\www\plog\plugins\logger\pluginlogger.class.php on line 35

我也嘗試重新RUN Wizard.php,不過ERROR 說所有的東西已有一份了。所以也行不通。
現在連舊的0.32版網頁也打不開了,會秀出:
錯誤
產生於 2005/03/13
Error    

找不到您所指定的文章。

就這樣囉!求救!!!
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #13 於: 三月 14, 2005, 12:44:30 下午 »

把 pluing 中 logger 這個plugin 拿掉。看樣子是他出錯了。這個應該是porting 過的,但還沒檢查。

Mark
已記錄

Loaf
新手見習
*
文章: 23


檢視個人資料
« 回覆文章 #14 於: 三月 16, 2005, 03:41:23 上午 »

把 logger plugin 拿掉之後, 就沒有問題了
謝謝你!!   開懷大笑
已記錄
頁: [1] 2
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  我的blog 0.32升级到plog-devel-20050310 的过程 « 上篇主題 下篇主題 »
    前往: