Home > Article > CMS Tutorial > What to do if DreamWeaver CMS module management is blank
Sometimes the module management is blank. The reason is the failure to obtain the module of DreamWeaver Remote.
Solution:
Modify \dede\module_main.php and comment out lines 91 and 95:
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(); }
This way, if When the remote Dreamweaver module information fails to be obtained, only the local module list will be displayed so that it will not be blank.
Recommended study: 梦Weavercms
The above is the detailed content of What to do if DreamWeaver CMS module management is blank. For more information, please follow other related articles on the PHP Chinese website!