Home > Article > CMS Tutorial > 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' => '/网站所在的路径/'
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!