Hi,

I just upgraded Captcha to 5.2.1 and now it no longer works, it doesn't show any option to use the Textimage module.
Do I have to upgrade Textimage to a CVS version or anything along those lines?

Thanks in advance.

CommentFileSizeAuthor
#6 captcha.inc__1.patch2.17 KBdenney
#4 captcha.inc__0.patch1.75 KBdenney

Comments

jacauc’s picture

Subscribing
http://drupal.org/node/143554

Thanks
jacauc

TumTum-1’s picture

Title: Textimage option not available in 5.2.1 » The Problem is from Textimage
Status: Active » Fixed

The 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

deciphered’s picture

If that's the case then how come Textimage worked with Captcha prior to the 5.x-2.x branch?

denney’s picture

Title: The Problem is from Textimage » Textimage & Captcha integration fix
Project: CAPTCHA » Textimage
Version: 5.x-2.1 » 5.x-1.2
Status: Fixed » Needs review
StatusFileSize
new1.75 KB

OK, 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.

denney’s picture

Upon further testing, the captcha image doesn't get validated properly using my patch. Anyone have any ideas?

denney’s picture

StatusFileSize
new2.17 KB

OK, I've included an updated patch that actually works this time.

jacauc’s picture

Seems 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.

BBP-1’s picture

Hi

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 169

dgrant’s picture

same here...

Fatal error: Cannot use string offset as an array in /var/www/drupal-5.1/sites/localhost.sandbox/modules/captcha/captcha.module on line 169
SqyD’s picture

I had the same problems but that last patch seems to have fixed it for me, thanx!

njwedwards’s picture

Hi,

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

imp_squared’s picture

njwedwards what old version of captcha did you install that worked??

Phezz’s picture

I 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.

stella’s picture

I'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.

drewish’s picture

it 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.

wundo’s picture

Assigned: Unassigned » wundo
wundo’s picture

Status: Needs review » Needs work

@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. ;)

yueyuezhou’s picture

ALWAYS GET
The image verification code you entered is incorrect.

yueyuezhou’s picture

CASE ISSUE:

$captcha_word = drupal_strtolower($form_item['#post']['captcha_response']);

WORKING NOW

Anonymous’s picture

It 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.'));

Anonymous’s picture

With 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

transistorized’s picture

#19 and #6 together worked for me.

Paul Natsuo Kishimoto’s picture

Subscribing.

drewish’s picture

grab the 5--3 branch. it's working much better.

Paul Natsuo Kishimoto’s picture

@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?

Paul Natsuo Kishimoto’s picture

Update: 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!

Anonymous’s picture

Well..

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.

robloach’s picture

Could you guys put a note in the page stating that it's deprecated and forward them to the new version of Captcha?

wundo’s picture

Status: Needs work » Fixed

done

Anonymous’s picture

Status: Fixed » Closed (fixed)