| 上一篇主題 :: 下一篇主題 |
| 發表人 |
內容 |
endoh0717 初級會員

註冊時間: 2007-11-23 文章: 3
|
1 發表於: 星期五 十一月 23, 2007 1:39 pm 文章主題: [問題]請問關於Gallery2.0的plog外掛套件問題 |
 |
|
讓Gallery2.0相簿用plog外掛套件整合在一起後
因版本問題,故上網得知應改
C:\AppServ\www\lifetype11\plugins\gallery\plugingallery.class.php
的第28行左右加上
include_once( PLOG_CLASS_PATH."class/template/menu/menu.class.php" );
該行程式碼
整合過後,卻在個人網誌選單設定更新中出現了錯誤
錯誤訊息如下:
Fatal error: Call to a member function on a non-object in c:\appserv\www\lifetype11\class\dao\blogs.class.php on line 106
想請問各位高手前輩,小弟的問題是出在哪裡呢?
應該如何改善此錯誤訊息? |
|
|
| 回頂端 |
|
 |
|
|
Fily John 管 理 者


註冊時間: 2002-04-17 文章: 13684 來自: 宜蘭-羅東
|
2 發表於: 星期五 十一月 23, 2007 2:18 pm 文章主題: |
 |
|
|
|
| 回頂端 |
|
 |
endoh0717 初級會員

註冊時間: 2007-11-23 文章: 3
|
3 發表於: 星期五 十一月 23, 2007 2:30 pm 文章主題: |
 |
|
不好意思,請問前輩member function 是指什麼呢?
下面貼的是blogs.class.php 103~123行的程式
首行103 底行123
| 代碼: | function updateBlog( &$blog )
{
// load the previous version of this blog
$prevVersion = $this->getBlogInfo( $blog->getId());
// check that the mangled_blog field is unique
$mangledBlog = $blog->getMangledBlogName();
$i = 1;
// check if there already is a blog with the same mangled name
$done = false;
while(( $tmpBlog = $this->getBlogInfoByName( $mangledBlog )) && !$done)
{
if( $tmpBlog->getId() != $blog->getId()) {
$i++;
$mangledBlog = substr($mangledBlog, 0,
($i > 2) ? strlen($mangledBlog)-strlen($i-1) : strlen($mangledBlog)).$i;
}
else {
$done = true;
}
} |
|
|
|
| 回頂端 |
|
 |
Fily John 管 理 者


註冊時間: 2002-04-17 文章: 13684 來自: 宜蘭-羅東
|
4 發表於: 星期五 十一月 23, 2007 2:38 pm 文章主題: |
 |
|
注意看這行內容寫的
| 代碼: | | Fatal error: Call to a member function on a non-object in c:\appserv\www\lifetype11\class\dao\blogs.class.php on line 106 |
肯定有一個function 叫 member ...
對了這裡沒有前輩跟大大喔 ... 

|
|
|
| 回頂端 |
|
 |
tpcat DS - 中級顧問


註冊時間: 2003-03-11 文章: 7315 來自: 貓窩
|
5 發表於: 星期五 十一月 23, 2007 4:11 pm 文章主題: |
 |
|
哈哈,小健喔,這下子你可糗了,這是你最近這幾天,第三次「看太快」。
member function可不是member()
今晚你要全請才行了。
http://www.china-askpro.com/msg28/qa57.shtml
我如果沒有猜錯的話,應該是1樓照章抄了指令。
卻沒有去檢查 include_once 後面那一串東東的位置,是不是確實有那個檔案,以及假設它也又INCLUDE檔案(*該裝的檔案忘了裝*)。
或者,檔案版本沒有弄對,造成後面
106 $prevVersion = $this->getBlogInfo( $blog->getId());
往前CALL的參數不對吧。
menu.class.php按照檔案名稱猜,應該是作新選單的。 

賣身為奴去... http://www.linuxer.com.tw |
|
|
| 回頂端 |
|
 |
Fily John 管 理 者


註冊時間: 2002-04-17 文章: 13684 來自: 宜蘭-羅東
|
6 發表於: 星期五 十一月 23, 2007 5:50 pm 文章主題: |
 |
|
| tpcat 寫到: | 哈哈,小健喔,這下子你可糗了,這是你最近這幾天,第三次「看太快」。
member function可不是member()
今晚你要全請才行了。
http://www.china-askpro.com/msg28/qa57.shtml
我如果沒有猜錯的話,應該是1樓照章抄了指令。
卻沒有去檢查 include_once 後面那一串東東的位置,是不是確實有那個檔案,以及假設它也又INCLUDE檔案(*該裝的檔案忘了裝*)。
或者,檔案版本沒有弄對,造成後面
106 $prevVersion = $this->getBlogInfo( $blog->getId());
往前CALL的參數不對吧。
menu.class.php按照檔案名稱猜,應該是作新選單的。  |
哈哈哈 ... 手頭上一堆事情在排隊處理著 ^^"
難怪當時感覺怎麼怪怪的,php錯誤訊息應該在function後方會在明確指出 xxxxx()
都稍微瞄一下就回應,該放慢步調慢慢看了
我實際安裝測試 ... 目前遇到會影響的是認證方面的plugin,有詢問使用者是否有裝別的plugin ... 答案是否定的,怪事 ...
加上 ... http://www.lifetype.org.tw/
首頁寫著最新最穩定版本是1.1.2 ... 結果進到下載頁面卻是只給下載穩定版本(1.0.6) ... 開發測試為1.1 @@ 我該相信哪個
假設1.1為dev version , 那官方建議安裝相本plugin為1.2,結果使用者安裝了2.0 ... 唔,兩邊皆為不穩定因素,難以查起阿 

|
|
|
| 回頂端 |
|
 |
Fily John 管 理 者


註冊時間: 2002-04-17 文章: 13684 來自: 宜蘭-羅東
|
7 發表於: 星期五 十一月 23, 2007 6:19 pm 文章主題: |
 |
|
|
|
| 回頂端 |
|
 |
|