ECShop Captcha Not Displaying Fix

Here are several methods to fix this:
1. Re-upload and overwrite the file languages/zh_cn/common.php located in the root directory of your server.

2. Overwrite the lib_main.php file inside the includes folder with the original file from the installation package.

3. Modify the line in captcha.php:   $img = new captcha(‘data/captcha/’, $_CFG

['captcha_width'], $_CFG['captcha_height']);    Change it to    $img = new captcha(ROOT_PATH . ‘data/captcha/’, $_CFG['captcha_width'], $_CFG['captcha_height']);

4. Re-upload and overwrite lib_main.php, lib_goods.php, and lib_common.php located in htdocs/includes/.

5. Delete the following code block inside includes/init.php: /* Check if Gzip mode is supported
if (!defined(‘INIT_NO_SMARTY’) && gzip_enabled())
{
ob_start(‘ob_gzhandler’);
}
else
{
ob_start();
}
*/

6. Install the GD library and configure the extension=php_gd2.dll setting in the PHP.INI file.

Leave a Comment

Your email address will not be published.