Forums

imageverification not showing

Fyona 21 Feb, 2010
Please help!
My imageverification is not showing. I even tried the FAQ #31 still not working. I also uninstall and install the component but still the image verification is not showing.
GreyHead 21 Feb, 2010
Hi Fyona,

Please post a link to the form.

Bob
GreyHead 22 Feb, 2010
Hi Fyona,

I think this is robably a permission problem - possibly related to site security. See the messaage here. I'd suggest that you check your server logs for error messages and and talk to your ISP.

Alternatively, the ReCaptcha version should work OK.

Bob
Fyona 22 Feb, 2010
How to use the Recaptcha in the chronoform?
nml375 22 Feb, 2010
Hi Fyona & Bob,
Checking the URL of the image yields a damaged png-image. There seems to be 4 newline characters in the beginning of the file, which messes up the magic number of the image, and browsers don't recognize it as a png-image. Headers appear to be sent properly, so the newlines would have to be injected inbetween the last header() command and the imagepng() command within the chrono_verification.php script, or the GD library on the system is severely broken.

/Fredrik
Fyona 22 Feb, 2010
Hello,
What are the new lines I need to inject to fix this problem?
nml375 22 Feb, 2010
Hi Fyona,
Sorry, but I belive you misunderstood me. The image_verification.php script adds newlines that should not be there. Adding more newlines will not fix the issue.

Actually, as I look further, these extra newlines seem to appear on pretty much any php-script on the server, suggesting there's an automatic header being included. More specifically, the auto_prepend_file php.ini directive appears to be set and in action.

Using the system-info menu option of your site administration, select the PHP Information link, and look for auto_prepend_file and auto_append_file. Please post the value of both once you've found them.

/Fredrik
Fyona 22 Feb, 2010
Hi,
I found it and both don't have any value.
nml375 22 Feb, 2010
Hi,
Then I am running low on ideas. At best I can suggest getting in touch with your server admin, and see if they can help track down the source of those newlines. But for now, you'll have to go with the ReCaptcha instead.

The ReCaptcha CF-plugin is fairly well-documented. Check the box next to your form in the Form Manager, and click the ReCaptcha Verification link to the left. Read the instructions on the Help-tab (regarding obtaining your own key for reCaptcha, etc). This also includes details on how to use the {recaptcha} placeholder in your form code.

Once done, save and head back to the Form Manager, and edit your form (so that you can add the {recaptcha} to your form code). Then head off to the Plugins-tab, and enable (green bar with a red cross) the recaptcha plugin. Next head to the Anti Spam-tab and disable image verification. Finally save your form, and see if everything works the way it should.

/Fredrik
nml375 22 Feb, 2010
Hi Fyona,
It would seem you forgot to enable the ReCaptcha CF-plugin on the plugin-tab. Enabled state is a green bar with a red cross.

/Fredrik
Fyona 22 Feb, 2010
Okay recaptcha is showing problem is when I test it it give me error

The reCAPTCHA wasn't entered correctly. Go back and try it again
( reCAPTCHA said: incorrect-captcha-sol )

Did I miss something?
nml375 22 Feb, 2010
This seems to be an issue with mismatched tags, as the ReCaptcha entity is placed entirely outside the form, when analysed in FireBug.

It seems you've tried to embed the Recaptcha into a wizard element? There's a label saying "Message:*" in front of it..

Try adding the {ReCaptcha} token outside any <div class="form_item">...</div> structures.. Kind of like below:
...
 </div>
 <div class="cfclear"> </div>
</div>

{ReCaptcha}

<div class="form_item">
 <div class="form_element cf_button">
...


/Fredrik
Fyona 22 Feb, 2010
You're the man!!:) It's working fine now thank you so much Fredrick
This topic is locked and no more replies can be posted.