Page 54 of 60 FirstFirst ... 4445253545556 ... LastLast
Results 531 to 540 of 593
  1. #531
    Join Date
    Oct 2007
    Posts
    241
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    Running captcha_test.php as a stand-alone PHP file, still the Catchpa image doesn't display. Same as when it's generated on the cart. What does that tell me?? Does that mean it IS a server issue? All files are intact and remain in place; none have any added file length or show a recent modified date.

    When I run captcha_debug.php, I get this message:


    Headers already sent in ******/includes/extra_configures/pci_patch_v13x_search.php on line 15 Warning: Cannot modify header information - headers already sent by (output started at *****/includes/extra_configures/pci_patch_v13x_search.php:15) in **********/includes/classes/captcha.php on line 288

    Is this possibly because of the patch I applied, and NOT the .htaccess adjustment I had made, as I had thought earlier?
    Any help would be greatly appreciated.........

  2. #532
    Join Date
    Oct 2007
    Posts
    241
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    When I run captcha_debug.php, I get this message:


    Headers already sent in ******/includes/extra_configures/pci_patch_v13x_search.php on line 15 Warning: Cannot modify header information - headers already sent by (output started at *****/includes/extra_configures/pci_patch_v13x_search.php:15) in **********/includes/classes/captcha.php on line 288

    The below code from each of the two files returned in the error message is listed below. So far, I haven't figured anything out on my own with regard to this issue. Does anyone know anything about the patch, and why this might be happening? I don't see the identical commands, but then I'm only a PHP novice, and I'm not familiar with a lot.

    Line 287- **********/includes/classes/captcha.php
    Code:
     if($this->debug) {
          header('Content-Type: text/html');
        } else {
          @header('Content-Transfer-Encoding: binary');
          @header('Content-Disposition:attachment; filename=captcha_img.' . $this->img_type);
          @header('Content-Type: image/' . $this->img_type);
        }
    Line 15 ****/includes/extra_configures/pci_patch_v13x_search.php

    Code:
    <?php
    if (isset($_GET['keyword']) && $_GET['keyword'] != '')
    {
      $count =  substr_count($_GET['keyword'], '"');
      if ($count == 1)
      {
        if(substr(stripslashes(trim($_GET['keyword'])), 0, 1) == '"')
        {
          $_GET['keyword'] .= '"';
        }
      }
      $_GET['keyword'] = stripslashes($_GET['keyword']);
    }
    Last edited by Donn; 7 Apr 2010 at 07:28 AM.

  3. #533
    Join Date
    Oct 2007
    Posts
    241
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    I removed the patch from 27th June 2009, PCI Scans - (patch to handle low-priority warnings on search screen causing scan fail)
    /includes/extra_configures/pci_patch_v13x_search.php

    http://www.zen-cart.com/forum/showthread.php?t=130701

    As soon as I did, the Captcha again resumed working 100%.

    I do want the added protection of the patch that keeps certain error messages from appearing and revealing too much, but I also need the Catchpa functionality.

    Any solution to this???

  4. #534
    Join Date
    Jul 2005
    Posts
    33
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    Most of the problems with this CAPTCHA patch seem to be caused either by extra files that should be removed (e.g. renamed files remaining after a patch) or by extra characters being added to files during editing, for example carriage returns, line feeds or byte order markers. If you read back through this thread (all 54 pages!!!) you'll find a tool for removing invisible characters.

    The tool worked for me, but I've since done a clean reinstallation of the whole shop and CAPTCHA then worked without using the tool.

    It's definitely very flaky and causing a lot of grief.

    I'm not sure if it's the CAPTCHA patch, Zen Cart or PHP that is the problem. Maybe if this CAPTCHA patch were part of the core it would help.

  5. #535
    Join Date
    Mar 2010
    Posts
    21
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    Hi,

    I hope that someone can give me a helping hand. I have installed the captcha and as far as I've checked it works fine except for the contact us page. When a costumer has forgotten to fill in a field or make a mistake in i.e. the captcha code the page load again with the error messages. But the inquiry field returns emty so the user must type again his message.

    I search on the internet for sites with contact page using the captcha and test to see what happen but my problem didn't show there.

    I use the original files and have no modifications made to it.

    Hope there is somebody out there who can give me a solution.

    Thank you in advance!

  6. #536
    Join Date
    Mar 2010
    Posts
    21
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    Hello orange_juice,

    Quote Originally Posted by orange_juice View Post
    Hallo, I would like to ask how I could add captcha verification to be checked by javascript?

    My intension is to make certain that if a user inserts the wrong captcha code, the other entries in the form are kept intact instead of being erased and making necessary for the user to enter everything again from the beginning.


    Kind regards,
    Orange_juice
    It seems I've the same problem. The inquiry field returns empty when the user push the send button before filling in all the fields.

    I was wondering if you solved this problem, and if so, how?

    Thanks in advance for your reaction!

  7. #537
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    this is just strange . I installed this mod on 138a , 139a and b with no problem .. i just installed this mod on 139c , file base is working but when i try to install SQL patch using zc sql patch installer . i get this error .

    ERROR: Cannot insert configuration_key "" because it already exists

    i have gone through everything .. new 139c database has not been altered , this mode is a first one that is adding / modifying this Database .
    any clue as what is wrong here ?
    previous installation was done on exact same test server with no problem

  8. #538
    Join Date
    Apr 2010
    Posts
    11
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    Zen Cart v1.3.9c

    Having an issue where after installing this add on I am not getting a validation code showing.

    Screenshot:


    When I use captcha_debug.php I receive the following :


    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 249

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 251

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 249

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 251

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 249

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 251

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 249

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 251

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 249

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 251

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 249

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 251

    ** THERE WAS A WHOLE HEAP OF GIBBERISH HERE THAT LOOKED LIKE WHAT AN IMAGE FILE LOOKS LIKE IF VIEWED IN NOTEPAD - HAVE REMOVED AS IT WAS CAUSING THE POST TO BE TOO LONG - CAN POST SEPERATELY IF REQUIRED **

    captcha::__set_state(array(
    'captchaCode' => 'CNBIPZ',
    'captchaCode_length' => '6',
    'img_width' => '180',
    'img_height' => '50',
    'img_type' => 'png',
    'chars_min_size' => '0.6',
    'chars_max_size' => '0.8',
    'chars_shadow' => true,
    'chars_rotation' => '23',
    'noise' => 30,
    'backgroundColor' =>
    array (
    0 =>
    array (
    0 => 220,
    1 => 220,
    2 => 220,
    ),
    1 =>
    array (
    0 => 255,
    1 => 255,
    2 => 255,
    ),
    ),
    'linesColor' =>
    array (
    0 =>
    array (
    0 => 150,
    1 => 150,
    2 => 150,
    ),
    1 =>
    array (
    0 => 185,
    1 => 185,
    2 => 185,
    ),
    ),
    'textColor' =>
    array (
    0 =>
    array (
    0 => 30,
    1 => 30,
    2 => 30,
    ),
    1 =>
    array (
    0 => 199,
    1 => 199,
    2 => 199,
    ),
    ),
    'dir_fs_fonts' => '/home/www/[site]/fonts/',
    'ttf_list' =>
    array (
    0 => '/home/www/[site]/fonts/VERDANA.TTF',
    ),
    'max_try' => 5,
    'failure_proc' => '',
    'quality' => 60,
    'chars' =>
    array (
    0 => '1',
    1 => '2',
    2 => '3',
    3 => '4',
    4 => '5',
    5 => '6',
    6 => '7',
    7 => '8',
    8 => '9',
    9 => 'A',
    10 => 'B',
    11 => 'C',
    12 => 'D',
    13 => 'E',
    14 => 'F',
    15 => 'G',
    16 => 'H',
    17 => 'I',
    18 => 'J',
    19 => 'K',
    20 => 'L',
    21 => 'M',
    22 => 'N',
    23 => 'O',
    24 => 'P',
    25 => 'Q',
    26 => 'R',
    27 => 'S',
    28 => 'T',
    29 => 'U',
    30 => 'V',
    31 => 'W',
    32 => 'X',
    33 => 'Y',
    34 => 'Z',
    ),
    '_background' => NULL,
    'img' => NULL,
    '_gd_version' =>
    array (
    'GD Version' => 'bundled (2.0.28 compatible)',
    'FreeType Support' => true,
    'FreeType Linkage' => 'with freetype',
    'T1Lib Support' => false,
    'GIF Read Support' => true,
    'GIF Create Support' => true,
    'JPG Support' => true,
    'PNG Support' => true,
    'WBMP Support' => true,
    'XPM Support' => true,
    'XBM Support' => true,
    'JIS-mapped Japanese Font Support' => false,
    'version' => '2',
    ),
    'debug' => true,
    'img_href' => 'http://[site]/captcha_img.php?zenid=7cjp06ev2cfdi6uhiih4uh8ju7',
    'imageColorFunc' => 'imagecolorallocate',
    ))

    Any ideas? Appreciate the help...

  9. #539
    Join Date
    Apr 2010
    Posts
    11
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by dcitsolutions View Post
    Zen Cart v1.3.9c

    Having an issue where after installing this add on I am not getting a validation code showing.

    Screenshot:


    When I use captcha_debug.php I receive the following :


    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 249

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 251

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 249

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 251

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 249

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 251

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 249

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 251

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 249

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 251

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 249

    Warning: imagettftext() [function.imagettftext]: Could not read font in /home/www/[site]/includes/classes/captcha.php on line 251

    ** THERE WAS A WHOLE HEAP OF GIBBERISH HERE THAT LOOKED LIKE WHAT AN IMAGE FILE LOOKS LIKE IF VIEWED IN NOTEPAD - HAVE REMOVED AS IT WAS CAUSING THE POST TO BE TOO LONG - CAN POST SEPERATELY IF REQUIRED **

    captcha::__set_state(array(
    'captchaCode' => 'CNBIPZ',
    'captchaCode_length' => '6',
    'img_width' => '180',
    'img_height' => '50',
    'img_type' => 'png',
    'chars_min_size' => '0.6',
    'chars_max_size' => '0.8',
    'chars_shadow' => true,
    'chars_rotation' => '23',
    'noise' => 30,
    'backgroundColor' =>
    array (
    0 =>
    array (
    0 => 220,
    1 => 220,
    2 => 220,
    ),
    1 =>
    array (
    0 => 255,
    1 => 255,
    2 => 255,
    ),
    ),
    'linesColor' =>
    array (
    0 =>
    array (
    0 => 150,
    1 => 150,
    2 => 150,
    ),
    1 =>
    array (
    0 => 185,
    1 => 185,
    2 => 185,
    ),
    ),
    'textColor' =>
    array (
    0 =>
    array (
    0 => 30,
    1 => 30,
    2 => 30,
    ),
    1 =>
    array (
    0 => 199,
    1 => 199,
    2 => 199,
    ),
    ),
    'dir_fs_fonts' => '/home/www/[site]/fonts/',
    'ttf_list' =>
    array (
    0 => '/home/www/[site]/fonts/VERDANA.TTF',
    ),
    'max_try' => 5,
    'failure_proc' => '',
    'quality' => 60,
    'chars' =>
    array (
    0 => '1',
    1 => '2',
    2 => '3',
    3 => '4',
    4 => '5',
    5 => '6',
    6 => '7',
    7 => '8',
    8 => '9',
    9 => 'A',
    10 => 'B',
    11 => 'C',
    12 => 'D',
    13 => 'E',
    14 => 'F',
    15 => 'G',
    16 => 'H',
    17 => 'I',
    18 => 'J',
    19 => 'K',
    20 => 'L',
    21 => 'M',
    22 => 'N',
    23 => 'O',
    24 => 'P',
    25 => 'Q',
    26 => 'R',
    27 => 'S',
    28 => 'T',
    29 => 'U',
    30 => 'V',
    31 => 'W',
    32 => 'X',
    33 => 'Y',
    34 => 'Z',
    ),
    '_background' => NULL,
    'img' => NULL,
    '_gd_version' =>
    array (
    'GD Version' => 'bundled (2.0.28 compatible)',
    'FreeType Support' => true,
    'FreeType Linkage' => 'with freetype',
    'T1Lib Support' => false,
    'GIF Read Support' => true,
    'GIF Create Support' => true,
    'JPG Support' => true,
    'PNG Support' => true,
    'WBMP Support' => true,
    'XPM Support' => true,
    'XBM Support' => true,
    'JIS-mapped Japanese Font Support' => false,
    'version' => '2',
    ),
    'debug' => true,
    'img_href' => 'http://[site]/captcha_img.php?zenid=7cjp06ev2cfdi6uhiih4uh8ju7',
    'imageColorFunc' => 'imagecolorallocate',
    ))

    Any ideas? Appreciate the help...
    Resolved: Corrupt VERDANA.TTF file.

  10. #540
    Join Date
    Dec 2009
    Location
    Canada
    Posts
    160
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by schoolboy View Post
    Anyone got ideas on how to get the image to display if (as Dennis points out above) the Customer Approval Status - Authorization Pending or Customer Shop Status - View Shop and Prices are set to 1 (must be authorized to browse) and/or (must login to browse).

    I need the restrictions on access, but I ALSO need captcha...

    Hello!! I also require help with this too!! This is a frustrating one because I want to limit who can view my products and keep out those bots!

    THANK YOU!!!

 

 
Page 54 of 60 FirstFirst ... 4445253545556 ... LastLast

Similar Threads

  1. Replies: 68
    Last Post: 29 Jul 2013, 06:33 PM
  2. CAPTCHA using TTF & GD - not working
    By derrr99 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Dec 2010, 04:05 PM
  3. Replies: 13
    Last Post: 2 Jun 2008, 03:29 PM
  4. Captcha using TTF & GD & Tel Not Required (how do I Avoid Overwrites?)
    By CelticKatt in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 8 Apr 2008, 04:18 AM
  5. Can CAPTCHA Using TTF & GD be installed in check out?
    By Lainee in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 8 May 2007, 04:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR