:::
ugm page 自訂頁面

升級php版本至7.1後,後台都無法進入

discuss pic 2020-05-22 23:03:00

升級php版本至7.1後,後台都無法進入…是什麼問題?

Error: [] operator not supported for strings

Error : Error: Call to a member function name() on null

 

A problem has occurred on our server!

Page is currently unavailable

We are working on a fix
Please come back soon ...

Error : Error: Call to a member function name() on null

 

用php5的版本到是正常無誤…

discuss pic 2020-05-23 22:06:38

發現問題應該出在…

Fatal error: Call to a member function name() on null in /home/xoops/html/modules/ugm_page/interface_menu.php on line 12

Fatal error: Call to a member function dirname() on null in /home/xoops/html/modules/ugm_page/interface_menu.php on line 13

/interface_menu.php的第12、13行…先註解掉就可以了…

$mod_name   = $xoopsModule->name();//模組中文名
$moduleName = $xoopsModule->dirname();//模組 

不知道會影響什麼?

:::

https%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_discuss%2Fdiscuss.php%3FDiscussID%3D7182%26BoardID%3D46%26g2p%3D1

計數器

今天: 903903903
昨天: 4799479947994799
總計: 5107861510786151078615107861510786151078615107861