Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Kreator on September 05, 2011, 10:39:17 AM

Title: No Verification images
Post by: Kreator on September 05, 2011, 10:39:17 AM
I wondered why nobody is registering on my Forum, the images for the Verification have mysteriously dissappeared, although You can still listen to them haha!!


Anybody know where these are stored??


Title: Re: No Verification images
Post by: Angelina Belle on September 19, 2011, 02:47:31 PM
In the short term, you could turn off CAPTCHA, but use verification questions.
In the meantime, I will try to get someone who understands this issue to look at your question.
Title: Re: No Verification images
Post by: IchBin™ on September 19, 2011, 03:04:43 PM
Need to see a link to your site. If you don't want it public, send it to me via PM.

The images are in the default theme directory in a folder called fonts. But often times mods installed can cause problems too.
Title: Re: No Verification images
Post by: Aleksi "Lex" Kilpinen on September 20, 2011, 02:06:42 AM
dotan8 seems to have a virus infection....
Title: Re: No Verification images
Post by: emanuele on September 20, 2011, 06:08:22 AM
If it is animanon than remove the three tabs at the beginning of...maybe index.php?

You should have something like:
<?php
while you must have:
<?php
Title: Re: No Verification images
Post by: Aleksi "Lex" Kilpinen on September 20, 2011, 06:17:16 AM
When I checked out those sites in the OPs sig - Animanon seemed to work just fine,
but dotan8 caused my AV to go crazy... So I'd guess there's something inserted in the dotan8 files, causing JS to misbehave on that site...
Title: Re: No Verification images
Post by: emanuele on September 20, 2011, 06:51:08 AM
Well, I disabled the antivirus (and javascript) and dotan8 doesn't even have a forum as far as I can see...there was one a month ago according to google cache, but now is gone.

While going at http://www.animanon.com/Forum3/index.php?action=verificationcode the image is broken. That's why I suggest to check for those tabs, maybe he disabled the image verification since it was not working properly. ;)
Title: Re: No Verification images
Post by: Kreator on September 21, 2011, 08:40:49 AM
Sorry Guys, There is no Forum on Dotan8 somebody has been messing with the html Files and the Site is parked, I have solved the verification Problem with Recapcha , don`t understand the          <?php bit    theres only one opening and a closing one at the end of the index.php file.

Title: Re: No Verification images
Post by: ApplianceJunk on September 21, 2011, 09:02:18 AM
Had the same problem pop up in my forum yesterday and spent a lot of time finding the problem, but with the help of some other SMF members we got it. :)

http://www.simplemachines.org/community/index.php?topic=453072.msg3165413#msg3165413

The verification image seems to have stopped working over night when no changes had been made.
Title: Re: No Verification images
Post by: Angelina Belle on September 21, 2011, 09:20:56 AM
ApplianceJunk, Thanks for the link to your topic.
This was tough for ApplianceJunk, too.
But it seems like, overnight, a bunch of his files were affected by extra carriage returns after the ?>
This caused the problem.
I do not understand whether the files got changed overnight, or his server suddenly got picky about the extra carriage returns overnight.

In any case, he solved the problem by manually editting all the files in his favorite code-ready editor.

It sounds like you may be in the same boat.
Title: Re: No Verification images
Post by: ApplianceJunk on September 21, 2011, 09:39:44 AM
QuoteApplianceJunk, Thanks for the link to your topic.

My pleasure...

I'm still trying to learn just why it happened.

The same spaces show up on my test site I run on a local server, yet the registration verification image shows up on the test site just fine.

Seems to me something changed on the server side over night, but when I contacted my host they said no changes had been made.

I may play around with a fresh install of 2.0.1 and watch for the extra spaces to show up as I install mods I use, just for the fun of it. :)

Edited to add: I realise too regardless of if any changes took place on the server side the space should not be there and I don't believe any changes on the server side caused the spaces.

Also note, it seemed the edit to the index.template.php took care of the registration verification image problem right away. I would edit that one first just to see and then repair the other files.


Title: Re: No Verification images
Post by: Angelina Belle on September 21, 2011, 09:45:30 AM
The change could be as subtle as a single setting, I suppose. Or even a change in the user'your .htaccess file, or other setup-and-initialization files. Or setting changes you may have made from your control panel.

How they got there -- could have something to do with the extract-and-upload method used to install SMF in the first place.
Title: Re: No Verification images
Post by: ApplianceJunk on September 21, 2011, 09:47:55 AM
Quote from: AngelinaBelle on September 21, 2011, 09:45:30 AM
The change could be as subtle as a single setting, I suppose. Or even a change in the user'your .htaccess file, or other setup-and-initialization files. Or setting changes you may have made from your control panel.

How they got there -- could have something to do with the extract-and-upload method used to install SMF in the first place.

So I may never learn why? lol...
Title: Re: No Verification images
Post by: Angelina Belle on September 21, 2011, 10:03:58 AM
You could experiment. You could look unpack a zip file on your PC and see if you  immediately get the extra carriage return.
If so, maybe you want to use different settings on your zip extractor.  Or use a different one.
But that seems implausible -- only SOME of your files were affected.

Perhaps some server setting caused it, when the files were written or editted. You will probably never know.
WHY the server never cared about them before, but does now -- you will probably never know.
Title: Re: No Verification images
Post by: ApplianceJunk on September 21, 2011, 10:15:17 AM
I hate not knowing, lol..
Even if I don't figure out why I may learn something new along the way. :)
Title: Re: No Verification images
Post by: IchBin™ on September 21, 2011, 10:36:13 AM
Did you happen to edit any of the files with those extra spaces or lines? I've seen editors that don't handle the line endings properly add the extra spaces/lines.
Title: Re: No Verification images
Post by: ApplianceJunk on September 21, 2011, 10:48:36 AM
Quote from: IchBin™ on September 21, 2011, 10:36:13 AM
Did you happen to edit any of the files with those extra spaces or lines? I've seen editors that don't handle the line endings properly add the extra spaces/lines.

Can't say I have never edited any of them, but I know that I never edited recaptchalib.php and it got uploaded after the problem showed up because the recaptchalib.php file was from the recaptcha mod I installed so I could use it well I tried to repair the problem with the other registration verification image.

Now I wonder if this problem will show up anytime I install a mod?

Edited to add: sorry IchBin if your question was not for me, as this is not my thread.
Title: Re: No Verification images
Post by: IchBin™ on September 21, 2011, 10:51:06 AM
Well I suppose it could be that the file currently has windows formatted line endings. And when put onto a server (linux) those line endings are treated differently. Maybe test it by taking the recaptchalib.php file and converting the line endings to linux (notepad++ does this), then install that mod into a test install and see if the same problem occurs.
Title: Re: No Verification images
Post by: ApplianceJunk on September 21, 2011, 11:03:29 AM
Quote from: IchBin™ on September 21, 2011, 10:51:06 AM
Well I suppose it could be that the file currently has windows formatted line endings. And when put onto a server (linux) those line endings are treated differently. Maybe test it by taking the recaptchalib.php file and converting the line endings to linux (notepad++ does this), then install that mod into a test install and see if the same problem occurs.

I run a test site with win xp and WAMP and another test sit on my mac with MAMP.
I run the file_check.php on both test sites yesterday and the extra line spaces after ?> showed up on both test site in a lot of files, yet the verification image still worked on each site. But then nether test site had a problem with the index.template.php not ending in ?> like so many other files did.

Both sites run SMF 2.0 and I use them basically to play around with mods before deciding if I want to try them on my live site.

It's like over night the index.template.php on my live site got the extra line space added after the ?> for some reason.

Title: Re: No Verification images
Post by: Angelina Belle on September 21, 2011, 11:53:27 AM
Or else, over night, the server started caring...
Title: Re: No Verification images
Post by: emanuele on September 21, 2011, 02:31:28 PM
Quote from: Kreator on September 21, 2011, 08:40:49 AM
don`t understand the          <?php bit    theres only one opening and a closing one at the end of the index.php file.
Simply be sure that "<?php" is at the beginning of the file and there is no spaces, empty lines or whatever before it. :)

If you want you can use file_check.php (http://www.simplemachines.org/community/index.php?topic=329069.0) to find which file is having problems in that respect.