TinyPortal

General => Chit chat => Topic started by: keith021773 on October 04, 2006, 01:22:04 PM

Title: blank screen, have to hit refresh
Post by: keith021773 on October 04, 2006, 01:22:04 PM
Hey all.    Since this has to do with SMF I posted first at the SMF site, but as you know sometimes they don't reply .  :)     I have read and learned alot from this site and I thought that I would post my question here.   If it isn't in the right board, please move for me.

I am running SMF 1.1rc2 and TP .9.5.   Anyway, for a long time now when you click on a topic, board whatever link it sometimes takes you to a white blank screen and you have to hit refresh to get it to load right.    Have any of you seen this?  And if so, did you fix it and how?    Yes, I have quite a few mods installed but if my memory serves me right, it has been doing this for quite sometime.   Anyway, if someone has encountered this problem before and fixed it, please tell me what you did..   Thanks for your time.

Keith
Title: Re: blank screen, have to hit refresh
Post by: IchBin on October 04, 2006, 02:17:58 PM
I've never seen that before myself. Do you get any errors in your log? I would maybe setup a test install on the same server and see if it does the same thing while browsing through it.
Title: Re: blank screen, have to hit refresh
Post by: keith021773 on October 04, 2006, 03:09:09 PM
I get these all the time, just thought they might be "normal"  LOL

8: Undefined variable: modSettings
File: /home/XXXXXXX/public_html/forums/Themes/default/languages/Post.english.php (main_below sub template - eval?)
Line: 540

8: Undefined variable: modSettings
File: /home/XXXXXXX/public_html/forums/Themes/default/sbox.template.php (main_below sub template - eval?)
Line: 540

8: Undefined variable: modSettings
File: /home/XXXXXXX/public_html/forums/Themes/default/Recent.template.php (main_below sub template - eval?)
Line: 540

8: Undefined variable: modSettings
File: /home/XXXXXXX/public_html/forums/Themes/default/languages/Who.english.php (main_below sub template - eval?)
Line: 540

8: Undefined variable: modSettings
File: /home/XXXXXX/public_html/forums/Themes/default/languages/Ignore.english.php (main_below sub template - eval?)
Line: 540

Notice they all say line 540 and in different ???.english.php files.   Also, it happens to every member and guests.   Does this look bad?   LOL      Thanks for your help.
Title: Re: blank screen, have to hit refresh
Post by: IchBin on October 04, 2006, 03:17:36 PM
They aren't normal lol. I guess it could be that the error access the database to store the errors. Are you getting a ton of errors/pages? The errors you showed are probably from one of the mods that you have installed. Hard to say exactly what though.
Title: Re: blank screen, have to hit refresh
Post by: keith021773 on October 04, 2006, 03:21:00 PM
Yes..  alot of errors..     How is it that they are all on line 540?  and how do I find line 540?   This has to be worked out because it is bugging the crap out of me.   LOL
Title: Re: blank screen, have to hit refresh
Post by: G6Cad on October 04, 2006, 03:24:13 PM
Those are all language strings errors from diffrent mods installed :)
Look in your modsettings.engligh.php and see if you have the strings there for the mods you have installed, if it it doesent have files in it, maby check the mods you have installed (XML or MOD files) and look for what code the mod add strings to that file, and then copy them in to the modesttings.english.php manually :)
Title: Re: blank screen, have to hit refresh
Post by: keith021773 on October 04, 2006, 03:28:55 PM
Quote from: Mrs G6 on October 04, 2006, 03:24:13 PM
Those are all language strings errors from diffrent mods installed :)
Look in your modsettings.engligh.php and see if you have the strings there for the mods you have installed, if it it doesent have files in it, maby check the mods you have installed (XML or MOD files) and look for what code the mod add strings to that file, and then copy them in to the modesttings.english.php manually :)

Boy of boy that will take awhile.   LOL   I don't think it was always like that.    Hmm..   Mrs. G6, do you think that TP would've done that?  If you can remember, you helped me get TP blocks working with my blue theme.    So, do you think that is it?
Title: Re: blank screen, have to hit refresh
Post by: G6Cad on October 04, 2006, 03:32:02 PM
I know TP are not the cause, What other mods do you have installed ?
Title: Re: blank screen, have to hit refresh
Post by: keith021773 on October 04, 2006, 03:40:32 PM
I big long list.   I was gonna clear some out the other day and see if that was the cause but almost everyone of them that I tried to delete gave me error messages, so I just left them..  I don't want to have to start over.  :)    But you asked for the list..    Here goes.   :)

1.     Integrated Chat     2.6     [ Uninstall ]
2.    Googlebot & Spiders Mod    1.0.5    [ Uninstall ]
3.    Users Online Today Mod    1.3.1    [ Uninstall ]
4.    Streaming 4.2.1b    4.2.1b    [ Uninstall ]
5.    Ad Managment    2.0    [ Uninstall ]
6.    Ultimate Shoutbox    1.33    [ Uninstall ]
7.    SMF Shoutbox    1.04    [ Uninstall ]
8.    SMFShop    2.1    [ Uninstall ]
9.    Shop Item: Change Display Name CSS    0.1    [ Uninstall ]
10.    SMF Arcade    1.3.0-MOD    [ Uninstall ]
11.    Ignore user    1.2    [ Uninstall ]
12.    Reg Bar    1.0    [ Uninstall ]
13.    SMF 1.0.7 / 1.1 RC2 Update    1.0    [ Uninstall ]
14.    Contact Page    1.0    [ Uninstall ]
15.    SMF Staff Page    1.2    [ Uninstall ]
16.    SMF Links    1.1    [ Uninstall ]
17.    PM On Registration    1.0.2    [ Uninstall ]
18.    RSS Feed Icon    1.0    [ Uninstall ]
19.    MySpace Field    1.0    [ Uninstall ]
20.    YouTube BBCode by Yakuza    0.2    [ Uninstall ]
21.    Spoiler Tag    0.2.5    [ Uninstall ]
22.    SMFShop 2.1 to 2.2 Update    2.2    [ Uninstall ]
23.    SMF Archive    1.1    [ Uninstall ]
24.    Global Announcements    1.0    [ Uninstall ]
25.    Country Flags    1.0.1    [ Uninstall ]
26.    SMF 1.1 RC2 Security Patch - 2    1.1 RC2    [ Uninstall ]
27.    EmailFlash    1.0    [ Uninstall ]
28.    TinyPortal    0.95    [ Uninstall ]
29.    audiblepm 1    1.0    [ Uninstall ]
30.    SMF Gallery Lite    1.0    [ Uninstall ]
31.    SMF Radio    0.5.2
Title: Re: blank screen, have to hit refresh
Post by: G6Cad on October 04, 2006, 03:44:52 PM
And i thought my head was a mess.......

Well, now you will have some work ahead of you ;)

Download all the mods to your local PC from the modsites you got them from.
Open them up one by one, look in the XML file or the MOD file in the package, Look for what code the mod want to add in the modesettings.english.php, and then add that code manually to your modsettings.english.php file in your Themes/Default/language folder.

Then when you have checked all the mods through, Look in the other themes/language/ you have installed and copy over the file from the default theme and you shoul be good :)

Wee you in a week when you are done  :D
Title: Re: blank screen, have to hit refresh
Post by: IchBin on October 04, 2006, 03:45:59 PM
 :o  :o

Wow... Certainly one of those mods is causing it. And I don't think they are language errors. Look at the error G6. Undefined variable: modSettings
Title: Re: blank screen, have to hit refresh
Post by: keith021773 on October 04, 2006, 03:50:24 PM
Quote from: Mrs G6 on October 04, 2006, 03:44:52 PM
Wee you in a week when you are done  :D

Beleive me, I wish I could just delete some of them..   I try and most of them gives me an error with modifications.english.php.   Is that such a bad thing or can I go ahead and delete it?    Probably not, but I thought I would ask.
Title: Re: blank screen, have to hit refresh
Post by: Ciinien on October 04, 2006, 04:18:13 PM
Keith, I feel Mrs. G6 is correct in what she's telling you. And I would further surmise that it might be Shoutbox that is the root of the problem (one error refers to sbox, another to Recent Posts, and others to one language file or the other).

If you have a code editor in which you can turn on line numbering, the offensive modSettings variable should be at, or within a line or so up or down, from line 540. Researching this in the langauge files, you can search for that variable setting and when found, it might at least show you the $txt[number] of the replacement string it can't find. You can then do another search on that specific $txt[number] and see if it's missing and that is why the mod cannont find it.

Language files are used primarily for being a simple and more elegant way to replace text easily and on a consistent basis without always having to change the codebase itself as you write; think of them kind of like very specialized *.dll files in a Windoze setting. Language files are kind of like using the "Fusebox" plug-in when writing Cold Fusion markup (did that just give away my ancientness? rofl). They just contain routines, in this case text replacements, that are called up as needed in a code temeplate.

Anyway, check out the mods, like Mrs. G6 advised, and see if you can insert a few text substitutions in the language files mentionedto make your mods happy again. I am willing to wager the this particular set of errors goes away if you can manage to do that. Hope I haven't confused the issue even more...   :knuppel2:

Cheers!
Ci
Title: Re: blank screen, have to hit refresh
Post by: IchBin on October 04, 2006, 04:49:03 PM
Again I will say, it's not a missing text string. Its missing a VARIABLE! :)

The error is undefined variable modsettings

So in other words, the variable is being used somewhere, probably in the index.template.php file if you ask me. And it is not defined anywhere. So when PHP goes looking for $modsettings its not finding it.

Adding $modsettings to the global may fix it. Check all the functions and make sure if they are using $modsettings in them that they declare global $modsettings; in the top of the function. I hope I make sense here. lol
Title: Re: blank screen, have to hit refresh
Post by: Xarcell on October 05, 2006, 03:57:49 AM
Quote from: keith021773 on October 04, 2006, 03:40:32 PM
I big long list.   I was gonna clear some out the other day and see if that was the cause but almost everyone of them that I tried to delete gave me error messages, so I just left them..  I don't want to have to start over.  :)    But you asked for the list..    Here goes.   :)

1.     Integrated Chat     2.6     [ Uninstall ]
2.    Googlebot & Spiders Mod    1.0.5    [ Uninstall ]
3.    Users Online Today Mod    1.3.1    [ Uninstall ]
4.    Streaming 4.2.1b    4.2.1b    [ Uninstall ]
5.    Ad Managment    2.0    [ Uninstall ]
6.    Ultimate Shoutbox    1.33    [ Uninstall ]
7.    SMF Shoutbox    1.04    [ Uninstall ]
8.    SMFShop    2.1    [ Uninstall ]
9.    Shop Item: Change Display Name CSS    0.1    [ Uninstall ]
10.    SMF Arcade    1.3.0-MOD    [ Uninstall ]
11.    Ignore user    1.2    [ Uninstall ]
12.    Reg Bar    1.0    [ Uninstall ]
13.    SMF 1.0.7 / 1.1 RC2 Update    1.0    [ Uninstall ]
14.    Contact Page    1.0    [ Uninstall ]
15.    SMF Staff Page    1.2    [ Uninstall ]
16.    SMF Links    1.1    [ Uninstall ]
17.    PM On Registration    1.0.2    [ Uninstall ]
18.    RSS Feed Icon    1.0    [ Uninstall ]
19.    MySpace Field    1.0    [ Uninstall ]
20.    YouTube BBCode by Yakuza    0.2    [ Uninstall ]
21.    Spoiler Tag    0.2.5    [ Uninstall ]
22.    SMFShop 2.1 to 2.2 Update    2.2    [ Uninstall ]
23.    SMF Archive    1.1    [ Uninstall ]
24.    Global Announcements    1.0    [ Uninstall ]
25.    Country Flags    1.0.1    [ Uninstall ]
26.    SMF 1.1 RC2 Security Patch - 2    1.1 RC2    [ Uninstall ]
27.    EmailFlash    1.0    [ Uninstall ]
28.    TinyPortal    0.95    [ Uninstall ]
29.    audiblepm 1    1.0    [ Uninstall ]
30.    SMF Gallery Lite    1.0    [ Uninstall ]
31.    SMF Radio    0.5.2

No offense, but geez.... have fun sorting that one out.  :up:
Title: Re: blank screen, have to hit refresh
Post by: Xarcell on October 05, 2006, 04:06:06 AM
Possiable culprits that I knwo of that could be causing it.

1.| SMF shop. However uninstalling this may not be easy and may break your forum.

2.| Global annoucments

3.| Spolier Tag .

If you use TP, I recommend removing:

1.| online user's today.

2.| ultimate shoutbox

3.| SMF shoutbox

Questions:

What is audible PM? may be a culprit?

YOu can try uninstalling teh possiable culprits, but do not delete. Then see if you are still getting the errors. I guess this would be teh best way to track it down.

Backup everything first. and keep us posted.
Title: Re: blank screen, have to hit refresh
Post by: keith021773 on October 05, 2006, 01:12:04 PM
Quote from: Xarcell on October 05, 2006, 04:06:06 AM


What is audible PM? may be a culprit?
Backup everything first. and keep us posted.

Audible PM tells you voice that "You have mail" just like aol.  LOL   

And I will keep you guys posted.   I will have to work on it this weekend.

Thanks again.
Title: Re: blank screen, have to hit refresh
Post by: keith021773 on October 07, 2006, 12:34:03 AM
Ok.   I have uninstalled several mods and the errors are still there.   I am going to attempt to locate line 540 from those files and see what is happening.    Do all text editors have line numbering built-in or is there one that you guys like the best?
Title: Re: blank screen, have to hit refresh
Post by: akulion on October 07, 2006, 02:37:23 AM
Personally I use this Editpad:
http://www.editpadpro.com/editpadlite.html

Its got Tabbed document browsing
line numbering
word wrapping
and a HELL of a lot of other cool eatures
plus the lite version is totaly free without limits :up:
Title: Re: blank screen, have to hit refresh
Post by: keith021773 on October 07, 2006, 03:15:17 AM
Thanks..  I'll try it out.    I did get the display.english.php file open (because I had to start somewhere and it seemed to be giving more error messages).  Anyway, I can't find anything wrong with it.  Of course I'm not PHP expert either, heck, I'm not even a novice.   LOL    The errors don't seem to be causing much of a problem.   I just originally wanted to get the white screens (maybe timeout screens) to quit popping up.   
Title: Re: blank screen, have to hit refresh
Post by: rctxtreme on October 07, 2006, 12:37:36 PM
I go ahead uninstlaling modifications that fail at removing at modifications.english.php, as it only contains variables, and if the mod does not exist, the variables can stay and won't cause harm.
Title: Re: blank screen, have to hit refresh
Post by: keith021773 on October 07, 2006, 09:45:08 PM
Well..  I have tried and it's not any better.   If someone has the time to help I would appreciate it.   If you want to have a look at the errors and stuff just pm me and I'll set you up with admin username and password..    Thanks.