wordpress如何实现QQ微信钉钉Github手机号登录?

Wordpress2年前 (2023)发布 SUYEONE
1.5K 0 0

In this WordPress tutorial Series. we’ll explore how to enable login through qq, WeChat, DingTalk, and Github using WordPress. This guide is AImed at assisting those who encounter issues, particularly with the loading of the graPhi-cal captcha when implementing these features.

The issue at hand concerns the non-functioning graphical captcha when using the “Social Login” plugin for WordPress on a site built with version 4.9.8 and PHP v7.2.12 within a Docker container running the wordpress:4.9.8 image. The captcha fails to load, showing a status code of 200 but without any returned Data. To troubleshoot, activate the WordPress debug mode as explained in a previous article on ‘How to Enable WordPress Debug Mode (Error Reporting)’ and save log information in the wp-content/debug.log file.

To view your PHP configuration, create a php-info.php file in your Website’s root directory with the content “. Access it via a domain, e.g., `https://action.liabio.cn/php-info.php`, to display the details.

When dealing with Docker, the Dockerfile used for building the image might contain configurations like:

“`
RUN echo ‘deb http://mirrors.163.com/debian/ stretch main contrib non-free’ > /etc/apt/sources.list \
&& 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
“`

However, you may encounter an error during the Docker build process, such as “OCI runtime create failed: container_linux.go:346: starting container process caused.” This error typically occurs with Docker version 19.03.5 and can be resolved by using a Docker version A-Round 18.x.

After switching to Docker version 18, the build process should complete without errors, successfully integrating freetype. This will allow the captcha to load correctly, as seen with the displayed QR code.

For a detailed walkthrough of enabling QQ, WeChat, DingTalk, and Github logins in WordPress, refer to the provided reference or explore related articles on Host Reference.

© 版权声明

相关文章

暂无评论

暂无评论...
☺一键登录开启个人书签等功能!