News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Site Verification Not Working

Started by joneill, July 27, 2008, 12:23:17 AM

Previous topic - Next topic

joneill

Hi...this is an upgraded SMF (1.1.2 to 1.1.4) just recently.  Verification was working at one time, but it's no longer working.  Voice works.  I'm a Firefox (3.01) user but it's not working in IE7 either.  I searched for this topic and found many posts.  One resolution was a bad php.ini file (how do I know that's the problem and how do I fix?  Another resolution was to install an advanced verification mod which I tried with the same result...voice but no picture. 

I can see Verification pics on other sites...it's just mine that is not working. 

http://fnfbb.jonathanoneill.com/index.php?action=register [nofollow]

The sub-domain (i.e. fnfbb.jonathanoneill.com [nofollow]) would not cause this problem, would it?

Thanks in advance!
JPO

ccbtimewiz

Any errors in the error log?
What version of PHP is running on your host?

N3RVE

Welcome joneill :)

There was a workaround in Bug #1247: imagettftext() doesn't work well with results from imagecreate() in some server setups (Subs-Graphics.php), but that might not be the problem since it worked previously but trying this won't hurt.

Download ./Sources/Subs-Graphics.php via FTP (How do I use FTP? / What is FTP?)
Code (Find) Select

$can_do_ttf = function_exists('imagettftext');

Code (Replace with) Select

$can_do_ttf = false;



If that doesn't help, you'll have to go through the PHP files in your SMF installation to see which file has either an extra space before the opening tag (<?php) or an extra space after the closing tag (?>). Pretty painful as it could be any file, but you should start with the fol.
  • index.php
  • Settings.php
  • Sources/Load.php
  • Sources/QueryString.php
  • Sources/Subs.php
  • Sources/Subs-Graphics.php
  • Themes/default/languages/index.english.php
  • Themes/default/languages/Modifications.english.php
Remember <?php and ?> should be on the first and last lines respectively.


Aditionally, We find that CAPTCHA not working is usually due to one of the fol.
  • Improper method of ad code/miscellaneous code insertion
  • Missing /languages/fonts and its contents, or not being able to read them
  • Invalid coding used in themes which causes javascript errors.

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

joneill

Quote from: ccbtimewiz on July 27, 2008, 11:11:05 AM
Any errors in the error log?
What version of PHP is running on your host?

Ah...I updated it to 5.0 w/ Fast(CGI) it it's working fine.

Thanks for your help...just glad I don't have to go looking for spaces in PHP code!!! 

If it matters for others, this was the error my log had (sorry for not checking first).  I think it's related but someone more sophisticated than I can confirm or deny.

[21-Jul-2008 21:29:11] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/jonatha4/public_html/gallery/lib/adodb/drivers/adodb-mysql.inc.php on line 366

DJ_Kukky

@[n3rve]

Hi!
I have 1.1.5, and suddenly my captcha stopped working..

It doesnt work on registration, or when Guest is trying to post, or in admin menu > registration > sample image..

before, picture and sound was ok, but now both doesn't work.

I have few mods and something code hacks by me, but nothing should affect to captcha..

when it tries to generate image, i get Error 400.

Server is OK, and other script can normaly generate image..

also, all you have wrote in last post, i have tried,  (i had removed some spaces between ?> and EOF), but it still doesnt work

can somebody help to debug my forum.., where else i should look for error.. ?
Hrvoje Kusulja
Techno rulez !!!!
Kusulja.com | Forum - Domeka | DJ_Kukky

N3RVE

Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

DJ_Kukky

hmm, thnx ..., but i tried:
- change forum theme to default
- use repair_settings.php
but nothing :( .. image verficiation still doesn't work...
neither on admin>registrarion settings , nor registration form nor guest posters.... :(

anything else ?
Hrvoje Kusulja
Techno rulez !!!!
Kusulja.com | Forum - Domeka | DJ_Kukky

N3RVE

Quote from: [n3rve] on August 06, 2008, 08:36:06 AM
Quote from: [n3rve] on August 04, 2008, 11:07:50 AM
Welcome :)

There was a workaround in Bug #1247: imagettftext() doesn't work well with results from imagecreate() in some server setups (Subs-Graphics.php), but that might not be the problem since it worked previously but trying this won't hurt.

Download ./Sources/Subs-Graphics.php via FTP (How do I use FTP? / What is FTP?)
Code (Find) Select

$can_do_ttf = function_exists('imagettftext');

Code (Replace with) Select

$can_do_ttf = false;



If that doesn't help, you'll have to go through the PHP files in your SMF installation to see which file has either an extra space before the opening tag (<?php) or an extra space after the closing tag (?>). Pretty painful as it could be any file, but you should start with the fol.
  • index.php
  • Settings.php
  • Sources/Load.php
  • Sources/QueryString.php
  • Sources/Subs.php
  • Sources/Subs-Graphics.php
  • Themes/default/languages/index.english.php
  • Themes/default/languages/Modifications.english.php
Remember <?php and ?> should be on the first and last lines respectively.


Aditionally, We find that CAPTCHA not working is usually due to one of the fol.
  • Improper method of ad code/miscellaneous code insertion
  • Missing /languages/fonts and its contents, or not being able to read them
  • Invalid coding used in themes which causes javascript errors.

-[n3rve]



After trying the above and you can't get SMF's built-in CAPTCHA to work, try Motoko-Chan's reCAPTCHA plugin.

It's really hard to say what could be causing the problems with CAPTCHA, as there are numerous different issues that could cause it to not work.

-[n3rve]

Try reCaptcha ;)

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

DJ_Kukky

Quote from: [n3rve] on September 03, 2008, 06:25:24 AM
Try reCaptcha ;)
heh, i saw that, and was thinking about that.., but i don't want to register, and use remote pictures.., so recaptcha is not my option...

i just want to fix captcha that is integrated into smf..
Hrvoje Kusulja
Techno rulez !!!!
Kusulja.com | Forum - Domeka | DJ_Kukky

N3RVE

Please confirm that $boarddir/Themes/default/fonts exists and contains the same set of files as the default SMF 1.1.5 package. You can also check the files are readable using chmod. See: How do I chmod? / what is chmod?

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

DJ_Kukky

ok, thank you..
a have deleted fonts directory before, beacous I though that it is unusefull becaouse i use only one another theme..

no when i have restored fonts directory ..., in admin > registration  > settings..., when it is captcha disabled.. i have one picture (big cross X over the picture), so i think we had a progress :)

but when i change to very simple, medium, or whatever.., still i don't get picture..., (i think that timeout is now for that file)
but the good news is that "Listen the letters" now works....

so.. what else should i try to get captcha normaly working ...
Hrvoje Kusulja
Techno rulez !!!!
Kusulja.com | Forum - Domeka | DJ_Kukky

N3RVE

Is this your forum?
Captcha shows the image fine :)

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

DJ_Kukky

no, this is the other one, that i have...

http://forum.tvzino.net is my forum..., captcha is currently turned off, because i need new members...
Hrvoje Kusulja
Techno rulez !!!!
Kusulja.com | Forum - Domeka | DJ_Kukky

sevalo

Quote from: [n3rve] on September 04, 2008, 01:16:50 PM
Is hxxp:forum.domeka.net/index.php [nonactive] your forum?
Captcha shows the image fine :)

-[n3rve]
i'll try make my own forum
hxxp:steventa.com/Community/index.php?action=register [nonactive]

but the problem is same...the visual verification image was not shown..
i want to try use recaptcha..but at admin->registration->setting..
Theres no option to use recaptcha..please help me...


N3RVE

If you have issues with reCaptcha, see the support topic.
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

Advertisement: