LoginLogin  Blog About
Search:

Support » Knowledge Base » Shop-Script » Troubleshooting »

CAPTCHA is not displayed

CAPTCHA is used by WebAsyst Shop-Script to prevent access to its storefront by so-called web robots. To enable storefront protection with CAPTCHA, log in to your store administration account, go to section "Settings -> Settings -> General", enable parameter "Protection from 3rd party scripts (captcha)" and save your changes.

To check whether CAPTCHA is working, open the customer registration page. At the page bottom an image similar to the below picture should be displayed:

 

If such an image is missing on the registration page, check the following:

  1. Directory /published/publicdata/DATABASE_KEY/attachments/SC/products_pictures must exist on the server and be writable by the web server. If the directory does not exist, create it. Change the permissions of the directory to the maximum value allowed on your server.
  2. PHP extension GD must support the JPG graphics format. This format is used by WebAsyst Shop-Script by default for CAPTCHA generation. In order to check whether the JPG format is supported by the GD extension, create a test PHP file with the following contents:
    <?php
    phpinfo();
    ?>

    Upload the test file to the WebAsyst installation directory and open it with a browser. The table with PHP configuration data that will appear should contain the following line if the JPG format is supported:

    If such a line is missing, enable JPG support in the PHP configuration. You may need to apply to your system administrator for assistance with such re-configuring.

    Should you fail to enable JPG support on the server, change the source code of WebAsyst Shop-Script to make it use GIF format instead of JPG. To do so, open file /published/SC/html/scripts/classes/class.ivalidator.php and type "gif" instead of "jpeg" in the following line:

    var $ImageType = 'jpeg';

    After such changes the line should look as shown below:

    var $ImageType = 'gif';

    Save the file and refresh the registration page, the CAPTCHA code should appear on it.