Home > Backend Development > PHP Tutorial > About the solution to the problem of ecshop verification code picture

About the solution to the problem of ecshop verification code picture

黄舟
Release: 2023-03-15 19:20:02
Original
1563 people have browsed it

ecshop’s own verification code function can be hidden and displayed in the background. If a customer needs this function but the picture cannot be displayed, 68ecshop Template Center will give you some advice here:

1.

Comment out this code under the includes\init.php file:

/* 判断是否支持 Gzip 模式
if (!defined('INIT_NO_SMARTY') && gzip_enabled())
{
ob_start('ob_gzhandler');
}
else
{
ob_start();
}
*/
Copy after login

Go to the background and clear the cache to display it.

2.

If the above method does not solve the problem, finally overwrite it with the original languages\zh_cn\common.php and delete the blank lines in captcha.php under the root directory.
Possible reasons: After the languages\zh_cn\common.php file has been modified, a certain string may be too long or other reasons may cause the verification code not to be displayed.
For example:
Change: $_LANG['copyright'] = "© 2005-%s %s Copyright, all rights reserved.";
Change to: $_LANG['copyright'] = "xxx: http://xxx.com © 2005-%s %s Copyright, all rights reserved.";
may cause the verification code not to be displayed.

3.

If it is not displayed, it may be related to space settings and permissions. Please contact the space provider. Or it is recommended to block it from the background system settings and verification code management.

The above is the detailed content of About the solution to the problem of ecshop verification code picture. 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