下面由wordpress教程栏目给大家介绍wordpress怎么实现qq微信钉钉github手机号登陆,希望对需要的朋友有所帮助!
wordpress版本:wordpress:4.9.8版本php版本:v7.2.12dockcer镜像为:wordpress:4.9.8
图形验证码加载不出来
最近利用wordpress建站的时候,用到了wechat-social-login插件实现微信、QQ、钉钉、Github登陆功能时,开启图形验证码功能后,看到图形二维码一直加载不出来,F12看到状态码为200,但没有返回值,报错Thisrequesthasnoresponsedataavailable
打开wordpress日志后,发现debug日志文件中报以下的错误。开启debug日志方法请移步历史文章如何开启WordPress调试模式(报错提示),将日志打印到wp-content目录下的debug.log中。
[08-Feb-202007:37:42UTC]PHPFatalerror:UncaughtError:CalltoundefinedfunctionGregwar\Captcha\imagettfbbox()in/var/www/html/wp-content/plugins/wechat-social-login/includes/captcha/CaptchaBuilder.php:327Stacktrace:#0/var/www/html/wp-content/plugins/wechat-social-login/includes/captcha/CaptchaBuilder.php(440):Gregwar\Captcha\CaptchaBuilder->writePhrase(Resourceid#7,'84sx','/var/www/html/w...',150,40)#1/var/www/html/wp-content/plugins/wechat-social-login/includes/social/class-xh-social-ajax.php(203):Gregwar\Captcha\CaptchaBuilder->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('')#4/var/www/html/wp-includes/class-wp-hook.php(310):WP_Hook->apply_filters('',Array)#5/var/www/html/wp-includes/plugin.php(453):WP_Hook->do_action(Array)#6/var/www/html/wp-admin/admin-ajax.php(99):do_action('wp_ajax_xh_soci...')#7{main}thrownin/var/www/html/wp-content/plugins/wechat-social-login/includes/captcha/CaptchaBuilder.phponline327