Closed (fixed)
Project:
Textimage
Version:
5.x-1.2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
13 May 2007 at 23:51 UTC
Updated:
22 Aug 2007 at 18:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jacauc commentedSubscribing
http://drupal.org/node/143554
Thanks
jacauc
Comment #2
TumTum-1 commentedThe Problem is from Textimage
Textimage is unfinished .
He has't not all funktion to work correct e.g. funktion textimage_captcha() must have textimage, this add a Item to the Captcha settings Option.
The Captcha Module request new funktion from Textimage, but he ain't got it.
by
Tobi
Comment #3
decipheredIf that's the case then how come Textimage worked with Captcha prior to the 5.x-2.x branch?
Comment #4
denney commentedOK, as you know Captcha v2.1 and Textimage v1.2 don't get along. Textimage will not show in the Captcha settings due to a missing function.
I've created that function and removed the old one. Note that this patch makes Textimage incompatible with Captcha v1.x.
Comment #5
denney commentedUpon further testing, the captcha image doesn't get validated properly using my patch. Anyone have any ideas?
Comment #6
denney commentedOK, I've included an updated patch that actually works this time.
Comment #7
jacauc commentedSeems to work fine for me.
Still having other issues with the fact that the text typed in doesn't seem to be recognized as valid responses.
Think that's related to another issue though.
Comment #8
BBP-1 commentedHi
thank you for the patch, but after a access to a form with a captcha, the textimage comes and if I go to a another site/node, a error appears:
Fatal error: Cannot use string offset as an array in /public_html/sites/all/modules/captcha/captcha.module on line 169Comment #9
dgrant commentedsame here...
Comment #10
SqyD commentedI had the same problems but that last patch seems to have fixed it for me, thanx!
Comment #11
njwedwards commentedHi,
I have tried the patch but am getting the same error on submit at line 169. I have installed the old version and now it works.
Look forward to the fix.
Thanks
Nick
Comment #12
imp_squared commentednjwedwards what old version of captcha did you install that worked??
Comment #13
Phezz commentedI am having nothing but trouble trying to get the Captcha 5.x-2.1 to work. I had no problem with the previous version.
I have :
captcha-5.x-2.1.tar.gz
form_store-5.x-1.0.tar.gz
textimage-5.x-1.2.tar.gz
webform-5.x-1.3.tar.gz
Installed in : sites/all/modules
When I try the patch mentioned above I get :
Fatal error: Cannot use string offset as an array in ...sites/all/modules/captcha/captcha.module on line 169
If anybody has a step by step guide to get the image captcha to work, that would be great, at the moment this is a nightmare.
Comment #14
stella commentedI've the same problem. See also #142830. I think there might be two separate issues - one with the textimage module not appearing in the captcha list and the other with the captcha module.
Comment #15
drewish commentedit looks like there's also some wonkyness in the menu... why is the filepath being used in the path that calls back to textimage_image()? and wtf is up with textimage_image() it's got the most cryptic parameters ever.
Comment #16
wundo commentedComment #17
wundo commented@6:
There is a problem in
$result['value'] = array('_captcha_validate' => array());
...
function textimage_validate($form_item) {
$captcha_word = $form_item['#post']['captcha_response'];
You should save the anwser in $result['value'] and not create a validate function. ;)
Comment #18
yueyuezhou commentedALWAYS GET
The image verification code you entered is incorrect.
Comment #19
yueyuezhou commentedCASE ISSUE:
$captcha_word = drupal_strtolower($form_item['#post']['captcha_response']);
WORKING NOW
Comment #20
Anonymous (not verified) commentedIt seems that the patch from @6 is broken..
I applied it, as well as the line from @19, but I get fatal errors.
When the user clicks on the 'register' link, i get :
: Undefined property: stdClass::$theme in includes/theme.inc on line 45.This is with the danger4k theme.
Also, when that happens, If i go back to the main page, I get the error:
warning: array_merge() [function.array-merge]: Argument #2 is not an array in modules/captcha/captcha.module on line 195.Line 195 being
form_set_error('captcha_response', t('The image verification code you entered is incorrect.'));Comment #21
Anonymous (not verified) commentedWith reference to the above reply (Undefined property), i'd like to introduce this link that might possibly help. As for me, i couldn't find a 'background' folder anywhere o_O
http://drupal.org/node/109459
Comment #22
transistorized commented#19 and #6 together worked for me.
Comment #23
Paul Natsuo Kishimoto commentedSubscribing.
Comment #24
drewish commentedgrab the 5--3 branch. it's working much better.
Comment #25
Paul Natsuo Kishimoto commented@drewish: do you mean the DRUPAL-5--3 branch of Captcha, i.e. the 5.x-3.x-dev snapshot of that module? I'll try it.
If that's what's required, is there going to be a major version number break in Textimage (to 5.x-2.0 or 5.x-3.0) to reflect compatibility with a new version of the Captcha API? Or at least some kind of a 5.x-1.x-dev release?
Comment #26
Paul Natsuo Kishimoto commentedUpdate: it seems captcha-5.x-3.x-dev provides image_captcha independently. Textimage isn't necessary if all you need is image captcha functionality. Silly me!
Comment #27
Anonymous (not verified) commentedWell..
Bye Bye textimage.
Thank you Paul, that captcha-5.x-3.x-dev works for me. It has the combination of image, text, and math.
Just disable TextImage and Captcha from modules, delete them both from your CMS, upload the new Captcha one, enable it, go to update.php on the top of the module page and update the database if needed for Captcha, and you're all set.
Comment #28
robloachCould you guys put a note in the page stating that it's deprecated and forward them to the new version of Captcha?
Comment #29
wundo commenteddone
Comment #30
(not verified) commented