亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Table of Contents
The graphical verification code cannot be loaded
%%PRE_BLOCK_4%%
Home CMS Tutorial WordPress How to implement QQ, WeChat, DingTalk and Github mobile number login in wordpress

How to implement QQ, WeChat, DingTalk and Github mobile number login in wordpress

Sep 14, 2021 pm 03:46 PM
golang

The following tutorial column of WordPress will introduce to you how to implement QQ, WeChat, DingTalk and Github mobile phone number login in WordPress. I hope it will be helpful to friends in need!

wordpress version: wordpress:4.9.8 version
PHP version: v7.2.12
dockcer mirror is: wordpress:4.9.8

The graphical verification code cannot be loaded

When I used wordpress to build a website recently, I used wechat- social-loginPlug-in implementsWeChat, QQ, DingTalk, GithubWhen logging in, after turning on the graphic verification code function, I see that the graphic QR code cannot be loaded, F12See the status code is 200, but there is no return value, error This request has no response data available

How to implement QQ, WeChat, DingTalk and Github mobile number login in wordpress

How to implement QQ, WeChat, DingTalk and Github mobile number login in wordpress##After opening the wordpress log, I found the following error reported in the
debug log file. For how to enable the debug log, please go to the historical article How to Enable WordPress Debug Mode (Error Prompt) and print the log to debug.log in the wp-content directory.
How to implement QQ, WeChat, DingTalk and Github mobile number login in wordpress

[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(440):?Gregwar\Captcha\CaptchaBuilder->writePhrase(Resource?id?#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}
??thrown?in?/var/www/html/wp-content/plugins/wechat-social-login/includes/captcha/CaptchaBuilder.php?on?line?327
The website query information says: The graphic verification code function requires the installation of

gd library and freetype and other dependencies, through Check the detailed information in phpinfo(): gd extension does not have freetype:
How to implement QQ, WeChat, DingTalk and Github mobile number login in wordpress

View the method of phpinfo()

Create a new file

php-info.php in the root directory of the website. The content is:

<?php phpinfo();
After saving, use the domain name to access it, such as

https://action.liabio .cn/php-info.php, you can see it.

docker compilation image

The Dockerfile file is as follows:

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
Execute the following compilation command:

docker?build?-t?wordpress-freetype:4.9.8?.
The result is a compilation error.

Docker compilation image error report

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

Because I am using the 19.03.5 version of docker, I checked the information on the Internet, which roughly means that I need the 18 version of docker to compile without error.

Sure enough, the 18 version of docker compiled without an error:


How to implement QQ, WeChat, DingTalk and Github mobile number login in wordpress

Use a new image integrated with freetype

Use a new image Finally, you can see that freetype is successfully integrated.


How to implement QQ, WeChat, DingTalk and Github mobile number login in wordpressYou can see that the QR code has been successfully displayed.

How to implement QQ, WeChat, DingTalk and Github mobile number login in wordpress

The above is the detailed content of How to implement QQ, WeChat, DingTalk and Github mobile number login in wordpress. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Golang vs. C  : Performance and Speed Comparison Golang vs. C : Performance and Speed Comparison Apr 21, 2025 am 12:13 AM

Golang is suitable for rapid development and concurrent scenarios, and C is suitable for scenarios where extreme performance and low-level control are required. 1) Golang improves performance through garbage collection and concurrency mechanisms, and is suitable for high-concurrency Web service development. 2) C achieves the ultimate performance through manual memory management and compiler optimization, and is suitable for embedded system development.

Golang and C  : Concurrency vs. Raw Speed Golang and C : Concurrency vs. Raw Speed Apr 21, 2025 am 12:16 AM

Golang is better than C in concurrency, while C is better than Golang in raw speed. 1) Golang achieves efficient concurrency through goroutine and channel, which is suitable for handling a large number of concurrent tasks. 2)C Through compiler optimization and standard library, it provides high performance close to hardware, suitable for applications that require extreme optimization.

Transforming from front-end to back-end development, is it more promising to learn Java or Golang? Transforming from front-end to back-end development, is it more promising to learn Java or Golang? Apr 02, 2025 am 09:12 AM

Backend learning path: The exploration journey from front-end to back-end As a back-end beginner who transforms from front-end development, you already have the foundation of nodejs,...

Which libraries in Go are developed by large companies or provided by well-known open source projects? Which libraries in Go are developed by large companies or provided by well-known open source projects? Apr 02, 2025 pm 04:12 PM

Which libraries in Go are developed by large companies or well-known open source projects? When programming in Go, developers often encounter some common needs, ...

Golang vs. Python: Performance and Scalability Golang vs. Python: Performance and Scalability Apr 19, 2025 am 12:18 AM

Golang is better than Python in terms of performance and scalability. 1) Golang's compilation-type characteristics and efficient concurrency model make it perform well in high concurrency scenarios. 2) Python, as an interpreted language, executes slowly, but can optimize performance through tools such as Cython.

Golang's Purpose: Building Efficient and Scalable Systems Golang's Purpose: Building Efficient and Scalable Systems Apr 09, 2025 pm 05:17 PM

Go language performs well in building efficient and scalable systems. Its advantages include: 1. High performance: compiled into machine code, fast running speed; 2. Concurrent programming: simplify multitasking through goroutines and channels; 3. Simplicity: concise syntax, reducing learning and maintenance costs; 4. Cross-platform: supports cross-platform compilation, easy deployment.

Golang vs. Python: Key Differences and Similarities Golang vs. Python: Key Differences and Similarities Apr 17, 2025 am 12:15 AM

Golang and Python each have their own advantages: Golang is suitable for high performance and concurrent programming, while Python is suitable for data science and web development. Golang is known for its concurrency model and efficient performance, while Python is known for its concise syntax and rich library ecosystem.

C   and Golang: When Performance is Crucial C and Golang: When Performance is Crucial Apr 13, 2025 am 12:11 AM

C is more suitable for scenarios where direct control of hardware resources and high performance optimization is required, while Golang is more suitable for scenarios where rapid development and high concurrency processing are required. 1.C's advantage lies in its close to hardware characteristics and high optimization capabilities, which are suitable for high-performance needs such as game development. 2.Golang's advantage lies in its concise syntax and natural concurrency support, which is suitable for high concurrency service development.

See all articles