Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Resolve the problem that phpcms v9 does not display CAPTCHA

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Xiaobian to share with you to solve phpcms v9 does not display Captcha problem, I hope you read this article after a big harvest, let's discuss it together!

phpcms v9 does not display Captcha how to do?

Recently, a friend encountered the problem that the management background login Captcha does not show after the website migration. Today, Phpcms V9 management background login Captcha does not show the solution. I hope it is useful for friends who learn phpcms.

Method 1: check the host environment to see if the gd library has been opened.

You can use a probe, or check the php.ini file, search for extension=php_gd2.dll, check if there is a comment symbol in front, and remove it.

Method 2: Check whether the configuration file is correct.

Open the configuration file: cache/configs/system.php and check where the path is set:

//Website Path

'web_path' => '/path where the site is located/'

If the site is installed in the root directory (e.g. www, public_html, htdocs, etc.), it should be set to: 'web_path' => '/'; if installed in the directory/blog/, it should be set to: 'web_path' => '/blog/'.

Method 3: Check the encoding format of the configuration file.

Mainly check whether the file encoding of cache/configs/system.php and api/checkcode.php is consistent. For example, if the program version is utf-8, then the utf-8 encoding format is selected when saving.

When modifying these files, it is recommended to use professional text editors such as editplus, EmEditor, Sublime Text, and avoid using the default text editor. Also note whether there is a BOM signature. You need to remove some of the editor's default BOM signatures.

This method also applies to Phpcms 2008, encountered before, modify the include/config.inc.php and checkcode.php file encoding is ANSI encoding format (or utf-8 encoding format) is good.

After reading this article, I believe you have a certain understanding of solving the problem that phpcms v9 does not display Captcha. If you want to know more about it, welcome to pay attention to the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report