52ky 发表于 2021-12-18 17:04:34

最新版Discuz! X3.4 R20210320 插件无法启动解决方法。

最新版Discuz! X3.4 R20210320 插件无法启动解决方法。

在最新版的Discuz中对插件做很多验证,如果不是官方购买的插件,不单止会提示“对不起,您安装的不是正版应用,安装程序无法继续执行”,即使安装成功,也无法启用。

下面我们将解决办法告诉大家:
找到/source/admincp/admincp_plugins.php文件,搜索$available变量,定位到278行,将如下内容注释,保存即可。
// if(dfsockopen(cloudaddons_url('&from=s').'&mod=app&ac=vali'.'dator&ver=2&addonid='.$addonid.($array !== false ? '&rid='.$array['RevisionID'].'&sn='.$array['SN'].'&rd='.$array['RevisionDateline'] : ''), 0, '', '', false, CLOUDADDONS_DOWNLOAD_IP, 15) === '0') {
//         $available = 0;
// }


(The latest version of Discuz! X3.4 R20210320 plug-in fails to start the solution.

In the latest version of Discuz, a lot of verifications are done on plug-ins. If it is not an officially purchased plug-in, it will not only prompt "Sorry, you have not installed a genuine application, and the installer cannot continue". Even if the installation is successful, it cannot be enabled.

Below we will tell you the solution:
Find the /source/admincp/admincp_plugins.php file, search for the $available variable, locate line 278, comment the following content, and save it.
// if(dfsockopen(cloudaddons_url('&from=s').'&mod=app&ac=vali'.'dator&ver=2&addonid='.$addonid.($array !== false?'&rid='.$array[' RevisionID'].'&sn='.$array['SN'].'&rd='.$array['RevisionDateline']:''), 0,'','', false, CLOUDADDONS_DOWNLOAD_IP, 15) == = '0') {
// $available = 0;
//}
)

页: [1]
查看完整版本: 最新版Discuz! X3.4 R20210320 插件无法启动解决方法。