Welcome, Guest

CAPTCHA image is not working...
(1 viewing) (1) Guest

TOPIC: CAPTCHA image is not working...

CAPTCHA image is not working... 2 years, 2 months ago #10042

I can add CAPTCHA to my form but the picture doesn't show. I'm getting 1-2 spam registrations a day & would like to stop them. Email works just fine... I get these registrations.

USING: BreezingForms 1.6.5 Stable (build 723) [Trinity]

NO SERVER ERRORS: "Your CGI error log is currently empty." It is turned on.

I viewed the other thread & tried the suggestions there, but with no better results.

ONE: TTF is supported/enabled:
'./configure' '--prefix=/usr/local/lib/php-5.2.4' '--without-apache' '--with-mysql=/usr' '--with-mysqli' '--with-gd' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-tiff-dir=/usr' '--disable-debug' '--enable-discard-path' '--enable-inline-optimization' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-memory-limit' '--with-regex=system' '--with-zlib' '--enable-ftp' '--enable-sockets' '--enable-magic-quotes' '--with-gettext' '--enable-wddx' '--with-gdbm' '--with-db4' '--with-freetype-dir=/usr' '--with-curl=/usr' '--with-mhash' '--with-xsl' '--enable-calendar' '--with-mcve' '--with-dom' '--with-iconv' '--with-xmlrpc' '--with-mcrypt' '--with-bzip2' '--with-ming=/usr' '--with-pspell' '--with-openssl' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--with-imap' '--with-kerberos' '--with-imap-ssl' '--enable-bcmath' '--enable-dbase' '--enable-exif'


TWO: I changed:

JROOT/components/com_facileforms/images/captcha/securimage.php

Browse to around line 144 and change this code:
var $use_gd_font = false;

to this
var $use_gd_font = true;

It created errors in my CGI error log & didn't make the CAPTCHA work.

THREE: I verified that the permissions were set at 755 for the two ff_secimage.php files.

FOUR: No SEO components are installed.

Here is the link to my form: www.asm-utoledo.org/index.php?option=com...eforms&Itemid=89


Any other suggestions to get this to work?

Thanks,
Kim
  • Profitweb
  • OFFLINE
  • Junior Boarder
  • Posts: 21
  • Karma: 0
Last Edit: 2 years, 2 months ago by Profitweb.

Re: CAPTCHA image is not working... 2 years, 2 months ago #10043

Hi,

I need see the errors from your error logs.

However, I got a lead.

If you compare the captcha output from your site with the one at crosstec.de, you'll see that the crosstec one is a lot larger.
So I guess your script stops for some reason. Hope the reason why is stated in your logs (also try looking for php error log):

Crosstec:
crosstec.de/ff_secimage.php?option=com_f...s&bfCaptcha=true

Your site:
asm-utoledo.org/ff_secimage.php?option=c...s&bfCaptcha=true

Regards,
Markus
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
Last Edit: 2 years, 2 months ago by TheMuffinMan.

Re: CAPTCHA image is not working... 2 years, 2 months ago #10044

Which error logs? PHP errors usually show up on my server error log or in the Joomla "Configuration File" area. I cleared the server error log & haven't been able to get any new errors. I've looked all through all of the Joomla system info tabs & everything looks good, all green, no errors listed.

Is there someplace else I need to look?
  • Profitweb
  • OFFLINE
  • Junior Boarder
  • Posts: 21
  • Karma: 0

Re: CAPTCHA image is not working... 2 years, 2 months ago #10045

Hi,

you mentioned this previously:

"It created errors in my CGI error log"

I would like to see at least these errors.
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================

Re: CAPTCHA image is not working... 2 years, 2 months ago #10046

Hmmmm, I guess that wasn't how I produced an error.

I changed
  var $use_gd_font = true;

to
  var $use_gd_font = false;

Now the the page is showing the full list: asm-utoledo.org/ff_secimage.php?option=c...&bfCaptcha=false

However, Captcha is still not showing on the form page. I refreshed the server CGI Error Log but it's not showing any errors.

I turned on debugging mode in Joomla. I'm not sure if that gives any useful information to you.
  • Profitweb
  • OFFLINE
  • Junior Boarder
  • Posts: 21
  • Karma: 0
Last Edit: 2 years, 2 months ago by Profitweb. Reason: added last line

Re: CAPTCHA image is not working... 2 years, 2 months ago #10048

Hi,

I found out that the reason must be a server issue. If you download the image straigt from the url into a file and open it in a text or hex editor, you'll see that the binary data is broken. Bf itself flushes the binary data and sets the correct header declaration. So there is no issue.

I attached you two files for you to compare and analyze.

I currently don't know what could cause this, but it really seems to be sort of webserver issue. So if you find the time, please check for similar issues on the web as well (and maybe asking your host if they know about such a behaviour).

I will try find an answer as well.

File Attachment:

File Name: captcha_issue.zip
File Size: 7862
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
Moderators: TheMuffinMan, ForumSupport
Time to create page: 1.88 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany