[討論] 安裝、升級和使用 Board3 Portal (論壇入口) 2.0.x 之相關問題

phpBB 3 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群譯文組

版面規則
請注意!您的提問必須遵守發問格式,違者砍文。
主題已鎖定
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8510
註冊時間: 2004-04-30 01:54
來自: Taiwan

[討論] 安裝、升級和使用 Board3 Portal (論壇入口) 2.0.x 之相關問題

文章 心靈捕手 »

主機作業系統:Windows 7
您的上網方式:FTTB
您安裝的程式:Apache 2.2.22 + php 5.4.3 + MySql 5.5.24
您的 phpBB 版本:phpBB 3.0.10
您的 phpBB 連結網址: http://wang5555.dnsfor.me/phpBB3/
安裝外掛:Board3 Portal (論壇入口) (Update 2.0.0)

問題與解決:
  1. 執行資料庫更新時,出現錯誤訊息如下:

    代碼: 選擇全部

    一般性錯誤
    SQL ERROR [ mysql4 ]
    
    Duplicate entry 'board3_portal_version' for key 'PRIMARY' [1062]
    
    SQL
    
    INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('board3_portal_version', '1.0.6', 0)
    
    BACKTRACE
    
    FILE: [ROOT]/includes/db/mysql.php
    LINE: 175
    CALL: dbal->sql_error()
    
    FILE: [ROOT]/includes/functions.php
    LINE: 157
    CALL: dbal_mysql->sql_query()
    
    FILE: [ROOT]/install/index.php
    LINE: 51
    CALL: set_config()
    解決:
    利用 phpMyAdmin 進論壇資料庫,找到 phpbb_config 資料表,搜尋 config_name = board3_portal_version 的欄位,找到後,刪除之。
  2. 入口上方出現錯誤訊息如下:

    代碼: 選擇全部

    [phpBB Debug] PHP Notice: in file [ROOT]/portal/modules/portal_recent.php on line 68: Undefined index: board3_exclude_forums_11
    p.s.
    這個問題只有在您的論壇啟用「DEBUG」,才會發生。
    解決:
    --開啟--
    portal/modules/portal_recent.php

    --找到--

    代碼: 選擇全部

    $sql_where = ' AND ' . $db->sql_in_set('forum_id', array_map('intval', $exclude_forums), ($config['board3_exclude_forums_' . $module_id]) ? true : false);
    --取代成--

    代碼: 選擇全部

    $sql_where = ' AND ' . $db->sql_in_set('forum_id', array_map('intval', $exclude_forums), ($config['board3_recent_exclude_forums_' . $module_id]) ? true : false);
    --儲存與關閉--
  3. 論壇入口上方出現類似的錯誤訊息(以及亂碼):

    代碼: 選擇全部

    [phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 679: Undefined variable: global_announce_list
    [phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 696: Undefined variable: global_announce_list
    [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4803: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
    [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4805: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
    [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4806: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
    [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4807: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
    解決:
    --開啟--
    portal/includes/functions.php

    --找到--

    代碼: 選擇全部

       $last_read = $topic_ids = $forum_ids = $tracking_info = $rev_forum_ids = array();
    --取代成--

    代碼: 選擇全部

       $last_read = $topic_ids = $forum_ids = $tracking_info = $rev_forum_ids = $global_announce_list = array();
    --儲存與關閉--
p.s.
升級後使用心得:
  • 優點:
    1. 資料存取速度加快許多,(行事曆)功能更齊全。 :-D
    2. 模組(區塊)的新增或移除,更加便利。 :-D
  • 缺點:
    1. 程式有 bug(如上),尚待官方修正。
    2. 我舊版辛苦建立的 16 個「連結」,全數不見啦! :((
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8510
註冊時間: 2004-04-30 01:54
來自: Taiwan

Re: [討論] 安裝、升級和使用 Board3 Portal (論壇入口) 2.0.x 之相關問題

文章 心靈捕手 »

如果您的論壇入口上方出現類似的錯誤訊息,那麼請參考修正方法。

代碼: 選擇全部

[phpBB Debug] PHP Notice: in file [ROOT]/portal/modules/portal_recent.php on line 68: Undefined index: board3_exclude_forums_11
轉貼官方修正的方法:
--開啟--
portal/modules/portal_recent.php

--找到--

代碼: 選擇全部

$sql_where = ' AND ' . $db->sql_in_set('forum_id', array_map('intval', $exclude_forums), ($config['board3_exclude_forums_' . $module_id]) ? true : false);
--取代成--

代碼: 選擇全部

$sql_where = ' AND ' . $db->sql_in_set('forum_id', array_map('intval', $exclude_forums), ($config['board3_recent_exclude_forums_' . $module_id]) ? true : false);
--儲存與關閉--

修正後,您將可以在後台的「最近的」模組中,設定排除的版面。

--
參考連結:
http://www.board3.de/viewtopic.php?f=49&t=5490
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8510
註冊時間: 2004-04-30 01:54
來自: Taiwan

分享上傳「相簿」模組的方法

文章 心靈捕手 »

前言:
如果您的論壇已安裝下列兩個外掛,那麼您可以輕鬆在入口增加「相簿」模組。
  1. Board3 Portal (論壇入口) (Update 2.0.0)
  2. phpBB Gallery (相簿) (Update 1.1.6)
方法:
  1. 到官方網站下載(外掛)檔案(b3p_gallery_block_2_1_1.zip)。
    http://www.flying-bits.org/viewtopic.php?f=98&t=3378
  2. 進 ACP -> 外掛 -> 入口 -> 上傳模組:
    按「選擇檔案」,找到(b3p_gallery_block_2_1_1.zip)後,按「上傳」。
    2012-05-16_081121.jpg
  3. 上傳成功後,按「返回」。
    2012-05-16_081217.jpg
  4. 在「入口模組」的中間欄底下,按「增加模組」。
    2012-05-16_081259.jpg
  5. 找到「Gallery」後,按「送出」。
    2012-05-16_081333.jpg
  6. 看到「該模組已成功上傳」的訊息時,按「回到前一頁」。
    2012-05-16_081355.jpg
    2012-05-16_081355.jpg (8.65 KiB) 已瀏覽 28693 次
  7. 做好該模組的相關設定後(如下),按「送出」。
    • 更改「模組名稱」為「相簿」。
      p.s.
      如果您的論壇有使用多國語言,那麼您必須修改語言變數;
      中文化分享
    • 依需求,設定「模組權限、模式」。
    • 依需求,設定「列、欄、評語等」的數量。
    2012-05-16_081646.jpg
後記:
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
yehrussell
竹貓忠實會員
竹貓忠實會員
文章: 548
註冊時間: 2006-01-03 07:48

Re: [討論] 安裝、升級和使用 Board3 Portal (論壇入口) 2.0.x 之相關問題

文章 yehrussell »

請教老師:
我的入口出現底下錯誤

代碼: 選擇全部

hpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 679: Undefined variable: global_announce_list
[phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 696: Undefined variable: global_announce_list
[phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 679: Undefined variable: global_announce_list
[phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 696: Undefined variable: global_announce_list
[phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 696: Undefined variable: global_announce_list
[phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 696: Undefined variable: global_announce_list
[phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 696: Undefined variable: global_announce_list
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4698: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3824)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4700: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3824)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4701: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3824)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4702: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3824)
用IE8、Firefox 12觀看入口,不會用亂碼
用Google、Safari 5.1.7瀏覽器觀看,有亂碼!

我用普通會員帳號進入,無法進入-->入口
PS:我到老師網站,登入帳號也是無法看到-->入口,不登入帳號可以看到
##### 以下為 '基本的發問格式' #####
●主機作業系統:租用主機
●快速架站程式: (請務必註明版本,如果安裝在自己電腦上才填寫)
●您的上網方式:
●您安裝的程式:Apache + php + MySql 或其他
PHP 版本: 8.1.24 + MySQL(i) 5.7.44
●您的 phpBB 版本: phpBB 3.3.11
●您的 domain (網域名稱) :herb-tw.com
●您的 phpBB 連結網址: https://herb-tw.com/phpBB/
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8510
註冊時間: 2004-04-30 01:54
來自: Taiwan

Re: [討論] 安裝、升級和使用 Board3 Portal (論壇入口) 2.0.x 之相關問題

文章 心靈捕手 »

yehrussell 寫:請教老師:
我的入口出現底下錯誤

代碼: 選擇全部

hpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 679: Undefined variable: global_announce_list
[phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 696: Undefined variable: global_announce_list
[phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 679: Undefined variable: global_announce_list
[phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 696: Undefined variable: global_announce_list
[phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 696: Undefined variable: global_announce_list
[phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 696: Undefined variable: global_announce_list
[phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 696: Undefined variable: global_announce_list
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4698: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3824)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4700: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3824)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4701: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3824)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4702: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3824)
用IE8、Firefox 12觀看入口,不會用亂碼
用Google、Safari 5.1.7瀏覽器觀看,有亂碼!

我用普通會員帳號進入,無法進入-->入口
PS:我到老師網站,登入帳號也是無法看到-->入口,不登入帳號可以看到
錯誤訊息,可以暫時由後台關閉「全域公告」模組,獲得解決。

至於,「普通會員登入後,看不到入口」的問題。
我的測試結果:一切正常。
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
yehrussell
竹貓忠實會員
竹貓忠實會員
文章: 548
註冊時間: 2006-01-03 07:48

Re: [討論] 安裝、升級和使用 Board3 Portal (論壇入口) 2.0.x 之相關問題

文章 yehrussell »

心靈捕手 寫:錯誤訊息,可以暫時由後台關閉「全域公告」模組,獲得解決。

至於,「普通會員登入後,看不到入口」的問題。
我的測試結果:一切正常。
我前已經有先關閉「全域公告」模組,但是未解決,所以我又打開,才來此發文
我去老師的討論區,「普通會員登入後,看不到入口」的問題
登入yehrussell帳號,就是看不到入口
另外用輸入 http://wang5555.dnsfor.me/phpBB3/portal.php網址
會自動轉成 http://wang5555.dnsfor.me/phpBB3/index.php
##### 以下為 '基本的發問格式' #####
●主機作業系統:租用主機
●快速架站程式: (請務必註明版本,如果安裝在自己電腦上才填寫)
●您的上網方式:
●您安裝的程式:Apache + php + MySql 或其他
PHP 版本: 8.1.24 + MySQL(i) 5.7.44
●您的 phpBB 版本: phpBB 3.3.11
●您的 domain (網域名稱) :herb-tw.com
●您的 phpBB 連結網址: https://herb-tw.com/phpBB/
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8510
註冊時間: 2004-04-30 01:54
來自: Taiwan

Re: [討論] 安裝、升級和使用 Board3 Portal (論壇入口) 2.0.x 之相關問題

文章 心靈捕手 »

yehrussell 寫:
心靈捕手 寫:錯誤訊息,可以暫時由後台關閉「全域公告」模組,獲得解決。

至於,「普通會員登入後,看不到入口」的問題。
我的測試結果:一切正常。
我前已經有先關閉「全域公告」模組,但是未解決,所以我又打開,才來此發文
我去老師的討論區,「普通會員登入後,看不到入口」的問題
登入yehrussell帳號,就是看不到入口
另外用輸入 http://wang5555.dnsfor.me/phpBB3/portal.php網址
會自動轉成 http://wang5555.dnsfor.me/phpBB3/index.php
可能是我忽略掉審視更新後的權限設定。

建議您,進 ACP -> 權限 -> 會員角色:
檢視「標準功能、新註冊會員、所有的功能」這三個角色之「雜項」->「可以檢視入口」的設定是否為「是」?


我的論壇有做了一些調整,請抽空再試試。

--
另外,關於錯誤訊息與亂碼問題,請參考下文修正。
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8510
註冊時間: 2004-04-30 01:54
來自: Taiwan

Re: [討論] 安裝、升級和使用 Board3 Portal (論壇入口) 2.0.x 之相關問題

文章 心靈捕手 »

如果您的論壇入口上方出現類似的錯誤訊息(以及亂碼),那麼請參考修正方法。

代碼: 選擇全部

[phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 679: Undefined variable: global_announce_list
[phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 696: Undefined variable: global_announce_list
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4803: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4805: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4806: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4807: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
修正的方法:
--開啟--
portal/includes/functions.php

--找到--

代碼: 選擇全部

   $last_read = $topic_ids = $forum_ids = $tracking_info = $rev_forum_ids = array();
--取代成--

代碼: 選擇全部

   $last_read = $topic_ids = $forum_ids = $tracking_info = $rev_forum_ids = $global_announce_list = array();
--儲存與關閉--

修正後,您將可以在後台,啟用「全域公告」以及「最新消息」模組。

--
參考連結:
http://www.board3.de/viewtopic.php?f=49&t=5505
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
yehrussell
竹貓忠實會員
竹貓忠實會員
文章: 548
註冊時間: 2006-01-03 07:48

Re: [討論] 安裝、升級和使用 Board3 Portal (論壇入口) 2.0.x 之相關問題

文章 yehrussell »

心靈捕手 寫:如果您的論壇入口上方出現類似的錯誤訊息(以及亂碼),那麼請參考修正方法。
........
修正的方法:
--開啟--
portal/includes/functions.php
.
.
http://www.board3.de/viewtopic.php?f=49&t=5505
按照老師的修正方式後...
用IE8、Firefox 12觀看入口,不會用亂碼
用Google、Safari 5.1.7瀏覽器觀看,有亂碼!
這問題得到解決 (:Y) (:Y)
非常感謝老師 :D 還特地跑到原作者發文
真是太感動! 我這個問題得到解決 (:Y)
老師不只是phpBB3討論區達人 :D ,簡直是教授級呢 (:Y) ;)
我去老師的討論區,「普通會員登入後,看不到入口」的問題
登入yehrussell帳號,就是看不到入口
另外用輸入 http://wang5555.dnsfor.me/phpBB3/portal.php網址
會自動轉成 http://wang5555.dnsfor.me/phpBB3/index.php
此問題依然如故 我有清空暫存器
共用4個瀏覽器測試 IE8、Firefox 12、Google、Safari 5.1.7
嗯 我的討論區,有關【入口】普通會員登入部份,還是依舊
我剛測試自己討論區,只有管理員與全域版主可看到【入口】
##### 以下為 '基本的發問格式' #####
●主機作業系統:租用主機
●快速架站程式: (請務必註明版本,如果安裝在自己電腦上才填寫)
●您的上網方式:
●您安裝的程式:Apache + php + MySql 或其他
PHP 版本: 8.1.24 + MySQL(i) 5.7.44
●您的 phpBB 版本: phpBB 3.3.11
●您的 domain (網域名稱) :herb-tw.com
●您的 phpBB 連結網址: https://herb-tw.com/phpBB/
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8510
註冊時間: 2004-04-30 01:54
來自: Taiwan

Re: [討論] 安裝、升級和使用 Board3 Portal (論壇入口) 2.0.x 之相關問題

文章 心靈捕手 »

yehrussell 寫:
我去老師的討論區,「普通會員登入後,看不到入口」的問題
登入yehrussell帳號,就是看不到入口
另外用輸入 http://wang5555.dnsfor.me/phpBB3/portal.php網址
會自動轉成 http://wang5555.dnsfor.me/phpBB3/index.php
此問題依然如故 我有清空暫存器
共用4個瀏覽器測試 IE8、Firefox 12、Google、Safari 5.1.7
嗯 我的討論區,有關【入口】普通會員登入部份,還是依舊
我剛測試自己討論區,只有管理員與全域版主可看到【入口】
這個問題應該是解決了,請您抽空再到我的論壇測試。

解決方法:
除了前面提到的檢視三種「會員角色」的設定之外,請再檢視底下的權限設定:
ACP -> 權限 -> 群組的權限 -> 點選「註冊會員」,按「送出」;
再點選「進階的權限」,瀏覽「雜項」-> 「可以檢視入口」的設定是否為「是」?
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
yehrussell
竹貓忠實會員
竹貓忠實會員
文章: 548
註冊時間: 2006-01-03 07:48

Re: [討論] 安裝、升級和使用 Board3 Portal (論壇入口) 2.0.x 之相關問題

文章 yehrussell »

心靈捕手 寫: 這個問題應該是解決了,請您抽空再到我的論壇測試。
去老師的論壇測試,已經 OK!
心靈捕手 寫: 解決方法:
除了前面提到的檢視三種「會員角色」的設定之外,請再檢視底下的權限設定:
ACP -> 權限 -> 群組的權限 -> 點選「註冊會員」,按「送出」;
再點選「進階的權限」,瀏覽「雜項」-> 「可以檢視入口」的設定是否為「是」?
這方法設定後,就全部正常囉!
內心真的由衷感謝老師不厭其煩幫忙 (:Y) (:l) :D
##### 以下為 '基本的發問格式' #####
●主機作業系統:租用主機
●快速架站程式: (請務必註明版本,如果安裝在自己電腦上才填寫)
●您的上網方式:
●您安裝的程式:Apache + php + MySql 或其他
PHP 版本: 8.1.24 + MySQL(i) 5.7.44
●您的 phpBB 版本: phpBB 3.3.11
●您的 domain (網域名稱) :herb-tw.com
●您的 phpBB 連結網址: https://herb-tw.com/phpBB/
主題已鎖定

回到「[3.0.x] 外掛問題討論」