圖文詳解wordpress用wechat-social-login插件實現QQ微信
下邊皮由WordPress教程欄目給大伙兒簡介wordpress用wechat-social-login插件兌現QQ微信釘釘Github無繩電話機號登陸了局,務期對要求之交游有所扶助!
Git本版控管家什:進來習修
wordpress本子:wordpress:4.9.8本子
php本子:v7.2.12
dockcer鏡像為:wordpress:4.9.8
圖籍驗證碼加載不出去
最近利用wordpress建站之時段,用到了wechat-social-login
插件促成微信、QQ、釘釘、Github
登陸功能時,開啟圖樣驗證碼功能后,瞧到圖紙貳維碼五直加載不出去,F12
瞧到勢態碼為200,但沒有歸來值,報錯This request has no response data available
拉開wordpress日記后,發現debug
日記文書中報偏下之張冠李戴。開啟debug日記不二法門請移步浪漫史成文如何開啟WordPress調試數字式 ,將日記打印到wp-content
引得下部之debug.log
中。
[08-Feb-2020 07:37:42 UTC] PHP Fatal error: Uncaught Error: Call to undefined function Gregwar\Captcha\imagettfbbox 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 : Gregwar\Captcha\CaptchaBuilder->writePhrase #1 /var/www/html/wp-content/plugins/wechat-social-login/includes/social/class-xh-social-ajax.php : Gregwar\Captcha\CaptchaBuilder->build #2 /var/www/html/wp-content/plugins/wechat-social-login/includes/social/class-xh-social-ajax.php : XH_Social_Ajax::{closure} #3 /var/www/html/wp-includes/class-wp-hook.php : XH_Social_Ajax::captcha #4 /var/www/html/wp-includes/class-wp-hook.php : WP_Hook->apply_filters #5 /var/www/html/wp-includes/plugin.php : WP_Hook->do_action #6 /var/www/html/wp-admin/admin-ajax.php : do_action #7 {main} thrown in /var/www/html/wp-content/plugins/wechat-social-login/includes/captcha/CaptchaBuilder.php on line 327
網站查詢骨材說:圖片驗證碼功能需求設置gd庫
和freetype
等依賴,通過phpinfo 查瞅到周詳信息背:gd擴展沒有freetype
:
查瞧phpinfo 之抓撓
在網站之源目錄下部組建七個php-info.php
之文牘,本末為:
<?php phpinfo ;
封存后,用域名拜會,如https://action.liabio.cn/php-info.php
,即可瞅到。
docker編譯鏡像
Dockerfile文書如底下:
FROM wordpress:4.9.8 RUN 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' > /etc/apt/sources.list RUN apt update \ && apt install -y libwebp-dev libjpeg-dev libpng-dev libfreetype6-dev \ && docker-php-source extract \ && cd /usr/src/php/ext/gd \ && 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 \ && docker-php-ext-install gd \ && php -m | grep gd
執行以次編譯號令:
docker build -t wordpress-freetype:4.9.8 .
分曉編譯報錯。
docker編譯鏡像報錯
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
坐蓋我行使之是19.03.5本子之docker,在網上查了材料,大致意味是要求18本子之docker編譯才不會報錯。
果然,18本子之docker編譯沒有報錯:
應用集成了freetype之新鏡像
下祭新鏡像后,何嘗不可瞧到freetype得計集成。
足以瞧到貳維碼已經功成名就之顯示出去了。
之上就是專文詳解wordpress用wechat-social-login插件促成QQ微信釘釘Github大哥大號登陸之詳見情節,更多請關注 小螞蚍蜉站長吧網其她相關篇章!