Home > CMS Tutorial > PHPCMS > phpcms background login verification code cannot be displayed

phpcms background login verification code cannot be displayed

Release: 2020-01-14 10:15:55
Original
3799 people have browsed it

phpcms background login verification code cannot be displayed

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' => '/网站所在的路径/'
Copy after login

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!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template