Hi @wangyuancoco112 !
Configuration failure happens in the following condition:
- The AppID is absent OR
- The app secret is absent OR
- The WeChat Responder is active AND the encode messages option is checked AND the aes key is absent OR
- The WeChat Responder is active AND the token is absent OR
- The E-commerce option is checked AND the merchant ID is absent OR the merchant key is absent
1. Since your topic title is “can not login after plugin WP Weixin”, I am assuming that you mean you cannot access the WordPress admin panel.
2. Because the configuration failure only happens in case the “Enable” checkbox is ticked, I assume you installed the plugin, checked the “Enable” box, saved the settings and then somehow logged out before the settings were valid.
3. I imagine you are using a front end login form (via plugin or theme) that bypasses the the wp-login.php form, because the message “WP Weixin is not configured properly. If the problem persists, please contact an administrator.” does not get displayed on the admin dashboard.
To fix this in your case, if I understood the issue properly (in 1, 2 and 3 above):
- Rename the
wp-content/plugins/wp-weixin
directory to something different, like wp-content/plugins/wp-weixin-bk
– this will deactivate the plugin automatically.
- Login the WordPress backend like you normally would
- Rename
wp-content/plugins/wp-weixin-bk
to wp-content/plugins/wp-weixin
- Reactivate WP Weixin
- Make sure the configuration is complete before logging out to make sure to avoid the failure condition (Minimal required configuration to enable WP Weixin: “WeChat App ID”, “WeChat App Secret”.)
Cheers!