Page 49 of 60 FirstFirst ... 39474849505159 ... LastLast
Results 481 to 490 of 593
  1. #481
    Join Date
    Apr 2009
    Posts
    57
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by awhfy99 View Post
    My best guess (don't think it would actually qualify as help though):


    Since line 341 in the classes/captcha.php is

    function _get_gd_version() {

    I am led to believe that gd library is not either installed on your server, is broken, or some parameter has been changed.

    Most hosts will let their users see that info, so if you can verify that gd lib is there, and if it is, then I would check with your host. They may have done an upgrade and haven't tweaked it yet.

    If anyone has a better suggestion, please let us know!
    Got things sorted out thanks for the help. Turns out that the Admin Profile mod I have installed was the cause. I had to change my admin user permissions and tick the CAPTCHA box and all was good after that. Thanks again for the help.

  2. #482
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,264
    Plugin Contributions
    3

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by awhfy99 View Post
    Haven't seen this mentioned anywhere so I thought I would see if it had a solution. The captcha doesn't display the code (it's a broken image link) if either 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). Seems to work on any of the other settings.



    I did think of a use for that broken link.

    If you only want the add customer through admin to be used to create an account, then either of those will definately stop them in their tracks! Actually, a pixel_trans.gif renamed to button_create_account.gif works better, but why be picky?
    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...
    20 years a Zencart User

  3. #483
    Join Date
    Jan 2009
    Location
    Montreal, Canada
    Posts
    228
    Plugin Contributions
    0

    Default Captcha worked for a while, then stopped

    I had this up and running fine for about a month and did not add or remove any other mod since then. And now all of a sudden I notice the images no longer appear. I have a new computer with all the latest browsers and it's the same problem in all.

    I deleted all the Captcha files and uninstalled the SQL patch and then re-loaded everything and copied in the install.sql. And the problem persists. I don't know what else to try and didn't see a similar issue in the forum.

    My only suspicion is that the image source seems to be on the secure server, https. (I saw this by copying the source of the blank image space.)

    Does that mean anything? Any help would be appreciated.

    alexandergifts.ca
    ZC 1.38a

    Cheers,

    Robbie

  4. #484
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: Captcha using TTF & GD

    Check php-scripts in the presence of extra lines and spaces.
    Take this script, unzip it, upload it to a root directory and running it.

  5. #485
    Join Date
    Jan 2009
    Location
    Montreal, Canada
    Posts
    228
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    That worked!! It found 8 with space at the bottom, I adjusted them myself, it still showed 3 with space and then I used the built-in fixer.

    Thanks a lot!

    R

  6. #486
    Join Date
    Jul 2005
    Posts
    33
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    I've installed captcha_ttf v2.9 on a fairly basic zen-cart 1.3.8a installation and it almost works, except the image is always blank.

    I've read through this thread (49 pages!) and I see lots of other people with the same problem, but none of the solutions work for me.

    I've tried removing all backup files, disabling .htaccess temporarily (I'm not using SEO or any other mods), disabling SSL temporarily, checking for extra lines and spaces, checking that the fonts file is found and so on. There are no errors in the log. I'm on PHP v5.2.6 (Zend 2.2.0) in "apache" mode.

    There's one interesting thing I don't understand - if I run captcha_test.php then right-click on the blank image and view it using IrfanView (for example) I can see the image. But that only works in jpeg mode - in png or gif mode I get "invalid header". The image never displays in firefox or IE (latest versions).

    My captcha_test with the above symptoms can be seen at http://skeptic.org.uk/inquirer/captcha_test.php if that helps. (The captcha in the main store is disabled for obvious reasons.)
    --
    Phil McKerracher
    www.mckerracher.net

  7. #487
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: Captcha using TTF & GD

    Yes, you have a bad header in the image file. Some files have a BOM - find and remove it.

  8. #488
    Join Date
    Jul 2005
    Posts
    33
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by a_berezin View Post
    Yes, you have a bad header in the image file. Some files have a BOM - find and remove it.
    Hmm. The image file is purely generated by the script though, isn't it? So how can I stop the script doing this? I can't see any BOM in any of the source files, but it's possible the editor is hiding it.

    I thought it might be a UTF-8 issue, but I couldn't find any setting for charset in Zen-Cart. Am I missing it?

  9. #489
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by philmck View Post
    I can't see any BOM in any of the source files, but it's possible the editor is hiding it.
    Yes, the editor is hiding it. Use my script to find the bad files.

  10. #490
    Join Date
    Jul 2005
    Posts
    33
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    Aha! That has fixed it, many thanks. I had run your script but hadn't realised the BOMs had to be removed (as well as blank space).

    Does anyone have suggestions to avoid this problem affecting people in future?

    (Also, how did the BOMs get there in the first place, and why do they only affect the captcha script?)

    Also, what is the "built-in fixer" that giftmeister refers to?

 

 
Page 49 of 60 FirstFirst ... 39474849505159 ... 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