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
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
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.
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
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
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?
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?
Bookmarks