[08-Feb-2020 07:37:42 UTC] PHP Fatal error: ?Uncaught Error: Call to undefined function GregwarCaptchaimagettfbbox() in /var/ /html/wp-content/plugins/wechat-social-login/includes/captcha/CaptchaBuilder.php:327
Stack trace:
#0 /var/ /html/wp-content/plugins/wechat-social-login/includes/captcha/CaptchaBuilder.php(440): GregwarCaptchaCaptchaBuilder->writePhrase(Resource id #7, '84sx', '/var/ /html/w...', 150, 40)
#1 /var/ /html/wp-content/plugins/wechat-social-login/includes/social/class-xh-social-ajax.php(203): GregwarCaptchaCaptchaBuilder->build()
#2 /var/ /html/wp-content/plugins/wechat-social-login/includes/social/class-xh-social-ajax.php(209): XH_Social_Ajax::{closure}()
#3 /var/ /html/wp-includes/class-wp-hook.php(286): XH_Social_Ajax::captcha('')
#4 /var/ /html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#5 /var/ /html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#6 /var/ /html/wp-admin/admin-ajax.php(99): do_action('wp_ajax_xh_soci...')
#7 {main}
thrown in /var/ /html/wp-content/plugins/wechat-social-login/includes/captcha/CaptchaBuilder.php on line 327
網(wǎng)站查詢資料說:圖形驗證碼功能需要安裝gd庫和freetype等依賴,通過phpinfo()查看到詳細信息里:gd擴展沒有freetype:
保存后,用域名訪問,如https://action.liabio.cn/php-info.php,即可看到。
FROM wordpress:4.9.8
RUN echo 'deb http://mirrors.163.com/debian/ stretch main contrib non-freendeb http://mirrors.163.com/debian/ stretch-updates main contrib non-freendeb 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
執(zhí)行以下編譯命令:
docker build -t wordpress-freetype:4.9.8 .
結(jié)果編譯報錯。
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,在網(wǎng)上查了資料,大致意思是需要18版本的docker編譯才不會報錯。版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: wordpress用wechat-social-login插件實現(xiàn)QQ微信釘釘Github手機登陸