News:

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

Main Menu

cannot see the picture, that is required to type in the verification... ?

Started by ApplianceJunk, September 20, 2011, 08:36:03 AM

Previous topic - Next topic

rocknroller

in template files on theme you are using on forum, there should not be any empty space or line at the end of the document, after that ?>

ApplianceJunk

QuoteIt's a good thing to ask your host if he has made any changes overnight.

I have asked and await there reply.

ApplianceJunk

Quote from: rocknroller on September 20, 2011, 11:30:34 AM
in template files on theme you are using on forum, there should not be any empty space or line at the end of the document, after that ?>

Could you please tell me what file and about what line?

BoardIndex.template.php?

rocknroller

all templates inside folder BoardIndex.template.php, index.template.php etc. When you edit the those files, all must end with ?> and after that should not be anything, no character, no space.  ;)

ApplianceJunk

Ok, I run file_check.php and got this.

I have never touched most of them files, so what's the deal with them saying...  File does not end with ?>

Do I need to manually edit all them files now?

QuoteSMF File Checker Utility
Below are the results of the scan

    /home/applianc/public_html/forums/mobiquo/xmlrpcresp.php
        File does not end with ?>

    /home/applianc/public_html/forums/mobiquo/mobiquo_action.php
        File does not end with ?>

    /home/applianc/public_html/forums/mobiquo/upload.php
        File does not end with ?>

    /home/applianc/public_html/forums/mobiquo/mobiquo_common.php
        File does not end with ?>

    /home/applianc/public_html/forums/mobiquo/env_setting.php
        File does not end with ?>

    /home/applianc/public_html/forums/mobiquo/server_define.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/ChessAdmin.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/Subs-Beer.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/TPortalAdmin.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/TPhelp.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/alexa.php
        File does not begin with <?php

    /home/applianc/public_html/forums/Sources/TreasuryUpdate.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/recaptchalib.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/TPmodules.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/Chess.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/Referrals.php
        File does not end with ?>

    /home/applianc/public_html/forums/getid3/getid3.php
        File does not end with ?>

    /home/applianc/public_html/forums/wysiwyg/whizzypic.php
        File does not end with ?>

    /home/applianc/public_html/forums/FCKeditor/editor/filemanager/browser/default/connectors/php/commands.php
        File does not end with ?>

    /home/applianc/public_html/forums/FCKeditor/editor/filemanager/browser/default/connectors/php/config.php
        File does not end with ?>

    /home/applianc/public_html/forums/FCKeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/dilbermc/languages/Settings.russian.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/Chess.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/ChessCustom.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPdlmanager.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPteampage.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/index.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPlinkmanager.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPprofile.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/Login.german.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/index.dutch.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/Errors.spanish.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/index.spanish.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/TPmodules.english.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/index.german.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/TreasuryHelp.english-utf8.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/Errors.german.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/Chess.english.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/Modifications.spanish.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/Login.dutch.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/Login.spanish.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/ChessXml.english.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/Errors.dutch.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/TreasuryHelp.english.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/ChessAdmin.english.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPgallery.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPgalleryAdmin.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPortalAdmin.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPdladmin.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPlinkAdmin.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/ChessAdmin.template.php
        File does not end with ?>


Joker™

Quote from: rocknroller on September 20, 2011, 11:50:50 AM
all templates inside folder BoardIndex.template.php, index.template.php etc. When you edit the those files, all must end with ?> and after that should not be anything, no character, no space.  ;)
I've attached file_check.php in my previous replies which do the exact task :).


Quote from: ApplianceJunk on September 20, 2011, 12:16:43 PM
Ok, I run file_check.php and got this.

I have never touched most of them files, so what's the deal with them saying...  File does not end with ?>

Do I need to manually edit all them files now?
Open those files one by one and see if you are having ?> at the end of the files. Yes you have to edit them manually.

Can you attach any of those files here before editing them?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

ApplianceJunk

QuoteOpen those files one by one and see if you are having ?> at the end of the files. Yes you have to edit them manually.

Can you attach any of those files here before editing them?

Lets look at the recaptchalib.php that is in the file_check.php list as I believe this file just got added this morning when I installed the recaptcha mod.

I have attached a copy and when I looked at it there seems to be a ?> at the end of the file, correct?




Joker™

Quote from: ApplianceJunk on September 20, 2011, 12:27:33 PM
I have attached a copy and when I looked at it there seems to be a ?> at the end of the file, correct?
But what about the line space after the ending delimiter ?>.

- Remove that line space from the file
- Re-upload the file
- Run file_check.php  again to see if there is any change in the result regarding this file.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

ApplianceJunk

line space?
I just must not understand what your talking about, sorry.

My cursor seems to end at the ?>


Illori


Joker™

Try this file and run file_check.php after uploading it.

Try to use notepad++.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

ApplianceJunk

I'm on a Mac, notepad++ won't work for me.

I could not see the line space with TextWrangler, but could see it with Dreamweaver.

Anyway I removed the line space and uploaded the file again then ran file_check.php.

Seems it removed it from the list, new list is here....

So is there something that added all these line spaces to all these files or what?

Seems like a lot of files I have to manually edit and many of them I don't even use, they are from old mods that I never reinstalled from SMF 1.1.14

QuoteSMF File Checker Utility
Below are the results of the scan

    /home/applianc/public_html/forums/mobiquo/xmlrpcresp.php
        File does not end with ?>

    /home/applianc/public_html/forums/mobiquo/mobiquo_action.php
        File does not end with ?>

    /home/applianc/public_html/forums/mobiquo/upload.php
        File does not end with ?>

    /home/applianc/public_html/forums/mobiquo/mobiquo_common.php
        File does not end with ?>

    /home/applianc/public_html/forums/mobiquo/env_setting.php
        File does not end with ?>

    /home/applianc/public_html/forums/mobiquo/server_define.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/ChessAdmin.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/Subs-Beer.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/TPortalAdmin.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/TPhelp.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/alexa.php
        File does not begin with <?php

    /home/applianc/public_html/forums/Sources/TreasuryUpdate.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/TPmodules.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/Chess.php
        File does not end with ?>

    /home/applianc/public_html/forums/Sources/Referrals.php
        File does not end with ?>

    /home/applianc/public_html/forums/getid3/getid3.php
        File does not end with ?>

    /home/applianc/public_html/forums/wysiwyg/whizzypic.php
        File does not end with ?>

    /home/applianc/public_html/forums/FCKeditor/editor/filemanager/browser/default/connectors/php/commands.php
        File does not end with ?>

    /home/applianc/public_html/forums/FCKeditor/editor/filemanager/browser/default/connectors/php/config.php
        File does not end with ?>

    /home/applianc/public_html/forums/FCKeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/dilbermc/languages/Settings.russian.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/Chess.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/ChessCustom.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPdlmanager.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPteampage.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/index.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPlinkmanager.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPprofile.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/Login.german.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/index.dutch.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/Errors.spanish.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/index.spanish.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/TPmodules.english.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/index.german.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/TreasuryHelp.english-utf8.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/Errors.german.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/Chess.english.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/Modifications.spanish.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/Login.dutch.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/Login.spanish.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/ChessXml.english.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/Errors.dutch.php
        File does not begin with <?php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/TreasuryHelp.english.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/languages/ChessAdmin.english.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPgallery.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPgalleryAdmin.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPortalAdmin.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPdladmin.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/TPlinkAdmin.template.php
        File does not end with ?>

    /home/applianc/public_html/forums/Themes/default/ChessAdmin.template.php
        File does not end with ?>


Illori

textwrangler does show the empty line you need to actually use your cursor to go down a line and it shows it

ApplianceJunk

Quote from: Illori on September 20, 2011, 12:42:39 PM
textwrangler does show the empty line you need to actually use your cursor to go down a line and it shows it

Ok, guess I need to learn how to use text wrangler better.

Just for the heck of it I went to my test site I have on a local machine. It's SMF 2.0 and I use it to play around with installing mods to see how they work before I try them on my live site. I run file_check.php on it and again come back with a lot of.... 'File does not end with ?>' yet the registration verification image still shows up on the test site.

So what's with all the line spaces and you think all these line spaces are causing the registration verification image not to show up?

In any case I need to go through each file and manually edit it correct? Just want to make sure as it's going to take me sometime, lol...

I find this frustrating, yet interesting and kind of fun. A learning experience for sure...

Thanks,

Illori

it may have a part in the issue, but it may not be the cause of the problem. also take a look at http://stackoverflow.com/questions/2332/how-do-i-turn-on-line-numbers-by-default-in-textwrangler-on-the-mac which will make the empty lines more visible

ApplianceJunk

Line numbers help, thanks!

My host also got back to me and said...

Quote
Hello,

We have not done any changes on the server, everything remains as it was. We also didn't get any complaint from other customers on the server.

and being someone may ask later I will just say now. ;)
My host is MonteCarloHosting and they replied quickly this morning as always.

So I will start to edit files and report back, thanks again for all the help.

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

ApplianceJunk

Ok, most of the edits have been just removing line space or adding ?> at the end..

With the whizzypic.php file it ends like this.

function insensitive($a, $b) { //used by usort to sort file list case insensitive -------------------------
   return strcmp(strtolower($a), strtolower($b));
}

?>
</div>

</body>
</html>


Do I just delete the ?> that is there now and move it to the end?


Illori

that is not a default smf file, since as such i dont think i can answer that question.

ApplianceJunk

Quote from: Illori on September 20, 2011, 02:15:22 PM
that is not a default smf file, since as such i dont think i can answer that question.

forums/wysiwyg/whizzypic.php

It's not something to do with the WYSIWYG editor from when you create a post?

Advertisement: