I also need this - does anyone have a fix?
Printable View
Hi,
I just used a_berezin's found_error_space.php debug script and I got this result:
Bad files - 8
Replace ending "?>" by "// EOF" ?
What does the 2nd line mean? And should I check it off to fix the files?
Thanks.
Where does one get "a_berezin's found_error_space.php" from?
TIA
I had the same thing .......and found somewhere a post by someone else saying that it was not working
all we get was the space where the image should be but no image
then i also uploaded the 3 php files that came with the captcha ttf download wich are captcha_debug.php captcha_img.php captcha_test.php once i ran those three files it all kicked in and worked perfect...... It didn't really state in the setup directions clearly that this step was needed but after i did that it all worked fine.
Nice work Andrew Berezin!
Hi - installed my Captcha and I have checked that all files are where they should be;
accessing the contact me page - the only captcha I have live - gives me a blank page, but when I check Captcha, run captcha _debug or captcha_test, I get the follwing error message:
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'in:
Any halp will be apprciated
Rufus
found the answer needed image php in root directory
thanx anyway
sufur
My Captcha is working just fine; however I would like a one-line explanation above the Captcha - how & where should I enter this?
Rufus
Thank you very much for this Mod.
Just a minor question:
Any particular reason why the Redraw button is not an hyperlink?
Thanks.
Ive had Captcha installed for a while now and had noticed on my localhost windoze test machine that I often got an 'incorrect validation code message' for several attempts, even tho the code entered was correct. I have now had complaints from customers that they cannot log in due to the same problem on my Live site.
Ive now disabled CAPTCHA but getting the spambots again.
Any explanation why it works intermittently?
I have the same problem. Just noticed that if you do something wrong while creating an account (like leaving out your email address) you also get the 'incorrect validation code message' from CAPTCHA (which is not the case). Than after correcting the "mistake" (like putting an email address) and putting the new CAPTCHA code, again the'incorrect validation code message' from CAPTCHA pops up. This can go on for 3-5 times and than it accepts it. I am 100% sure that the code is correctly put...
anyone know why this could be happening?
MUtester,
In my case the error occurs even if the validation code IS correct.
and also in the scenario you have explained.
This is CRITICAL problem as it stops customers from shopping.!!
For now I decided to remove it from the create account page because of these errors and just hope not to get too many fake automated registrations... If anyone knows of a solution I would love to hear it...:smile:
Maybe I am going to undo all customization done by me (related to the CAPTCHA files and see if anything fixes the problem...but for now I can not be bothered...too much other fun stuff to do :smile:
See this link, entry #445 at bottom.
http://74.125.113.132/search?q=cache...&ct=clnk&gl=us
Notageek
If you received "Error 1064 You have an error in your SQL syntax" etc., as in posts 218 and 263, when you followed the instructions in this CAPTCHA module to "copy and paste" rather than use "upload" for "admin-tools-install SQL patches," that error will indeed be fixed by using "upload" in Zen Cart version 1.3.8a, as stated not too long ago in this thread.
If the instructions were upgraded to reflect this, it could save someone a bit of time in installing the SQL patch.
Notageek
I am still wondering why the Redraw button is not an hyperlink?
Minor usability quibble. :)
First, I want to say Thank You very much, Andrew, for the add on.
The validation is working for me and my CAPTCHA image is showing up everywhere it's supposed to, however, I am having an issue where the redraw button will not redraw the CAPTCHA.
The redraw does work on the test page (http://www.totalcareersuccess.com/st...ptcha_test.php), but it will not redraw on
any of the cart pages, such as create account (https://www.totalcareersuccess.com/s...create_account) or
contact us (http://www.totalcareersuccess.com/st...age=contact_us). If I reload the pages, the
CAPTCHA does redraw. I am using the following settings and modifications:
PHP Version 5.2.10
Zen Cart 1.3.8a
Zend Engine v2.2.0
Zend Optimizer v3.3.9
GD Support enabled
FreeType Support enabled
cart template by Algozone
Configuration >> Layout Settings >> CSS Buttons = no
I have read every message in this thread, and implemented some of the suggestions, but the redraw still doesn't function. Is it possible that I need to add the code people use when they have CSS buttons turned on, even though I have that set to no in admin, because of the way the template handles the buttons? If you (or anyone) have any suggestions or need more information, please let me know.
Thanks,
Lissa
Hello
I can not find where to download this mod on the first page link does not work
Thanks
Thank you very much
I had searched and had not been able to find it.
IF YOU LOOK HERE:
http://www.purelypoultry.com/contact_us.html
NO MATTER WHAT IF THE VERIFICATION CODE IS CORRECT OR NOT, IT KEEPS GIVING ME THE ERROR THAT IT IS INCORRECT.
I LOOKED FOR A WAY TO FIX THIS, BUT COULD NOT FIND ONE. COULD SOMEONE PLEASE TAKE A LOOK, OR GIVE ME ANOTHER WAY TO ADD CAPTCHA TO THIS WEBSITE.
I just wanted to say a big thank you to Andrew and everyone who has posted helpful fixes etc on this thread.
Today I successfully installed this mod, with one minor hiccup that this thread helped me address. In my case the mod accepted any entry as valid on all pages except "create account".
@AmandaGero - I don't know if you have resolved your problem or not but you seem to have the exact opposite of me so I was thinking it might be the same cause. The reason for me was that I had named my old header_php files as header_php_save. I deleted these and now everything works as intended.
1.38a with all security patches
I get this error.
Fatal error: Call to a member function close() on a non-object in /home3/carbsfou/public_html/includes/classes/captcha.php on line 341
get a blank white page on create account or contact us.
If i go to admin and turn off this for the two pages they come up fine (without the captcha of course).
test does not work as well, same error
Any help would be great
Hello everyone,
I am trying to get this module installed, I changed the needed files, added the sql to the database but still no go, it shows up on the create account page, but keeps returning the message: "You did not enter the validation code correctly. Please, try again."
The "captcha_test.php" works great, can someone throw me a bone.
Here is a link to the page: https://www.ecobaba.biz/index.php?main_page=login
I've searched the thead but, alas, no joy.
Have checked proper placement of all Captcha files and cannot find the reason why the text is showing instead og the redraw buttin:
/includes/templates/template_default/buttons/english/BUTTON_IMAGE_CAPTCHA_REDRAW
TITLE_CAPTCHA TEXT_CAPTCHA
The png file is attached
Thanks a pile
AJ
Yep just installed this, and it's happening to me too. Absolutely no idea why, and it would appear Andrew hasn't been checking this forum for a while.
In the interm I've turned it off. Luckily I only need it for the "non user review" page mod, and I can still filter at the admin level for spam, so it's not a biggie.
Love this Mod. Running Zen-Cart v1.3.8a with no mod to the Contact Us form. Followed instructions exactly. Works great, with one problem:
In IE8, box is LEFT-justified under "Security Check:".
In Firefox 3.6, box is RIGHT-justified on same line as "Security Check:"
You can see this if you go to my site (using Firefox) at:
http://flairbyjdn.com/catalog/index....age=contact_us
Anyone else have this same problem? If you're only using IE, I would check your site with Firefox just to be sure you aren't experiencing the same problem I am.
Any ideas?
Ignore my replay above - posted to wrong thread by mistake. Argh. :oops:
Hi. I am using ZC 1.3.8A, with a number of mods, including Captha.
Everything worked fine, until I changed some .htaccess parameters.
I know it's only because of the changes I had made, as when I replace with the old .htaccess file, the Captcha again works 100%.
The .htaccess changes are needed. t I made many changes, however, and I'm wondering if anyone can steer me in the right direction, as far as which change, specifically, did this.
Nothing else on my cart, or the server, seems affected in any kind of negative way by the new .htaccess file.
When using my new .htaccess parameters, instead of displaying the Captcha image, I only see 'Enable This Picture' where the Captcha image should be, and the redraw button at right.
Clicking on that, it looks like the image will be drawn, it shows a rectangle the size of the Captcha block really fast, but then again reverts to the 'Enable This Picture' text.
What I seem to need to find out: How is the Catchpa image generated, as clearly I've disable the ability to do so on my server.
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
OK; it was probably a bad idea to leave the cart like that for ANY period of time, but we were concerned about hacks, and in the meantime while securing the site, if someone couldn't log on, then that was OK. Now, I've removed the .htaccess code, and the Captcha STILL isn't working!!!!!!!!!!!!!!! :(:(:(:(:(:(:dontgetit
It's failing as it had been previously, with the new .htaccess changes. I KNOW that removing the new .htaccess code had fixed it instantaneously when I was messing with this, as I even posted that on this thread. (Just in case I am unsure, if I posted it ,I'm certain it was the case!) But now...it's seemingly stuck.
Can any .htaccess parameters stay in effect even after the .htaccess commands are removed???
I'm going to see if it was any of the suggested patches and security upgrades on this board that I installed. It doesn't make sense that it could be that, as changing the .htaccess file from new to old made the Catchpa work and then not work each and every time I tested before leaving the new settings in place.
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.........
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
Line 15 ****/includes/extra_configures/pci_patch_v13x_search.phpCode: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);
}
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']);
}
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???
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.
Hi,
:frusty: 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!
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
Zen Cart v1.3.9c
Having an issue where after installing this add on I am not getting a validation code showing.
Screenshot:
http://www.flowerswithstyle.com.au/nocode.jpg
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...
take a look at this bug report ..
http://www.zen-cart.com/forum/showthread.php?t=155522
Would be great if you came out w/ an updated version of this mod - love it. However, I've been told it's too outdated to be compatible w/ php 5.3.
Just finished reading the 55 pages, tried every suggested solution without any lock.
The only thing i did not try is the "checking for spaces" using the script from Andrew, i can find it, anyone know where i can get it?
I'm trying to install this module, BUT I've got an error on the SQL update, telling me that there are :
8 statements processed.
ERROR: Cannot insert configuration_key "" because it already exists
Note: 1 statements ignored. See "upgrade_exceptions" table for additional details.
Into the Admin part, I only see the new CAPTCHA but noting inside.
I'm using a version 1.3.8a
Is there something to checks before ?
Thanks for your help
1, Fe1ho,
Did you install the captcha_img.php, captcha_debug.php, and captcha_test.php files in the root directory? The instructions leave out that step. You can run the captcha_test.php by typing that filename into your browser's address.
2. On another note, I have installed this module into 2 stores, one being a 1.3.9e store, and it works fine so far on my test server in 1.3.9e where I am running PHP.5.2.9-2.
3. And yet another note: I have installed Captcha on 2 sites using the Zencart_Zen template, and each time I have had to correct inc.udes/languages/zencart_zen/english.php, at lines 282-283 in my installation, so that where it says ' = Required Information' it says '* = Required Information' and below that, where it says 'star.gif' I have replaced star.gif with '*'.
Before doing the corrections above, my pages just said = Required Information; and my "Contact Us" page said "star.gif" in the 3 places where there should have been an asterisk *.
I am puzzled that I see no mention of this problem in the thread when searching on "star.gif" or "=Required information."
I am also puzzled that I do not see that english.php file in the module itself, so I cannot go in and fix the module for future uploads.
Does anyone know whether this is a problem with my particular template (Zencart_Zen) or some other factor? Since it was easily solved, this is just an esoteric question at this point.
Thanks for any responses.
Notageek
I have installed this Captcha module and having frustrations.
Installed all files as needed and all pages that the captcha was supposed to show on are now blank. When I go to the admin and turn captcha off for a certain page my page comes back.
The only think I can figure may be wrong is I do not understand the instructions:
2. EDIT:
Use applied files as a sample. All changes of a code are made in brackets
// BOF CAPTCHA
... code ...
// EOF CAPTCHA
I saved the files to their directories, what do I need to edit? I am fairly new but have installed templates in the past with little problems. I know I installed all the files, what am I missing?:(
Here is example of contact page not working:
http://pet-rabbit-toys.com/store/ind...age=contact_us
Only good thing is at least the spammers can't get to those pages either!!!! :clap:
Hi all, can anybody help me how to solve the IE8 secutiry message when the page wiht captcha is loaded? But MOD is working very well. Thank you.. I mean IE8 message at the top that page is not secure etc....
I am testing the ttf_gd CAPTCHA for use on my new store. I am having an issue with the size of the font used for the image creation.
It doesn't respond to changes made in the admin control.
I've run through the thread but I found this mentioned, but no solution.
It doesn't seem to be template dependent.
I'm running v1.3.9e, Linux 2.6.18-194.17.1.el5xen, 5.3.2 (Zend: 2.3.0) , MySQL 5.0.91, GD is bundled (2.0.34 compatible)
I noticed in the debug,
'FreeType Support' => false,
'T1Lib Support' => false,
Could it be either of these? Are they dependencies?
Note on Post 545, there was a missing parameter in my zencart_zen template, just a matter of typing in * before = Required.
Still trying to sort out my issue of the following code appearing at the top of the header at www.gokaraokemachine.com:
I am starting to wonder if this is really correct HTML code? Are there not supposed to be double slashes for comments such as these? Is this a new type of HTML or a PHP convention? Asking these questions here gives me a direction to research next.Quote:
/* Begin Simple Google Analytics */ /* End Simple Google Analytics */
I simply copied the code into my html_header.php before the </head>. One thing I tried was a line of space before and after the inserted code. Of course, my site went blank.
Another potential avenue might be some sort of connection to the new axynchronous tracking type that this code is supposed to enable. Maybe there is some setting I need to make to cause this unwanted verbiage/code to disappear from my home page header. I need to go to the Google Analytics site and try to set this up more effectively.
I will post if I make any discoveries in these avenues of research.
Sorry-I tried to delete the above post which was posted in the wrong thread. I guess it did not save the deletion. That issue is posted in the Simple Google Analytics thread. Hopefully this can be deleted from this thread.
I upgraded from 1.3.9g to 1.3.9h, and my test site works as expected.
However, my real site now is blank for all the secure pages.
I tried to work with my ISP to get the shared SSL set up correctly. Now I do see the secure site in the address.
But now, instead of the "This web page is not available" message I had formerly, I now see the following on otherwise blank pages for login, contact us, and checkout pages:
My ISP does have GD enabled for JPEG and everything else, so this message is nonsensical. The GD settings are:Quote:
CAPTCHA Error: GD-Library does not support JPG. The CAPTCHA cannot be used!
gd
GD Support enabled
GD Version 2.0
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.11
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 6b
PNG Support enabled
libPNG Version 1.2.42
WBMP Support enabled
CAPTCHA is working well on my test wamp server and also on my online test site at www.gokaraokemachine.com/wampcopytest.
I re-uploaded CAPTCHA with TIFF and GD version 2-9, ran www.gokaraokemachine.com/captcha_test.php and captcha_debug.php, but no change and no information was obtained.
I re-uploaded the files from version 1.3.9h. I think this does not affect any admin files, since admin is working properly after taking off the SSL which I hope to reinstall once the blank screen problem in the store is solved (Is that an erroneous assumption that admin files are not involved?), but I re-uploaded everything anyway, several times.
I went through all modules and find no conflicts with the 1.3.9h except that I did not have the skill to edit the zencart_zen file that was affected; so I tried that file as well as the unchanged 1.3.9h and ruled out any conflict there. Everything always works on my test servers.
I really do not know what else to try here. The error message is wrong because GD is installed with JpEG support. Maybe after days of trying to resurrect my cart, it's time to re-install. Any suggestions will be tried by me, unless I reinstall first.
Someday, somewhere, someone is going to benefit from my ignorance and lack of method.
After much study and repeated uploading of files, I read there was a SQL patch in the module.
I had taken the approach that it worked before so surely it was installed and there was just an incomplete FTP upload somewhere.
The SQL patch completely turned on all of the insecure pages of my site. So that, in combination with getting my SSL in sync with my configure.php files, brings me back to an operational site after the upgrade from 1.3.9g to 1.3.9h, I believe.
Apparently a message that GD and JPEG are not available may indicate that a SQL installation on the particular website database is needed.
How obvious is that for a remedy?
Hi, Just a quick question if anyone can help. I have installed this captcha without any issues. However, does anyone know if you can do a jscript form check for the captcha if someone does not enter it correctly or does not enter at all when they create account? Would like to wish everyone a happy new year aswell.
Hi, Also is there any way to have a captcha for the report cheaper price add on. I tried to DIY it and I can get the captcha image on the report cheaper price page but you can leave it blank and still submit the form so it is not able to check correctly.
anyone have a fix for validation errors due to the code &rand=
1) general entity "rand" not defined and no default entityCode:enid=30681cbdc1ad03737a2602f686fb150b&rand=0.411519001294443511" alt="Enable t…
2) reference to entity "rand" for which no system identifier could be generated
3) reference to entity "rand" for which no system identifier could be generated
thanks
Thanks for the great mod!
The only question I have is it supposed to erase all of the information entered on the Create Account page if an incorrect CAPTCHA is entered? There has only been one other post about this issue so I'm thinking that it's something that I've altered.
And if it is supposed to erase all of the entered information, is there a fix to make it not do so? (I figured out how to keep all of the entered fields on contact us thanks to another post - the fix just won't work on Create Account.)
Thanks in advance.
Just installed on to V1.3.9h but can't get any letters in the box.
See: http://www.skysports.com.au/captcha_test.php
In the diagnostic, I get:
Warning: imagettftext() [function.imagettftext]: Could not read font in /includes/classes/captcha.php on line 249
(and line 251)
I tried installing an new TTF in the /fonts directory as well as disabling VERDANA.TTF that was put ther in the install.
The only other thing was that I did not edit any of the new files, only moved them from ./YOUR_TEMPLATE/ to my template. Was I supposed to?
Thanks
Kenton
Was this project abandoned? There are few questions not answered.
Also, is there going to be a PHP5 upgrade for this module? It was working just fine before my server was upgraded to PHP 5.2.17.
I think it's just session handling in 5.2.17 that makes this module not work - it works fine on my PHP 5.3.10 site but fails on my 5.2.17 site.
Hi! I just installed CAPTCHA image using GD library and true type fonts_telephone not required v. 3.0 for Zen Cart version 1.5
Everything seemed to install fine. Captcha is working on 'Contact Us' page just fine, but when I click on 'Create an Account' page, it doesn't show the captcha at all. I am using the All_Businesss Zen Cart template. Any idea what I may be doing wrong? I figure if the Contact Us page is showing it and working correctly, it's installed correctly and I just have something not set right. Any help would be much appreciated. Thanks.
Hi wondering if anyone would have an insight into an issue I am experiencing with this, other wise great, module.
I have install it on a Zen Cart v1.5 store and it was, still is, working great. When I use images for my buttons.
I am trying to keep load times to a minimum and every Kb counts sometime, so I swapped over to css buttons. Now the redraw button for the captcha image does nothing.
It maybe nothing to do with this module and everything to do with FEC, which I now think is overkill. Really only use the login and create account part of it.
As I am writing this I am getting the feeling I may be answering my own question. Uninstall FEC and see I the issue remains.
Any insight would be great guy and girls. I'll leave this on as a question and post back if uninstalling FEC clears it.
Just in case other need the answer too.
[EDIT]No It Made No Difference. FEC Disabled or FEC Uninstalled. The css button still did not redraw the captcha image.[/EDIT]
I am installing it now, and noticed that this mod for V1.5 that is said to build on the original Captcha TTF mod for 1.39, but there is a file that is different from the latest version for 1.39 mod.
/includes/classes/captcha.php
Using a merge tool to compare, I noticed that the old copy I had was V2.9; while the copy that is provided in the V1.5 Captcha mod is V2.8;
Exists in V2.9 in line 094 is (which is missing in the V2.8 copy)
I am not sure if this has any effect in anything, but I thought I'll just point out here while I continue to work to upgrade my ZC to 1.5.PHP Code:
$redraw_button = zen_image_button($image, $alt, $redraw . ' ' . $parameters, $sec_class );
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strpos($redraw_button, $redraw) === false) {
$redraw_button = str_replace('<span ', '<span ' . $redraw, $redraw_button);
}
return $redraw_button;
Also.. on Readme.txt of V2.9 the changelog recorded:
v 2.9 11.08.2008 15:01
1. Bug fix - use zen_image_button with IMAGE_USE_CSS_BUTTONS == 'yes';
2. Update to support ZC1.3.8a and Links Manager 3.3.1 - thanks to t. mike howeth
3. corrected text in /includes/languages/english/extra_definitions/captcha.php - thanks to t. mike howeth
Another file spotted to be different:
/includes/modules/pages/links_submit/header.php.php
Not really sure if this relates to the issue I was/am having with the redraw button not actually redrawing the captcha image.
here is a side by side comparison of the two sections of code and perhaps someone could explain to me how to get the redraw button to function on page. If I have not managed to merge the two sections correctly. My php is still very much at the beginners stage.
line 89 to 96 from the supplied version v2.8
From Line 094 the code section pointed out in the above postingCode:/**
* Generate the HTML output code for the Redraw Captcha image button
*/
function redraw_button($image, $alt = '', $parameters = '', $sec_class = '') {
$redraw = 'onclick="document.getElementById(\'captcha-img\').src=\'' . $this->img_href . '&rand=\'+Math.random();return false;"';
return zen_image_button($image, $alt, $redraw . ' ' . $parameters, $sec_class );
}
The merged code section which I hope works and fixes my issue. :huh: :blink:Code:$redraw_button = zen_image_button($image, $alt, $redraw . ' ' . $parameters, $sec_class );
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strpos($redraw_button, $redraw) === false) {
$redraw_button = str_replace('<span ', '<span ' . $redraw, $redraw_button);
}
return $redraw_button;
Code:* Generate the HTML output code for the Redraw Captcha image button
*/
function redraw_button($image, $alt = '', $parameters = '', $sec_class = '') {
$redraw = 'onclick="document.getElementById(\'captcha-img\').src=\'' . $this->img_href . '&rand=\'+Math.random();return false;"';
return zen_image_button($image, $alt, $redraw . ' ' . $parameters, $sec_class );
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strpos($redraw_button, $redraw) === false) {
$redraw_button = str_replace('<span ', '<span ' . $redraw, $redraw_button);
}
return $redraw_button;
}
Of Course I had to try it out. and no it does not fix the issue of the css buttons working as a redraw image button. Those Folks than can read code like Nero, probablly new that already. Oh! well back to the funky images for buttons.
What is the uninstall code for this please.
Hi,
I think i may have found a bug???
This captcha has been working perfectly on 2 of sites for about 2 years now
BUT recently i have been getting lots of customers telling me they cannot enter the captchas, they always get the error
"you did not enter the validation code correctly"
and no matter how many times they try they get this error
I test it on my home PC and it is always OK, but when testing from my android tablet i get this error
this happens on both of my separate sites, so it seems to be an issue only affecting tablets???
im running 1.3.9h
Need a fix quickly PLEASE :(
Interesting and worth prompt attention.
Were you using a specific browser on the Andriod tablet (I don't have one so don't know enough about the issue), and does that browser differ from the one(s) on your PC?
Can you test with different browsers on both machines?
ok tested with IE 8, firefox and chrome on PC and works fine,
Installed chrome on the tablet and it works
so it only seems to have an issue with the standard internet browser that comes with the tablet, i am using a galaxy note 10.1
i cant seem to find out what browser it uses...
an interesting thing i found was that if i load the contact page (for example) and then hit the redraw button, then enter the validation code it works
but if you just enter the first code that appears when the page is loaded it wont work and you get the error
(hope that makes sense)
A quick check on the web thingy suggests Android has its own internal default web browser app. This suggests it's not a fully web compliant application and thus not your fault no one can use the captcha with it, blame the evil forces of Google who own Android.
My first thought is you should put a warning out on your captcha web page(s) telling everyone on the Captcha page that the page doesn't work without a web-compliant browser such as Mozilla or advise them to follow your experience with redrawing the page if they have an error.
I think this would be the quickest fix without delving into deep code (don't go there unless you have a degree in programming or a lot of migraine pills handy :cool: ).
And keep a close eye on this thread if anyone more skilled can offer a better solution.
:smartalec:
Hi,
Didn't know that this old plugin someone else used. Was sure that all have long been using reCAPTCHA, CSS-captcha and JS-captcha.
This error is known for a very long time - to captcha earned, it is necessary that the session has been started.
If You have set the parameter Force Use Cookies = true, then when you first time visit the site the session does not start.
As an option, try setting the parameter Force Cookie Use = false.
Is this compatible with zen 1.5.1?
If not what else do you recommend?
Do I understand you correctly?
Are you saying I shouldn't use any CAPTCHs, since "Zen Cart now includes a CSS CAPTCHAless spam deterrent"?
Please let me know. Thank you.
Great. Then I won't add any CAPTCHAs to Zen 1.5.1.
Thanks.
can't get this to work.. installed all the files and ran the sql query fine. most pages work but the registration page does not show the captcha AND in the admin there is nothing under 'configuration' that says 'captcha'. i check the configuration-group table and the new entry is there for 'captcha' but it still doesn't show on the pull down menu for 'captcha'. i can't take a screen shot because as soon as i move my mouse from the 'configuration' tab to capture the screen, the pull down disappears.
looks like the sql file included with this download is missing sql statements?? it doesn't add anything to the table 'admin-pages'.
here is the file:
HTML Code:SET @configuration_group_id=0;
SELECT (@configuration_group_id:=configuration_group_id) FROM configuration_group WHERE configuration_group_title= 'CAPTCHA' LIMIT 1;
DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;
DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;
INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) VALUES (NULL, 'CAPTCHA', 'CAPTCHA Configuration', '1', '1');
SET @configuration_group_id=last_insert_id();
UPDATE configuration_group SET sort_order = @configuration_group_id WHERE configuration_group_id = @configuration_group_id;
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES
(NULL, 'Code Length', 'CAPTCHA_CODE_LENGTH', '6', 'Verification Code length', @configuration_group_id, 1, NOW(), NULL, NULL),
(NULL, 'Image Width', 'CAPTCHA_IMG_WIDTH', '240', 'CAPTCHA Image Width', @configuration_group_id, 2, NOW(), NULL, NULL),
(NULL, 'Image Height', 'CAPTCHA_IMG_HEIGHT', '50', 'CAPTCHA Image Height', @configuration_group_id, 3, NOW(), NULL, NULL),
(NULL, 'Chars minimum size', 'CAPTCHA_CHARS_MIN_SIZE', '0.6', 'Chars minimum size (1.0=Image Height)', @configuration_group_id, 4, NOW(), NULL, NULL),
(NULL, 'Chars maximum size', 'CAPTCHA_CHARS_MAX_SIZE', '0.8', 'Chars maximum size (1.0=Image Height)', @configuration_group_id, 5, NOW(), NULL, NULL),
(NULL, 'Corner of rotation', 'CAPTCHA_CHARS_ROTATION', '23', 'Chars Corner of rotation', @configuration_group_id, 6, NOW(), NULL, NULL),
(NULL, 'Shadow Chars', 'CAPTCHA_CHARS_SHADOW', 'true', 'Generate Shadows for Characters', @configuration_group_id, 7, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),'),
(NULL, 'Image Type', 'CAPTCHA_IMG_TYPE', 'png', 'CAPTCHA Image Type', @configuration_group_id, 10, NOW(), NULL, 'zen_cfg_select_option(array(\'png\', \'jpeg\', \'gif\'),'),
(NULL, 'Create Account page', 'CAPTCHA_CREATE_ACCOUNT', 'true', 'Activate Validation on Create Account page', @configuration_group_id, 21, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),'),
(NULL, 'Contact Us page', 'CAPTCHA_CONTACT_US', 'true', 'Activate Validation on Contact Us page', @configuration_group_id, 22, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),'),
(NULL, 'Tell A Friend page', 'CAPTCHA_TELL_A_FRIEND', 'true', 'Activate Validation on Tell A Friend page', @configuration_group_id, 23, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),'),
(NULL, 'Links Submit page', 'CAPTCHA_LINKS_SUBMIT', 'true', 'Activate Validation on Links Submit page', @configuration_group_id, 24, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),'),
(NULL, 'Write Review page', 'CAPTCHA_REVIEWS_WRITE', 'true', 'Activate Validation on Write Review page', @configuration_group_id, 25, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),');
After several years I'm finally upgrading and now know I don't need this plugin.
However I understand it has used an SQL patch into the database when I originally installed it and wonder if anyone has advise on a safe uninstall process before or after the upgrade process (I'm moving from 1.3.9h to 1.5.5c).
Obviously the .php and other files can be omitted, so it's just the SQL patch that has me puzzled.