When I moved phpcms v9, I logged in to the backend in the new space, but found that the backend verification code was not displayed. I was using the win host. We know that the verification code is generated directly. Picture, and to use the picture verification code in PHP, you must open the gd library to use it. I checked the win host and found that the gd library was not opened. Find the bottom of php.ini, search for extension=php_gd2.dll, and replace the previous Just remove the semicolon from the comment.
Check whether the configuration file site path is correct
Sometimes during the moving process, we move the entire site to the blog file in the root directory of the website. At this time, You need to change the directory path where the website is located, otherwise the verification code will not be displayed. Open the configuration file cache/configs/system.php and look for the following code:
//网站路径 'web_path' => '/网站所在的路径/'
This is the path to the website installation, usually the default is 'web_path' => '/'; But if we change the site directory, such as moving it to blog/, we need to set it to: 'web_path' => '/blog/', which is correct.
Check the encoding format of the configuration file
The problem with the encoding format is actually the problem that the verification code is not displayed after our secondary development. This problem is very serious. Rarely, mainly check whether the file encoding of cache/configs/system.php and api/checkcode.php is consistent. For example, the version of the program is the utf-8 version, which is saved as the gb2312 version during our secondary development. , at this time there will be a problem that the verification code is not displayed.
PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!
The above is the detailed content of phpcms background login verification code cannot be displayed. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Atom editor mac version download
The most popular open source editor

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
