今天做了去谷歌第一步,停用了User Registration插件,新装了腾讯云验证码(CAPTCHA)插件。腾讯插件安装简单,5分钟连腾讯API申请和插件安装设置一并搞定。想两年前安装User Register, 设置Google API和CAPTCHA, 那可是好好折腾了一大壶,头一次没搞定。隔了一两个礼拜回过味来,才设置成功。装User registrationde的目的并不是有管理用户的需求,仅仅为了其自带的reCAPTCHA功能。

今天因为发现Post SMTP不工作了,这个也是谷歌的API之Auth 2.0和SMTP服务之上的wordpress插件,昏头昏脑搞了半天,一怒之下决定全面去谷歌化。否则回国后进wordpress还有不少麻烦。

反复试验,163和QQ的SMTP服务都没试成功,换了SMTP Mailer插件也不行,可能要等回国申请app验证才可以。不过折腾过程中把谷歌reCAPTCHA给顺利换掉了,大快人心。算是走一步看一步吧。最后Post SMTP的问题也解决了:在谷歌API里重新授权给Post SMTP就OK了。但是之前好好的,为啥就需要重新授权呢?也许永远是个谜了。

诸位高人志士,请问国内的SMTP服务和SMTP插件可有推荐的?某人不胜感谢!

5.27后记, 正好十天,因mac自动更新重启,必须重新登录wp的dashboard,呵呵悲剧了,不工作了。还好WP有应急机制,自动发了一封电邮给管理员邮箱,能应急登录,也能看到故障代码。大概如下:

Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

In this case, WordPress caught an error with one of your plugins, tencentcloud-captcha.

First, visit your website (https://www.choubb.com/) and check for any visible issues. Next, visit the page where the error was caught (https://www.choubb.com/wp-login.php) and check for any visible issues.

Please contact your host for assistance with investigating this issue further.

If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

https://www.choubb.com/wp-login.php?action=enter_recovery_mode&rm_token=xxxxxxxxxx_key=xxxxxxxxxxx

To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.7.2
Current theme: i-max (version 1.5.9)
Current plugin: tencentcloud-captcha (version 1.0.0)
PHP version 7.4.18

Error Details
=============
An error of type E_ERROR was caused in line 532 of the file /var/www/wordpress/wp-content/plugins/tencentcloud-captcha/TencentCloudCaptchaActions.php. Error message: Uncaught Error: Call to undefined method TencentCloud\Common\Exception\TencentCloudSDKException::getErrorCode() in /var/www/wordpress/wp-content/plugins/tencentcloud-captcha/TencentCloudCaptchaActions.php:532
Stack trace:
#0 /var/www/wordpress/wp-content/plugins/tencentcloud-captcha/TencentCloudCaptchaActions.php(349): TencentCloudCaptchaActions::verifyCodeReal()
#1 /var/www/wordpress/wp-includes/class-wp-hook.php(292): TencentCloudCaptchaActions->tencent_wordpress_capthca_loginCodeVerify()
#2 /var/www/wordpress/wp-includes/plugin.php(212): WP_Hook->apply_filters()
#3 /var/www/wordpress/wp-includes/pluggable.php(582): apply_filters()
#4 /var/www/wordpress/wp-includes/user.php(95): wp_authenticate()
#5 /var/www/wordpress/wp-login.php(1128): wp_signon()
#6 {main}
  thrown

CC BY-NC-SA 4.0 This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.