{"id":7426,"date":"2021-05-16T21:14:27","date_gmt":"2021-05-16T13:14:27","guid":{"rendered":"https:\/\/www.choubb.com\/?p=7426"},"modified":"2021-05-27T11:47:22","modified_gmt":"2021-05-27T03:47:22","slug":"%e7%bd%91%e7%ab%99%e5%8e%bb%e8%b0%b7%e6%ad%8c%e5%8c%96%e7%ac%ac%e4%b8%80%e6%ad%a5","status":"publish","type":"post","link":"https:\/\/www.choubb.com\/?p=7426","title":{"rendered":"\u7f51\u7ad9\u53bb\u8c37\u6b4c\u5316\u7b2c\u4e00\u6b65"},"content":{"rendered":"\n<p>\u4eca\u5929\u505a\u4e86\u53bb\u8c37\u6b4c\u7b2c\u4e00\u6b65\uff0c\u505c\u7528\u4e86User Registration\u63d2\u4ef6\uff0c\u65b0\u88c5\u4e86\u817e\u8baf\u4e91\u9a8c\u8bc1\u7801\uff08CAPTCHA\uff09\u63d2\u4ef6\u3002\u817e\u8baf\u63d2\u4ef6\u5b89\u88c5\u7b80\u5355\uff0c5\u5206\u949f\u8fde\u817e\u8bafAPI\u7533\u8bf7\u548c\u63d2\u4ef6\u5b89\u88c5\u8bbe\u7f6e\u4e00\u5e76\u641e\u5b9a\u3002\u60f3\u4e24\u5e74\u524d\u5b89\u88c5User Register, \u8bbe\u7f6eGoogle API\u548cCAPTCHA\uff0c \u90a3\u53ef\u662f\u597d\u597d\u6298\u817e\u4e86\u4e00\u5927\u58f6\uff0c\u5934\u4e00\u6b21\u6ca1\u641e\u5b9a\u3002\u9694\u4e86\u4e00\u4e24\u4e2a\u793c\u62dc\u56de\u8fc7\u5473\u6765\uff0c\u624d\u8bbe\u7f6e\u6210\u529f\u3002\u88c5User registrationde\u7684\u76ee\u7684\u5e76\u4e0d\u662f\u6709\u7ba1\u7406\u7528\u6237\u7684\u9700\u6c42\uff0c\u4ec5\u4ec5\u4e3a\u4e86\u5176\u81ea\u5e26\u7684reCAPTCHA\u529f\u80fd\u3002<\/p>\n\n\n\n<p>\u4eca\u5929\u56e0\u4e3a\u53d1\u73b0Post SMTP\u4e0d\u5de5\u4f5c\u4e86\uff0c\u8fd9\u4e2a\u4e5f\u662f\u8c37\u6b4c\u7684API\u4e4bAuth 2.0\u548cSMTP\u670d\u52a1\u4e4b\u4e0a\u7684wordpress\u63d2\u4ef6\uff0c\u660f\u5934\u660f\u8111\u641e\u4e86\u534a\u5929\uff0c\u4e00\u6012\u4e4b\u4e0b\u51b3\u5b9a\u5168\u9762\u53bb\u8c37\u6b4c\u5316\u3002\u5426\u5219\u56de\u56fd\u540e\u8fdbwordpress\u8fd8\u6709\u4e0d\u5c11\u9ebb\u70e6\u3002<\/p>\n\n\n\n<p>\u53cd\u590d\u8bd5\u9a8c\uff0c163\u548cQQ\u7684SMTP\u670d\u52a1\u90fd\u6ca1\u8bd5\u6210\u529f\uff0c\u6362\u4e86SMTP Mailer\u63d2\u4ef6\u4e5f\u4e0d\u884c\uff0c\u53ef\u80fd\u8981\u7b49\u56de\u56fd\u7533\u8bf7app\u9a8c\u8bc1\u624d\u53ef\u4ee5\u3002\u4e0d\u8fc7\u6298\u817e\u8fc7\u7a0b\u4e2d\u628a\u8c37\u6b4creCAPTCHA\u7ed9\u987a\u5229\u6362\u6389\u4e86\uff0c\u5927\u5feb\u4eba\u5fc3\u3002\u7b97\u662f\u8d70\u4e00\u6b65\u770b\u4e00\u6b65\u5427\u3002\u6700\u540ePost SMTP\u7684\u95ee\u9898\u4e5f\u89e3\u51b3\u4e86\uff1a\u5728\u8c37\u6b4cAPI\u91cc\u91cd\u65b0\u6388\u6743\u7ed9Post SMTP\u5c31OK\u4e86\u3002\u4f46\u662f\u4e4b\u524d\u597d\u597d\u7684\uff0c\u4e3a\u5565\u5c31\u9700\u8981\u91cd\u65b0\u6388\u6743\u5462\uff1f\u4e5f\u8bb8\u6c38\u8fdc\u662f\u4e2a\u8c1c\u4e86\u3002<\/p>\n\n\n\n<p>\u8bf8\u4f4d\u9ad8\u4eba\u5fd7\u58eb\uff0c\u8bf7\u95ee\u56fd\u5185\u7684SMTP\u670d\u52a1\u548cSMTP\u63d2\u4ef6\u53ef\u6709\u63a8\u8350\u7684\uff1f\u67d0\u4eba\u4e0d\u80dc\u611f\u8c22\uff01<\/p>\n\n\n\n<p>5.27\u540e\u8bb0\uff0c \u6b63\u597d\u5341\u5929\uff0c\u56e0mac\u81ea\u52a8\u66f4\u65b0\u91cd\u542f\uff0c\u5fc5\u987b\u91cd\u65b0\u767b\u5f55wp\u7684dashboard\uff0c\u5475\u5475\u60b2\u5267\u4e86\uff0c\u4e0d\u5de5\u4f5c\u4e86\u3002\u8fd8\u597dWP\u6709\u5e94\u6025\u673a\u5236\uff0c\u81ea\u52a8\u53d1\u4e86\u4e00\u5c01\u7535\u90ae\u7ed9\u7ba1\u7406\u5458\u90ae\u7bb1\uff0c\u80fd\u5e94\u6025\u767b\u5f55\uff0c\u4e5f\u80fd\u770b\u5230\u6545\u969c\u4ee3\u7801\u3002\u5927\u6982\u5982\u4e0b\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>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.<\/p><p>In this case, WordPress caught an error with one of your plugins, tencentcloud-captcha.<\/p><p>First, visit your website (<a rel=\"noreferrer noopener\" href=\"https:\/\/www.choubb.com\/\" target=\"_blank\">https:\/\/www.choubb.com\/<\/a>) and check for any visible issues. Next, visit the page where the error was caught (<a rel=\"noreferrer noopener\" href=\"https:\/\/www.choubb.com\/wp-login.php\" target=\"_blank\">https:\/\/www.choubb.com\/wp-login.php<\/a>) and check for any visible issues.<\/p><p>Please contact your host for assistance with investigating this issue further.<\/p><p>If your site appears broken and you can&#8217;t access your dashboard normally, WordPress now has a special &#8220;recovery mode&#8221;. This lets you safely login to your dashboard and investigate further.<\/p><p><a href=\"https:\/\/www.choubb.com\/wp-login.php?action=enter_recovery_mode&amp;rm_token=xxxxxxxxxx_key=xxxxxxxxxxx\">https:\/\/www.choubb.com\/wp-login.php?action=enter_recovery_mode&amp;rm_token=xxxxxxxxxx_key=xxxxxxxxxxx<\/a><\/p><p>To keep your site safe, this link will expire in 1 day. Don&#8217;t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.<\/p><p>When seeking help with this issue, you may be asked for some of the following information:<br \/>WordPress version 5.7.2<br \/>Current theme: i-max (version 1.5.9)<br \/>Current plugin: tencentcloud-captcha (version 1.0.0)<br \/>PHP version 7.4.18<\/p><p>Error Details<br \/>=============<br \/>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<br \/>Stack trace:<br \/>#0 \/var\/www\/wordpress\/wp-content\/plugins\/tencentcloud-captcha\/TencentCloudCaptchaActions.php(349): TencentCloudCaptchaActions::verifyCodeReal()<br \/>#1 \/var\/www\/wordpress\/wp-includes\/class-wp-hook.php(292): TencentCloudCaptchaActions->tencent_wordpress_capthca_loginCodeVerify()<br \/>#2 \/var\/www\/wordpress\/wp-includes\/plugin.php(212): WP_Hook->apply_filters()<br \/>#3 \/var\/www\/wordpress\/wp-includes\/pluggable.php(582): apply_filters()<br \/>#4 \/var\/www\/wordpress\/wp-includes\/user.php(95): wp_authenticate()<br \/>#5 \/var\/www\/wordpress\/wp-login.php(1128): wp_signon()<br \/>#6 {main}<br \/>\u00a0 thrown<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u505a\u4e86\u53bb\u8c37\u6b4c\u7b2c\u4e00\u6b65\uff0c\u505c\u7528\u4e86User Registration\u63d2\u4ef6\uff0c\u65b0\u88c5\u4e86\u817e\u8baf\u4e91\u9a8c\u8bc1\u7801\uff08CAPTCHA\uff09\u63d2\u4ef6\u3002\u817e\u8baf\u63d2\u4ef6\u5b89\u88c5\u7b80\u5355\uff0c5\u5206\u949f\u8fde\u817e\u8bafAPI\u7533\u8bf7\u548c\u63d2\u4ef6\u5b89\u88c5\u8bbe\u7f6e\u4e00\u5e76\u641e\u5b9a\u3002\u60f3\u4e24\u5e74\u524d\u5b89\u88c5User Register, \u8bbe\u7f6eGoogle API\u548cCAPTCHA\uff0c \u90a3\u53ef\u662f\u597d\u597d\u6298\u817e\u4e86\u4e00\u5927\u58f6\uff0c\u5934\u4e00\u6b21\u6ca1\u641e\u5b9a\u3002\u9694\u4e86\u4e00\u4e24\u4e2a\u793c\u62dc\u56de\u8fc7\u5473\u6765\uff0c\u624d\u8bbe\u7f6e\u6210\u529f\u3002\u88c5User registrationde\u7684\u76ee\u7684\u5e76\u4e0d\u662f\u6709\u7ba1\u7406\u7528\u6237\u7684\u9700\u6c42\uff0c\u4ec5\u4ec5\u4e3a\u4e86\u5176\u81ea\u5e26\u7684reCAPTCHA\u529f\u80fd\u3002 \u4eca\u5929\u56e0\u4e3a\u53d1\u73b0Post SMTP\u4e0d\u5de5\u4f5c\u4e86\uff0c\u8fd9\u4e2a\u4e5f\u662f\u8c37\u6b4c\u7684API\u4e4bAuth 2.0\u548cSMTP\u670d\u52a1\u4e4b\u4e0a\u7684wordpress\u63d2\u4ef6\uff0c\u660f\u5934\u660f\u8111\u641e\u4e86\u534a\u5929\uff0c\u4e00\u6012\u4e4b\u4e0b\u51b3\u5b9a\u5168\u9762\u53bb\u8c37\u6b4c\u5316\u3002\u5426\u5219\u56de\u56fd\u540e\u8fdbwordpress\u8fd8\u6709\u4e0d\u5c11\u9ebb\u70e6\u3002 \u53cd\u590d\u8bd5\u9a8c\uff0c163\u548cQQ\u7684SMTP\u670d\u52a1\u90fd\u6ca1\u8bd5\u6210\u529f\uff0c\u6362\u4e86SMTP Mailer\u63d2\u4ef6\u4e5f\u4e0d\u884c\uff0c\u53ef\u80fd\u8981\u7b49\u56de\u56fd\u7533\u8bf7app\u9a8c\u8bc1\u624d\u53ef\u4ee5\u3002\u4e0d\u8fc7\u6298\u817e\u8fc7\u7a0b\u4e2d\u628a\u8c37\u6b4creCAPTCHA\u7ed9\u987a\u5229\u6362\u6389\u4e86\uff0c\u5927\u5feb\u4eba\u5fc3\u3002\u7b97\u662f\u8d70\u4e00\u6b65\u770b\u4e00\u6b65\u5427\u3002\u6700\u540ePost SMTP\u7684\u95ee\u9898\u4e5f\u89e3\u51b3\u4e86\uff1a\u5728\u8c37\u6b4cAPI\u91cc\u91cd\u65b0\u6388\u6743\u7ed9Post SMTP\u5c31OK\u4e86\u3002\u4f46\u662f\u4e4b\u524d\u597d\u597d\u7684\uff0c\u4e3a\u5565\u5c31\u9700\u8981\u91cd\u65b0\u6388\u6743\u5462\uff1f\u4e5f\u8bb8\u6c38\u8fdc\u662f\u4e2a\u8c1c\u4e86\u3002 \u8bf8\u4f4d\u9ad8\u4eba\u5fd7\u58eb\uff0c\u8bf7\u95ee\u56fd\u5185\u7684SMTP\u670d\u52a1\u548cSMTP\u63d2\u4ef6\u53ef\u6709\u63a8\u8350\u7684\uff1f\u67d0\u4eba\u4e0d\u80dc\u611f\u8c22\uff01 5.27\u540e\u8bb0\uff0c \u6b63\u597d\u5341\u5929\uff0c\u56e0mac\u81ea\u52a8\u66f4\u65b0\u91cd\u542f\uff0c\u5fc5\u987b\u91cd\u65b0\u767b\u5f55wp\u7684dashboard\uff0c\u5475\u5475\u60b2\u5267\u4e86\uff0c\u4e0d\u5de5\u4f5c\u4e86\u3002\u8fd8\u597dWP\u6709\u5e94\u6025\u673a\u5236\uff0c\u81ea\u52a8\u53d1\u4e86\u4e00\u5c01\u7535\u90ae\u7ed9\u7ba1\u7406\u5458\u90ae\u7bb1\uff0c\u80fd\u5e94\u6025\u767b\u5f55\uff0c\u4e5f\u80fd\u770b\u5230\u6545\u969c\u4ee3\u7801\u3002\u5927\u6982\u5982\u4e0b\uff1a Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme<a class=\"moretag\" href=\"https:\/\/www.choubb.com\/?p=7426\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2287,201,212],"tags":[251,290,115,4114,4115],"class_list":["post-7426","post","type-post","status-publish","format-standard","hentry","category-2287","category-201","category-212","tag-api","tag-290","tag-google","tag-recaptcha","tag-smtp"],"_links":{"self":[{"href":"https:\/\/www.choubb.com\/index.php?rest_route=\/wp\/v2\/posts\/7426","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.choubb.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.choubb.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.choubb.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.choubb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7426"}],"version-history":[{"count":3,"href":"https:\/\/www.choubb.com\/index.php?rest_route=\/wp\/v2\/posts\/7426\/revisions"}],"predecessor-version":[{"id":7454,"href":"https:\/\/www.choubb.com\/index.php?rest_route=\/wp\/v2\/posts\/7426\/revisions\/7454"}],"wp:attachment":[{"href":"https:\/\/www.choubb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.choubb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.choubb.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}