Jump to content
xisto Community
donna

T-string Errors Installing Captcha

Recommended Posts

I keep getting this error when trying to install Captcha:Parse error: syntax error, unexpected T_STRING in /home/krausede/public_html/modules/captcha.module on line 39Here's line 39:captchas = new CaptchasDotNet ('demo', 'secret',Any help?

Share this post


Link to post
Share on other sites

you need a $ sign infront of captchas so it is $captchas. also you need to properly end CaptchasDotNet ('demo', 'secret'); if it requires more parameters then do so but I don't know the full signature o f that function.

Share this post


Link to post
Share on other sites

Can you post some more code, please.A couple of lines before and after the one you have posted already. Thanks.

Share this post


Link to post
Share on other sites

you need to properly end CaptchasDotNet ('demo', 'secret'); if it requires more parameters then do so but I don't know the full signature o f that function.

It may be that the rest of the parameters and the closing of the function is on the next line. We don't know until more code is posted as jlhaslip suggested. We shouldn't make assumptions until we know what is going on in the code.

Share this post


Link to post
Share on other sites

It may be that the rest of the parameters and the closing of the function is on the next line. We don't know until more code is posted as jlhaslip suggested. We shouldn't make assumptions until we know what is going on in the code.

Honestly, at this point, the entire captcha script isn't working. I think I need to start from scratch.

Share this post


Link to post
Share on other sites

I know that this link works as an effective captcha.
Try it and let us know if you have any issues with it. We will be able to assit you further if you use this and it fails. It was written by one of our moderators and it works fine.

http://forums.xisto.com/topic/45058-a-simple-php-captcha-image-validation/

All the best.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.