织梦CMS模块管理空白怎么办

来源:undefined 2025-01-03 13:15:26 1063

有时候会出现模块管理空白的情况,原因为获取织梦远程的模块失败导致的。

解决办法:

修改dedemodule_main.php,注释掉第91和95行:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

if($action==)

{

$types = array(soft=>模块,templets=>模板,plus=>小插件,patch=>补丁);

$dm = new DedeModule($mdir);

if(empty($moduletype)) $moduletype = ;

//$modules_remote = $dm->GetModuleUrlList($moduletype,$mdurl);

$modules = array();

$modules = $dm->GetModuleList($moduletype);

is_array($modules) || $modules = array();

//$modules = array_merge($modules,$modules_remote);

require_once(dirname(__FILE__)."/templets/module_main.htm");

$dm->Clear();

exit();

}

登录后复制

这样,如果远程的织梦模块信息获取失败时,则只显示本地的模块列表,这样就不会空白了。

推荐学习:织梦cms

以上就是织梦CMS模块管理空白怎么办的详细内容,更多请关注php中文网其它相关文章!

最新文章