AlanJia2017 Publish time 2017-12-23 13:35

discuz 3.4 Plug-in cannot be enabled

本帖最后由 AlanJia2017 于 2017-12-23 13:38 编辑

The latest version,Download from Discuz!ML repository.Mobile Forum、Wechat Login、QQ Connect,No enable and uninstall buttons.
The screenshot is as follows:

The mainly problem might in this file:admincp_plugins.php
Replacing it with the official Chinese version can work properly.

vot Publish time 2017-12-24 18:52

1) Editing of admincp_plugins.php is not a good idea.
2) The solution with clearcloud.php is ok because of it is an official solution.
3) And editing the 'system' attribute to 0 is ok too!

AlanJia2017 Publish time 2017-12-23 14:14

My way to solve this problem:
/*vot*/                                        ($plugin['modules']['system'] != 1 ? (!$plugin['available'] ? "<a href=\"".ADMINSCRIPT."?action=plugins&operation=enable&pluginid=$plugin&formhash=".FORMHASH.(!empty($_GET['system']) ? '&system=1' : '')."\" class=\"bold\">$lang</a>" : "<a href=\"".ADMINSCRIPT."?action=plugins&operation=disable&pluginid=$plugin&formhash=".FORMHASH.(!empty($_GET['system']) ? '&system=1' : '')."\">$lang</a>") : " ").
OR Cancel the redundant break system plug-in:
   (!$plugin['available'] ? "<a href=\"".ADMINSCRIPT."?action=plugins&operation=enable&pluginid=$plugin&formhash=".FORMHASH.(!empty($_GET['system']) ? '&system=1' : '')."\" class=\"bold\">$lang</a>" : "<a href=\"".ADMINSCRIPT."?action=plugins&operation=disable&pluginid=$plugin&formhash=".FORMHASH.(!empty($_GET['system']) ? '&system=1' : '')."\">$lang</a>").


AlanJia2017 Publish time 2017-12-24 13:07

This problem can be handled through the "clearcloud.php" under the utility folder, or modify the database by itself, pre_common_plugin.

vot Publish time 2017-12-24 19:08

@AlanJia2017, thank you!
Fixed in #789.
Pages: [1]
View full version: discuz 3.4 Plug-in cannot be enabled