Thanks for the info. I will install IH2 on the shop where captcha is working, to test. Will report back.
Woody
Printable View
Woody!
You use any SEFU module?
Woody!
Can you give me a fuul list of using contributions? Except ih2.
I was hoping someone else would chime in as I have no SQL experience, so if you decide to do what I did, do so at your own risk. :wink:
First, go into phpMyAdmin and back up your DB.
If you look at the captcha.sql file, you can see that you can undo each statement. So, in phpMyAdmin, open your zen databbase. Then go into configuration_group and delete CAPTCHA Validation. Next, go into configuration_group_id and delete a field that has configuration_key value of "ACCOUNT_VALIDATION." Then go to the next statement and delete the next one (I think I sorted the configuration_key field to make it easy to find these entries).
When you get to the DROP TABLE... part, I ran that same command.
Hope this makes sense.
Hi KTNaturals!
Sorry for the delay and thanks for taking the time.
I'm guessing I had a question because it doesn't appear that I have a "configuration_group_id", at least not in the same area as "configuration_group " which had previously found (along with the "CAPTCHA Validation" field.
Still worried since you mention two fields in "configuration_group_id" to delete. My Captcha (the one that just works with log in) is working.
Almost all my mods have gone super smoothly with no issues but this one has me a little bugged since it is fairly involved in terms of files and with my near zero experience my normal method of back tracking after a problem could easily get confused.
I suppose I will eventually have to take the leap and hope that it will work once I delete the one field found and hope that full functionality comes with this improved Captcha.
Hey! you've got more PHP, etc. under your belt than me! Like you, I'm learning all of the involved software/languages as I go. Fortunately a lot of it is intuitive or, in Zen's case, easy.
Any other thought always appreciated and thanks again for jumping in.
Ok, I'm back.
I have installed the new mod CAPTCHA as discussed and though it appears others have similar problems I am unable to uncover the solution in the postings.
Problem is that though the image (letters) and box for CAPTCHA showed the first time I went to contact_us they no longer show either there or at login. The validation box shows as does the redraw button but when you redraw the outline of the box shows briefly with the generic image icon but does not load and outline disappears again.
The only thing I can think is my previous issue with not finding a particular field (think that's what you call it) in SQL database. See my procedure:
I did removed CAPTCHA Validation from configuration_group but I did not have a configuration_group_id even though the old CAPTCHA was working.
Before installing this new version I reloaded the contact page and this appeared at bottom:'
Files not overwritten yet but when reloaded login this appeared at bottom (i've replaced my SQL database name):
1146 Table 'mytablename'.TABLE_ANTI_ROBOT_REGISTRATION' doesn't exist
in:
[DELETE FROM TABLE_ANTI_ROBOT_REGISTRATION WHERE timestamp < '1176050552' OR session_id = '55e5ca3e81faa0bf28215325ec74ca7e']
which I assumed was a call from one of the files I had yet to replace with new CAPTCHA versions. ?
CAPTCHA option did not show in Zen Admin which convinced me I had removed previous version.
Installed all new CAPTCHA files (except French language if that matters) and ran SQL patch in Admin (I have results if needed but no errors) and CAPTCHA options showed once again in Admin.
I have tried changing picture types in Admin already and same result of the image box not drawing.
Again, "Enable Picture" redraw button and "Validation Code" block do show properly just not letter/image box.
All help appreciated!!
One last thing to help solve.
I did run the captcha_test and the box and default image icon (not letters) shows only there as well. Only difference is that the box and icon show.
Maybe this is it.
There is a "anti_robotreg" table in SQL, do I delete this? Appears to have been created with old CAPTCHA but don't want to break anything.
I'll shut up and wait now!
Deleting "anti_robotreg" table in SQL didn't do anything to help. Put it back in.
Realize I'm talking to myself but the more info. the better.
I mentioned test produced empty box with generic image icon.
When I go to captcha_img.php the image with letters does shows and will change when reloaded.
I loaded the captcha_img.php, test and debug files at the same level as the includes folder. Almost seems like the captcha_img.php is in the wrong place.
But what do I know?!? Just more food for thought (YOU ARE THINKING AREN"T YOU?!!)
Yet again...
I find that if I, as a "customer", quit the browser and restart I see the CAPTCHA field and can send a message. However, if I go to send another message the block is gone again.
Something to do with the "session".
Again, I'm making guesses with little technical background so if it doesn't make sense or seems way off, that's why.
Frustrating!
Hi Jeffrey,
Yes, it is for the older version captcha mod (by funkey and other versions). If you think you might want to revert back to previous version won't hurt anything if you leave it in the DB.
Question: Do you have Image Handler 2 mod installed?
And it is ok to talk to yourself on these boards and to think out loud. Something you post with during your "conversation" might stimulate an idea, solution/recommend from someone else.
Wish I could help you but I have yet to solve my issue.
Woody
Sorry to hear that, your posts where the ones I tried to track with and was kinda hoping your issues would get/be fixed.
Yeah, the SQL delete didn't work. Meant to follow up with that information. I put it back since it didn't help.
No, I don't have Image Handler 2 mod installed.
Elusive and a real hassle. I've been literally taking guesses all day long with little else done. It's a must for me to figure it out. Maybe if we both keep knocking they shut us up with a solution! Thanks.
This has something to do with the generation of the URL and or combined with the session information.
The generated URL for captch_img.php appears to be in the format of http://www.
The image wont load there but it will with just http://
Difference being the elimination of the "www." part.
Whaa?
I'm tweaking things that LOOK (that's almost all I'm skilled to do now!) like they will fix the generated URL but no luck.
Give you any ideas?
Sorry so many posts, things keep popping up. Just to clarify last post, here is the debug output:
var $img_href = 'http://www.mysite.com/zencart/captcha_img.php?zenid=(string of numbers/letters here)';
Error message if you go there.
But, take our the "www." and CAPTCHA text block shows up.
How/where does the captcha_img.php ref URL get generated?
Jeffey, That may give Andrew some ideas.
I just tried deleting www but I observed same error as I've been observing all along:
As an update, I now have two accounts on the very same server. Andrew's captcha mod runs on the account with the fresh ZC 1.37 install. But does not run on the ZC 1.37 install with many mods installed (see error above). So that possibly points to a mod compatibility issue. Thus I was asking you and everyone else if they had IH2 installed.Quote:
I have IH2 installed on the shop where captcha is not working, but IH2 is not installed on the shop which captcha is working). But your error might a bit different than mine, not sure.
If you would like to PM me a list of mods you have installed, I will compare with my mod list. Maybe that will help narrow down the possibilities.
A week ago or so I sent Andrew a list of mods I have installed (as requested). But I have not heard back from him since. Maybe he is on vacation or he looked at the long list of mods and dropped dead. :wink2:
Woody
Hey Woody,
Sorry for delay, along with everything else I've lost 2+ 16 hour days on computer issues! Back up again.
Here's my list but I must confess that I haven't cleaned up my working stuff yet so I may have missed something or names might not be exact, just ask if you need clarification. I usually clean everything up and make it easy reference for later once I'm completely done with a project like this.
Still surprised no one has been through similar stuff and has solved it.
add_customers_from_admin_1.0
BACKUP_MYSQL_ADMIN_PLUGIN-1.2.0.10a
credit_card_images_for_payment_page_1.0.zip
edit_orders
EmailAddressExporter
ask a question
Contact_Us - Subject Mod
css-flyout-categories-v1.3.0.3.1
login_box_1.4.1
captcha (whatever this one is called)
shipping_insurance_2b
call_shipper
User Tracking v.1.3.6.2
zc_subsilver_buttons_1-0
Zen Lightbox
I've also been working a little with monoslideshow but that's not integrated and kept separate save for the calls to the Zen product images so don't think it could have an effect and I think I did that AFTER I had this problem.
Still working this unsuccessfully for yet another day Woody. I saw your last post regarding switching to this CAPTCHA and PHP version.
I'm having my problem with PHP version 4.4.4 which I think you have running successfully. ???
I can occassionally get the picture to show up but it is so infrequent and I'm trying so many things with my limited knowledge that I can't really even tell what change makes it appear once.
Always disappears on reload, etc. so maybe it doesn't matter.
This one sucks, can't go live until I figure it out and I'm getting worried that I wont after all these weeks of work. No sense putting it up if I get blacklisted when people use me to spam.
Woody!,
Sending you a message as well to make sure you take notice as this might be the solution.
In frustration I started to read this whole thread yet again and came across a post by babygekko.
First post about "glob" didn't work for me but in trying combinations I got it to work (at least more than once, time and continued tests will tell if I'm truly ready to go) on my end.
All I did was:
"...I also had to delete the ob_start() and ob_end_clean() from captcha_img.php. Things work out perfectly right after that." - thanks babygekko!
Give it a shot!
Sorry dude, in my excitement I didn't read the next post which was yours, looks like you tried that already.
Hopefully this will help others, mine now appears to work even with additional drop down subject line for contact_us page.
Hey jeffey,
Thanks for the follow-up and the PM. Well I tried the suggestion again and it indeed works on the test version:
I may be wrong but I had understood Andrew repaired this issue in latest mod version and stated that ob_start() and ob_end_clean() were required for security reasons?Code:<?php
/**
* @version $Id: captcha_img.php v 2.5 23.03.2007 13:11 AndrewBerezin $
*/
// ob_start();
require('includes/application_top.php');
// ob_end_clean();
require(DIR_WS_CLASSES . 'captcha.php');
$captcha = new captcha();
$captcha->generateCaptcha();
?>
Andrew, is this the case? Or is it ok to comment out those two functions?
What's strange to me is that on one account the test version WITHOUT the two lines having commented out, displays the captcha image. But on another account on the exact same host machine, the image will not display without the the two lines above commented out.
I did a google search on "ob_start php" and see lots of issues posted.
Ideas anyone?
Woody
$#*##&$***!
I have the same information in my copy (with two pieces I took out missing of course) so it looks like the most recent version.
What is the nature of the security risk?
Everything is working now and I haven't found another mentioned workaround after this was posted by babygekko.
Gotta be better than nothing and given no help has surfaced with all of our posts I think I will be forced to us this as is. Don't know what else to do, it's either that or trash the project.
Use old contribution - http://www.zen-cart.com/index.php?ma...roducts_id=325.
I may have misspoke and Andrew has not commented regards to the real need for:
ob_start();
- AND -
ob_end_clean();
In the mean time I also have commented out those two lines and the captcha image is now displaying where it did not before. But don't ask me why as I'm no PHP guru.
Maybe Andrew can fill us in on the purpose/need of those two lines, within the context of the operation of his mod and why those two entries might cause the captcha image to not display.
I'm still trying to wrap my head around application_top.
Thanks again to Andrew for supplying this mod.
Woody
Second the thanks to Andrew! Despite this hiccup the mod is a great one.
As to a_berezin's comment, thanks. Problem is that the old mod just doesn't provide as much coverage as this mod in addition to making it more readable which, at least for me, has always been my biggest complaint with this feature on any site. Plus, I removed it once, it ain't going back!
Hopefully your mistaken Woody and/or Andrew will pick this up and let us know the potential implications or a slight modification.
Until I hear otherwise I'm following suit with Woody and running without those two lines.
Thanks again to Woody for noodling this through with me and everyone else for the contributions to the thread which eventually lead me to my "solution".
I regret, but I have lost interest to this.
I hope you've only lost interest in us (who would blame you?) and not the mod!!
Not in you. In this and other mods.
This mod you can download from DL-area.
P.S. I think it is not necessary to discuss it
Shame.
Not to discuss, just to say thanks for the work. Sorry I bothered you.
Andrew, please tell me you're not ditching Zen Cart altogether. I am getting concern that lately you've been detaching yourself from all the GREAT mods that you've provided for this community. Is there anything specific you have issues with as of late on this forum?
It would be a shame to lose you here.
Anyone have the reasent download for this?
Thanks,
Chad
Sorry download is working now!!!!! Does this work with the 1.3.7?
It does indeed work with 1.3.7 though some, including myself, have had a few bumps. My solution was #121 in this post for potential future reference.
Mine is working great.
Its a great add and you should definitely give it a shot.
I uploaded the files then installed the sql patch went to my login page and got an error. it said something like I needed to install GD and my screen was completly what except for that writing. I have no clue how to use this?
Thanks,
Chad
Chad-
You definitely need GD installed. In Admin go to Tools >Server/Version Info.
Should tell if GD is installed and which version. If you are not certain ask your host. GD is provided by almost all webhosts these days. If yours won't install then I advise a move to another hosting provider. I'm sure you will likely find other uses for GD. For one the Zen Cart Image Handler 2 mod needs GD, a mod I could not do without.
Woody
its on my test server at home. What is GD? this way I can get it installed on my Server.
Thanks,
Chad
It's amazing what a simple Google Search will do.
GD Graphics Library
What is the GD library? GD is an open source code library for the dynamic creation of images by programmers.
http://www.libgd.org/
This link may of be of significance:
http://www.libgd.org/FAQ_PHP
Good luck,
Woody
I have Wamp5 so im going to search on thier site to see about it... I will post later:dontgetit
Thanks,
Chad
GD is built into recent versions of PHP. You just need to enable it.
To enable gd you will need to edit the php config file php.ini.
In your case, start wamp, and left click on the wamp tray icon -> config files -> php.ini
to enable gd2 find:
;extension=php_gd2.dll
to enable it you need to remove the semi-colon in front, so change it to:
extension=php_gd2.dll
Then save the file and restart apache for the new settings to take effect.
-Woody
I was reading that on wamp5 forum when you posted but the newest one you can take it from an extension in a list ect. anyway long story short It works !!!
Thanks,
Chad
Got your PM Chad but it looks like Woody has done it again and got you to working status. He's always a great help.
I'm not there yet but I hope my point, reiterated by Woody, helped.
Yes woodyman streightened me out! Thanks for the help!! :smile:
Well I uploaded the Captcha to my website and inserted the SQL. everything is working except there is no picture in the box? It says "Enable this picture" I went into the admin/configuration/captcha and tried jpg,png and gif. What can I do to fix this?
Thanks,
Chad
Read my PM to you about this Chad and my first note aboout #121 in this thread (which says the same thing but maybe less clear then my PM), that's all I had to do to solve the same problem.
Remove the two lines:
ob_start() and ob_end_clean()
from the Captcha_img.php and try again.
I'm sure the forum can help with any other potential issues but this fix has worked for many including myself and the Woodman.
That was the problem!!! I will have to write this in my personal tutorial on a fix issue. Thanks once again!!
Once you get done, I (and everyone else!) suggest you download everything despite how long it takes so you always have the local copy. That way when you make tweaks here and there that go wrong you can always put back the working copy/file.
In my case when I moved the site to an upper level in the directory I kept the old one two and when I make changes I use the old site as a test site. Changes I successfully make go in both so they are always relatively identical (with the exception of products which I don't worry too much about as long as some are there to play with). This, too, is usually the advice from the top Zenners.
Finally, I keep a copy of the add-ons as downloaded so I can also compare to see what changes I've made. I started a log type process but it's too hard for me to keep it organized enough for me to track stuff down the road. This copy is good too if you want to remove the add-on for conflict, etc., it provides the map of the files you need to remove or edit out changes directed by the add-on.
I'm a little more anal than most probably but if it prevents a huge problem in the future it will pay off.
Food for thought.
No I agree! I keep a copy of everything! Thats why im writing a tut on everything I have done. I am working on what we just did right now and saw you posted. Anyway this way if someone else has the same problem I had I can look it up in my tut and and help them fix it.:blink:
Congratulations on getting the mod working.
Be sure to thank Andrew!
Note the ob_ issue doesn't apply to everyone. It is yet unknown which variables are contributing to the issue.
I have two accounts with shops on the very same host machine. One shop displays the captcha image just fine, without removing the output buffer references. The other shop required me to remove the two references.
Rocket Science? No. Out of my league? Definitely.
But as long as it works.
Woody
Couldn't resist the dig eh Woody? Not all of us are professors like you!
Yeah, knew he was offline but already talked via PM about plans to do similar top level move so threw it out there.
Jeez man, what's up with you. One mistaken PM and I'm hated.
I did nothing of the kind, only tried to point out a solution and noted my entry as reference which was a posted that showed I had solved MY issue as I was told was a nicety. I believe I credted you and I think the original post/solution was from someone else.
Didn't realize the history of the solution was necessary. Clearly I'm a newbie and not capable of solving this kind of stuff on my own.
Maybe I should just sit back and watch, not worth getting jumped on if I don't follow procedure or whatever.
Later.
By the way, the professor comment was a compliment.
I still appreciate you help in the past.
Thank you all and thank you Andrew!!!:clap:
Woody!
I think I know why ob_ does not work on some hostings.
And I think better remove this from captcha_img.php
Thanks for the nod Andrew, glad to know it.
This one is fantastic and looks great too.
v 2.7 28.04.2007 6:12
1. Remove "ob_" functions from captcha_img.php.
2. Add
header('Content-Transfer-Encoding: binary');
header('Content-Disposition:attachment; filename=captcha_img.' . $this->img_type);
A_berezin,
I already have mine working by taking out the "ob_"lines out, should I add the
"header" lines in thier place? Would it look like this:
Oh and once again thanks for the mod:DCode:header('Content-Transfer-Encoding: binary');
require('includes/application_top.php');
header('Content-Disposition:attachment; filename=captcha_img.' . $this->img_type);
require(DIR_WS_CLASSES . 'captcha.php');
$captcha = new captcha();
$captcha->generateCaptcha();
Thanks,
Chad
:clap:Will somebody please notify Zencart's administrator to make Andrew's Captcha TTF as the default one in the download mods? Andrew has done a really good job and I think it's very very stupid to ignore this kind of contribution. The old Captcha in the download mods is a freaking joke any 13-yrs old can break.:shocking:
babygekko (.net)
How do you make a mod a "default" in the downloads area? What does that mean? Mods are just listed in alpha order, that's all.
How is Andrew's mod being "ignored"?
Andrews' mod is completely different from the previous captcha mod. Shopowners can choose either to try out.
Yes the limitations of the old captcha mod are well known, but is based on old technology for previous times.
But there is nothing you can do to promote one mod or the other in the Zen Cart downloads area.
Woody
can someone tell me why when i enable captcha everything works but the login, create account. it just ends up with a dead page. i have turned that part off and no problems.
1. Can you provide a URL?
2. Does the same issue occur on your Write a Product Review submission page or Tell A Friend submission page
3. What errors display in your web server error log?
4. The mod should not effect the login page, but does effect the create_account page.
5, Where did you upload the following template files provided with the mod? (provide full path please).
(note you should only upload those files to your custom template directory only if running ZC 1.37 and you have not customized your versions of the same files... otherwise you need to merge the mod code from the provided template files into your versions).
tpl_tell_a_friend_default.php
tpl_modules_create_account.php
tpl_product_reviews_write_default.php
tpl_contact_us_default.php
(and tpl_links_submit_default.php if you have Links Manager mod installed).
6. The mod includes captcha_test.php and captcha_debug.php for testing/debug purposes. If you upload both files to the root of your shop and access both files via your web browser what do you observe?
Woody
Hi All,
Where is the latest version of this? One of my sites was recently blacklisted for spam and I know I don't spam people so...
Thanks,
Kelly
Thank you.
This is great. I am having one problem though. No matter what setting I use in admin, I can't get the image font any larger.
http://www.kellyscountrycorner.com/i...age=contact_us
Any ideas?
Thanks,
Kelly
I uploaded the font that was included in the zip. Would my css have anything to do with it?
Thanks,
Kelly
About what css you talk???
If *.ttf uploaded, may be function 'imagettftext' not exists.
I have another site on a different server and the image is fine. I used all the same files, etc. So it may be that.Quote:
If *.ttf uploaded, may be function 'imagettftext' not exists.
How can I tell if I have that or not?
Thanks,
Kelly
Ask your hosting support.
All is ok. only I have a problem to install SQL install.
On read me file say for do not install but transfer or copy. I go to Admin---Tools--Install SQL patchs and only exhist the possibility to install. How to proceed?
I try trough MYSQL my administration and I get error on first line.
Pls how to proceed for install "Install SQL"?
Thanks for all kind and simple information to proceed.
Tony
Thank You, this mod is fantastic, just what I needed.
Installation was a breaze and is working great!
I do have one problem... In IE 6 the redraw capcha image does not display. Everything else works fine and no problems at all in FF.
I read through the post but did not see any specific refrence to this and I don't want to break it by messing with something over my head.
Has anyoneone else experienced or fixed this issue?
Thanks in advance,
Steve
Little Bumpie...
:blush:
There are no problems with IE6 for me.
I apologize if this has been stated already, but it is late and I am far too tired to read all 18 pages to check, lol.
I was having the same problem as a few others here with the image not showing. It would just show "Enable this picture". It turned out to be my SEO mod (Ultimate SEO URLs by dream-scape) that was fumbling it up. Disabled that and it worked great. Just thought I would mention that for anyone else who may be in a similar situation (or willing to find a way to make them work together :wink:).
I have same problem as it works woth SEO mod turned off, is there any fix for this?? Maybe a statement in the .htaccess file for it?
I have just installed the mod (latest version)
Ok probably a stupid question BUT
Should i be installing the
update_2_1.sql
update_2_2.sql
update_2_3.sql
or are they just there to update older versions of the mod
I cant remember what was in the folder but I do remember there being several SQL versions and I do believe I installed the newest one and it works fine!
Good Luck!
Hi,
I have installed the latest version of this from Zen Cart download. I am getting error messages like this as below:
Fatal error: Cannot redeclare class captcha in /home/orissash/public_html/indiashoplive/includes/classes/captcha.php on line 14
Don't know what's going on here? Can anyone help me if there is any fix?
Thanks
Brian
I bet you renamed files on the server to FILENAME.php.bak or FILENAME.bak. You need to delete these files. I can't remember which file caused the error for me, but I went back and deleted all my backup files on the servers, and everything worked OK. I'll see if I can find my previous post about this.
Hi KtNaturals,
Thanks for your reply. I checked any file with name .bak extension and I don't have anything like that in my directory. I guess there might be some othre instances where we get this type of error messages. Any idea how to fix them?
Thanks
Brian
The extension doesn't have to be .bak. I used to rename my files FILENAME-old.php, and that interferred too.
I Google searched the error message and found out about this. So if you're stuck, might as well try that, too.
Do you have another version of captcha installed? I had to clean it up, but it didn't make a difference.
v 2.7a 23.06.2007 19:25
1. Add German language - Thanks to Nicolas Schudel.
Hi Brian,
Admin --> Configuration --> SEO URL's --> "Enable SEO URLs?" (the first item) should be set to "False" :)
Hi All,
This is an important information for those who were not able to implement the captcha provided by download section of zen cart. You can use recaptcha from official site of captcha for free. I had implemented them in my website and it is really very good with more secured and more options. It is also easy to install. You can download them from http://recaptcha.net/plugins/php/.
Thanks
Brian
I am having this same issue and have found no resolution. I do not have the ultimate seo component mentioned, however I am still getting the "Enable This Picture" thing. Any insight as to how to resolve would be greatly appreciated. I can be reached direct at [email protected] or in this forum.
There is a minimal debug version in the latest mod distribution, which you can access/test directly (outside of Zen Cart) to test image rendering and redraw functions.
Be sure you are using the latest mod version as previous versions contained some misc code which was problematic on some hosts and some versions of PHP.
I had a similar issue and escapes me right now how I solved it. I think I had to edit out some minor code from mod file, the changes are documented in the readme or changelog.
Check to be sure you have no script blocking utility enabled in browser or firewall software which might interfere with redraw button functionality.
The mod requires recent versions of GD.
Running with IH2 should not be a problem.
Woody
ok I have a new problem now. I recently rebuilt my site to correct a problem unrelated to this mod. In the process I am now running the newest version of Links Manager ver. 3.2.3. After several failed attempts of merging the captcha code into the template file I am begging for help. I'm getting hammered with spam links. :shocking:
Love the mod, just can't get the two of them to get along
I'm getting an unexpected end error when I merge in all the sections that are marked in the code.
Does anyone have the correctly merged files they would be willing to send me? Save me from my spam hell PlEaSe :lamo:
I can't figure out why this mod works on all of the options except for the Create a New Account one. If you go and register it warns that the validation code has not been entered although there is none actually present.
ANy ideas here?