iT邦幫忙

0

MRBS建立會議室/設備之後,回到首頁會顯示抓不到布林值

  • 分享至 

  • xImage

各位資深前輩好,有關於MRBS的問題想請教

目前碰到的狀況是建立會議室/設備之後,回到首頁會顯示抓不到布林值
使用的MRBS版本是1.11.4,XMAPP架好了,PHP環境用VS,在沒有新增會議室跟設備的時候,首頁都正常可以顯示
https://ithelp.ithome.com.tw/upload/images/20240425/20166772MwrE1GxsmC.jpg

但只要把會議室開啟,就會出現抓不到布林值的錯誤,請問各位前輩這樣是我在填寫的時候有填錯資料?還是我應該去修正一下code?

Uncaught exception 'TypeError' in C:\xampp\htdocs\mrbs\lib\IntlDateFormatter.php at line 561
array_shift(): Argument #1 ($array) must be of type array, bool given
#0 C:\xampp\htdocs\mrbs\lib\IntlDateFormatter.php(561): array_shift(false)
#1 C:\xampp\htdocs\mrbs\lib\IntlDateFormatter.php(495): IntlDateFormatter::parseStrftimeFormat('\xA4U\xA4\xC8:%M')
#2 C:\xampp\htdocs\mrbs\lib\IntlDateFormatter.php(441): IntlDateFormatter::doStrftimePlus('\xA4U\xA4\xC8:%M', 946699200, 'zh-TW')
#3 C:\xampp\htdocs\mrbs\lib\IntlDateFormatter.php(186): IntlDateFormatter->strftimePlus('%P:%M', 946699200)
#4 C:\xampp\htdocs\mrbs\language.inc(795): IntlDateFormatter->format(946699200)
#5 C:\xampp\htdocs\mrbs\functions.inc(1872): MRBS\datetime_format(Array, 946699200)
#6 C:\xampp\htdocs\mrbs\functions_table.inc(269): MRBS\hour_min(43200)
#7 C:\xampp\htdocs\mrbs\functions_table.inc(488): MRBS\get_timeslot_text(43200, 60)
#8 C:\xampp\htdocs\mrbs\functions_table.inc(617): MRBS\get_times_header_cells(43200, 43260, 60)
#9 C:\xampp\htdocs\mrbs\index.php(448): MRBS\day_table_innerhtml('day', 2024, 4, 25, 1, 3, NULL, NULL)
#10 {main}

MRBS GET: Array
(
)
MRBS POST: Array
(
)
MRBS SESSION: Array
(
[csrf_token] => 837f384ff420957a791ef5fa8bd2daa3ab3e2032d14b5e2f3515ec64e8f45b35
[user] => MRBS\User Object
(
[username] => test01
[display_name] => test
[email] => test@gmail.com
[level] => 2
[data:protected] => Array
(
[id] => 4
[password_hash] => $2y$10$XfPZDEGvulgS2GUU7qrYneY0pTh8vNrjCBsMUfidshJruxBo2D90K
[timestamp] => 2024-04-25 09:12:21
[last_login] => 1714007578
[reset_key_hash] =>
[reset_key_expiry] => 0
)

    )

)

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

0
lyly
iT邦見習生 ‧ 2024-04-26 11:05:28

您好,根据您描述的情况,可能是您在建立会议室/设备后出现了布尔值抓取的问题。您正在使用的是MRBS版本1.11.4,搭建在XMAPP上,PHP环境是在VS中。在没有新增会议室和设备时,首页正常显示。建议您检查新建的会议室/设备是否正确配置,并确保相关布尔值的设置正确。您还可以查看MRBS的日志以获取更多信息。Pokerogue

0
海綿寶寶
iT邦大神 1 級 ‧ 2024-04-28 09:29:52

但只要把會議室開啟,就會出現抓不到布林值的錯誤,請問各位前輩這樣是我在填寫的時候有填錯資料?

php 的錯誤訊息「抓不到布林值」有相當高的機率原因是「data not found」
在你的案例,就是「沒有會議室資料」
確認的方法很簡單
就是建一筆會議室資料再看看會不會發生相同錯誤

還是我應該去修正一下code?

如果你知道要如何修正就去修正
Good luck

我有再建一筆一樣會錯誤哈哈,我現在先嘗試從code看看,謝謝

我要發表回答

立即登入回答