{"id":31971,"date":"2024-11-25T08:11:46","date_gmt":"2024-11-25T00:11:46","guid":{"rendered":"https:\/\/fwq.ai\/blog\/31971\/"},"modified":"2024-11-25T08:11:46","modified_gmt":"2024-11-25T00:11:46","slug":"%e5%9b%be%e6%96%87%e8%af%a6%e8%a7%a3wordpress%e7%94%a8wechat-social-login%e6%8f%92%e4%bb%b6%e5%ae%9e%e7%8e%b0qq%e5%be%ae%e4%bf%a1%e9%92%89%e9%92%89github%e6%89%8b%e6%9c%ba%e5%8f%b7%e7%99%bb%e9%99%86","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/31971\/","title":{"rendered":"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646"},"content":{"rendered":"<p>\u4e0b\u9762\u7531\u6559\u7a0b\u680f\u76ee\u7ed9\u5927\u5bb6\u4ecb\u7ecdwordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0qq\u5fae\u4fe1\u9489\u9489github\u624b\u673a\u53f7\u767b\u9646\u65b9\u6cd5\uff0c\u5e0c\u671b\u5bf9\u9700\u8981\u7684\u670b\u53cb\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/605b09c898294328.jpg\" class=\"aligncenter\" title=\"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u63d2\u56fe\" alt=\"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u63d2\u56fe\" \/><\/p>\n<p> wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646 <\/p>\n<blockquote><p>\n  wordpress\u7248\u672c\uff1awordpress:4.9.8\u7248\u672cphp\u7248\u672c\uff1av7.2.12dockcer\u955c\u50cf\u4e3a\uff1awordpress:4.9.8\n<\/p><\/blockquote>\n<h2>\u56fe\u5f62\u9a8c\u8bc1\u7801\u52a0\u8f7d\u4e0d\u51fa\u6765<\/h2>\n<p>\u6700\u8fd1\u5229\u7528wordpress\u5efa\u7ad9\u7684\u65f6\u5019\uff0c\u7528\u5230\u4e86wechat-social-login\u63d2\u4ef6\u5b9e\u73b0\u5fae\u4fe1\u3001QQ\u3001\u9489\u9489\u3001Github\u767b\u9646\u529f\u80fd\u65f6\uff0c\u5f00\u542f\u56fe\u5f62\u9a8c\u8bc1\u7801\u529f\u80fd\u540e\uff0c\u770b\u5230\u56fe\u5f62\u4e8c\u7ef4\u7801\u4e00\u76f4\u52a0\u8f7d\u4e0d\u51fa\u6765\uff0cF12\u770b\u5230\u72b6\u6001\u7801\u4e3a200\uff0c\u4f46\u6ca1\u6709\u8fd4\u56de\u503c\uff0c\u62a5\u9519This request has no response data available<\/p>\n<p><span><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/c8cfd56003540f44fcdfa9caa483564e-1.png\" title=\"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u63d2\u56fe1\" alt=\"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u63d2\u56fe1\" \/><\/span><\/p>\n<p><span><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/74bd74ae7da3c6e0937914f88351b809-2.png\" title=\"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u63d2\u56fe2\" alt=\"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u63d2\u56fe2\" \/><\/span><br \/>\u6253\u5f00wordpress\u65e5\u5fd7\u540e\uff0c\u53d1\u73b0debug\u65e5\u5fd7\u6587\u4ef6\u4e2d\u62a5\u4ee5\u4e0b\u7684\u9519\u8bef\u3002\u5f00\u542fdebug\u65e5\u5fd7\u65b9\u6cd5\u8bf7\u79fb\u6b65\u5386\u53f2\u6587\u7ae0\u5982\u4f55\u5f00\u542fWordPress\u8c03\u8bd5\u6a21\u5f0f(\u62a5\u9519\u63d0\u793a)\uff0c\u5c06\u65e5\u5fd7\u6253\u5370\u5230wp-content\u76ee\u5f55\u4e0b\u7684debug.log\u4e2d\u3002<br \/><span><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/f05c16ad9cf0400277226944e3b35144-3.png\" title=\"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u63d2\u56fe3\" alt=\"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u63d2\u56fe3\" \/><\/span><\/p>\n<pre>[08-Feb-2020 07:37:42 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function GregwarCaptchaimagettfbbox() in \/var\/www\/html\/wp-content\/plugins\/wechat-social-login\/includes\/captcha\/CaptchaBuilder.php:327\nStack trace:\n#0 \/var\/www\/html\/wp-content\/plugins\/wechat-social-login\/includes\/captcha\/CaptchaBuilder.php(440): GregwarCaptchaCaptchaBuilder-&gt;writePhrase(Resource id #7, '84sx', '\/var\/www\/html\/w...', 150, 40)\n#1 \/var\/www\/html\/wp-content\/plugins\/wechat-social-login\/includes\/social\/class-xh-social-ajax.php(203): GregwarCaptchaCaptchaBuilder-&gt;build()\n#2 \/var\/www\/html\/wp-content\/plugins\/wechat-social-login\/includes\/social\/class-xh-social-ajax.php(209): XH_Social_Ajax::{closure}()\n#3 \/var\/www\/html\/wp-includes\/class-wp-hook.php(286): XH_Social_Ajax::captcha('')\n#4 \/var\/www\/html\/wp-includes\/class-wp-hook.php(310): WP_Hook-&gt;apply_filters('', Array)\n#5 \/var\/www\/html\/wp-includes\/plugin.php(453): WP_Hook-&gt;do_action(Array)\n#6 \/var\/www\/html\/wp-admin\/admin-ajax.php(99): do_action('wp_ajax_xh_soci...')\n#7 {main}\n  thrown in \/var\/www\/html\/wp-content\/plugins\/wechat-social-login\/includes\/captcha\/CaptchaBuilder.php on line 327<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u7f51\u7ad9\u67e5\u8be2\u8d44\u6599\u8bf4\uff1a\u56fe\u5f62\u9a8c\u8bc1\u7801\u529f\u80fd\u9700\u8981\u5b89\u88c5gd\u5e93\u548cfreetype\u7b49\u4f9d\u8d56\uff0c\u901a\u8fc7phpinfo()\u67e5\u770b\u5230\u8be6\u7ec6\u4fe1\u606f\u91cc\uff1agd\u6269\u5c55\u6ca1\u6709freetype\uff1a<br \/><span><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/f05c16ad9cf0400277226944e3b35144-4.png\" title=\"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u63d2\u56fe4\" alt=\"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u63d2\u56fe4\" \/><\/span><\/p>\n<h2>\u67e5\u770bphpinfo()\u7684\u65b9\u6cd5<\/h2>\n<p>\u5728\u7f51\u7ad9\u7684\u6839\u76ee\u5f55\u4e0b\u65b0\u5efa\u4e00\u4e2aphp-info.php\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u4e3a\uff1a<\/p>\n<pre>&lt;?php\n\nphpinfo();<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4fdd\u5b58\u540e\uff0c\u7528\u57df\u540d\u8bbf\u95ee\uff0c\u5982https:\/\/action.liabio.cn\/php-info.php\uff0c\u5373\u53ef\u770b\u5230\u3002<\/p>\n<h2>docker\u7f16\u8bd1\u955c\u50cf<\/h2>\n<p>Dockerfile\u6587\u4ef6\u5982\u4e0b\uff1a<\/p>\n<pre>FROM wordpress:4.9.8\nRUN echo 'deb http:\/\/mirrors.163.com\/debian\/ stretch main contrib non-free\ndeb http:\/\/mirrors.163.com\/debian\/ stretch-updates main contrib non-free\ndeb http:\/\/mirrors.163.com\/debian\/ stretch-backports main contrib non-free' &gt; \/etc\/apt\/sources.list\nRUN apt update \n&amp;&amp; apt install -y libwebp-dev libjpeg-dev libpng-dev libfreetype6-dev \n&amp;&amp; docker-php-source extract \n&amp;&amp; cd \/usr\/src\/php\/ext\/gd \n&amp;&amp; docker-php-ext-configure gd --with-webp-dir=\/usr\/include\/webp --with-jpeg-dir=\/usr\/include --with-png-dir=\/usr\/include --with-freetype-dir=\/usr\/include\/freetype2 \n&amp;&amp; docker-php-ext-install gd \n&amp;&amp; php -m | grep gd<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6267\u884c\u4ee5\u4e0b\u7f16\u8bd1\u547d\u4ee4\uff1a<\/p>\n<pre>docker build -t wordpress-freetype:4.9.8 .<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u7ed3\u679c\u7f16\u8bd1\u62a5\u9519\u3002<\/p>\n<h2>docker\u7f16\u8bd1\u955c\u50cf\u62a5\u9519<\/h2>\n<pre>OCI runtime create failed: container_linux.go:346: starting container process caused \"process_linux.go:319: getting the final child's pid from pipe caused \"EOF\"\": unknown<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u56e0\u4e3a\u6211\u4f7f\u7528\u7684\u662f19.03.5\u7248\u672c\u7684docker\uff0c\u5728\u7f51\u4e0a\u67e5\u4e86\u8d44\u6599\uff0c\u5927\u81f4\u610f\u601d\u662f\u9700\u898118\u7248\u672c\u7684docker\u7f16\u8bd1\u624d\u4e0d\u4f1a\u62a5\u9519\u3002<\/p>\n<p>\u679c\u7136\uff0c18\u7248\u672c\u7684docker\u7f16\u8bd1\u6ca1\u6709\u62a5\u9519\uff1a<br \/><span><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/26958f11316d7ca9ec7cd95edcfdd04a-5.png\" title=\"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u63d2\u56fe5\" alt=\"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u63d2\u56fe5\" \/><\/span><\/p>\n<h2>\u4f7f\u7528\u96c6\u6210\u4e86freetype\u7684\u65b0\u955c\u50cf<\/h2>\n<p>\u4f7f\u7528\u65b0\u955c\u50cf\u540e\uff0c\u53ef\u4ee5\u770b\u5230freetype\u6210\u529f\u96c6\u6210\u3002<br \/><span><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/d516f5ed893f5b4f674b663e78674ec6-6.png\" title=\"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u63d2\u56fe6\" alt=\"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u63d2\u56fe6\" \/><\/span><br \/>\u53ef\u4ee5\u770b\u5230\u4e8c\u7ef4\u7801\u5df2\u7ecf\u6210\u529f\u7684\u663e\u793a\u51fa\u6765\u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/image\/575\/753\/480\/1616578969585409.png\" class=\"aligncenter\" title=\"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u63d2\u56fe7\" alt=\"\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u63d2\u56fe7\" \/><\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u56fe\u6587\u8be6\u89e3wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u9762\u7531\u6559\u7a0b\u680f\u76ee\u7ed9\u5927\u5bb6\u4ecb\u7ecdwordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0qq\u5fae\u4fe1\u9489\u9489github\u624b\u673a\u53f7\u767b\u9646\u65b9\u6cd5\uff0c\u5e0c\u671b\u5bf9\u9700\u8981\u7684\u670b\u53cb\u6709\u6240\u5e2e\u52a9\uff01 wordpress\u7528wechat-social-login\u63d2\u4ef6\u5b9e\u73b0QQ\u5fae\u4fe1\u9489\u9489Github\u624b\u673a\u53f7\u767b\u9646 wordpress\u7248\u672c\uff1awordpress:4.9.8\u7248\u672cphp\u7248\u672c\uff1av7.2.12dockcer\u955c\u50cf\u4e3a\uff1awordpress:4.9.8 \u56fe\u5f62\u9a8c\u8bc1\u7801\u52a0\u8f7d\u4e0d\u51fa\u6765 \u6700\u8fd1\u5229\u7528wordpress\u5efa\u7ad9\u7684\u65f6\u5019\uff0c\u7528\u5230\u4e86wechat-social-login\u63d2\u4ef6\u5b9e\u73b0\u5fae\u4fe1\u3001QQ\u3001\u9489\u9489\u3001Github\u767b\u9646\u529f\u80fd\u65f6\uff0c\u5f00\u542f\u56fe\u5f62\u9a8c\u8bc1\u7801\u529f\u80fd\u540e\uff0c\u770b\u5230\u56fe\u5f62\u4e8c\u7ef4\u7801\u4e00\u76f4\u52a0\u8f7d\u4e0d\u51fa\u6765\uff0cF12\u770b\u5230\u72b6\u6001\u7801\u4e3a200\uff0c\u4f46\u6ca1\u6709\u8fd4\u56de\u503c\uff0c\u62a5\u9519This request has no response data available \u6253\u5f00wordpress\u65e5\u5fd7\u540e\uff0c\u53d1\u73b0debug\u65e5\u5fd7\u6587\u4ef6\u4e2d\u62a5\u4ee5\u4e0b\u7684\u9519\u8bef\u3002\u5f00\u542fdebug\u65e5\u5fd7\u65b9\u6cd5\u8bf7\u79fb\u6b65\u5386\u53f2\u6587\u7ae0\u5982\u4f55\u5f00\u542fWordPress\u8c03\u8bd5\u6a21\u5f0f(\u62a5\u9519\u63d0\u793a)\uff0c\u5c06\u65e5\u5fd7\u6253\u5370\u5230wp-content\u76ee\u5f55\u4e0b\u7684debug.log\u4e2d\u3002 [08-Feb-2020 07:37:42 UTC] PHP Fatal error: Uncaught Error: Call to undefined function GregwarCaptchaimagettfbbox() in \/var\/www\/html\/wp-content\/plugins\/wechat-social-login\/includes\/captcha\/CaptchaBuilder.php:327 Stack trace: #0 \/var\/www\/html\/wp-content\/plugins\/wechat-social-login\/includes\/captcha\/CaptchaBuilder.php(440): GregwarCaptchaCaptchaBuilder-&gt;writePhrase(Resource id #7, &#8217;84sx&#8217;, &#8216;\/var\/www\/html\/w&#8230;&#8217;, 150, 40) #1 \/var\/www\/html\/wp-content\/plugins\/wechat-social-login\/includes\/social\/class-xh-social-ajax.php(203): GregwarCaptchaCaptchaBuilder-&gt;build() #2 \/var\/www\/html\/wp-content\/plugins\/wechat-social-login\/includes\/social\/class-xh-social-ajax.php(209): XH_Social_Ajax::{closure}() #3 \/var\/www\/html\/wp-includes\/class-wp-hook.php(286): XH_Social_Ajax::captcha(&#8221;) #4 \/var\/www\/html\/wp-includes\/class-wp-hook.php(310): WP_Hook-&gt;apply_filters(&#8221;, Array) #5 \/var\/www\/html\/wp-includes\/plugin.php(453): WP_Hook-&gt;do_action(Array) #6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-31971","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=31971"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31971\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=31971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=31971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=31971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}