News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Why do i have to refresh my site.....

Started by fma965, June 14, 2012, 06:17:15 PM

Previous topic - Next topic

fma965

hi this is my first post recently moved from mybb to smf but having a slight issue.

Why do i have to refresh my site everytime i visit it for the css and images to load.

site: hxxp://forgottencoders.co.uk

i think its the theme causing the issue but can you please check and help thanks.

Before i refresh



after i refresh


MrPhil

I see it's very slow loading, and I have to refresh, too. Try turning off the reverse hostname lookup in the admin section. Sometimes that will help.

fma965

ok thanks. will try that. yh this webhost is quite slow but for £10 a year its fine for 15members (currently)

fma965

ok well that seems to have sped up the website but the issue with this refresh is still there.

any other ideas?

Arantor

Remove the hack for 'remove index.php from the URL'

fma965

Quote from: Arantor on June 14, 2012, 06:27:40 PM
Remove the hack for 'remove index.php from the URL'

i dont understand. i dont have anything like that installed. although i think i may have a simple htaccess rule to remove it.

Arantor

So you didn't install a mod called 'Remove index.php from URL' then?

fma965

Quote from: Arantor on June 14, 2012, 06:43:24 PM
So you didn't install a mod called 'Remove index.php from URL' then?

nope.

only these


1. nCode Image Resizer 1.3.1 [ Uninstall ]
2. SA GPlus 0.3 REV 9 [ Uninstall ]
3. SA Twitter 0.6 REV 30 [ Uninstall ]
4. Pretty URLs 1.0 [ Uninstall ]
5. SA Facebook 2.0 RC4 Rev58 [ Uninstall ]
6. Calling Your twitter 2.5 [ Uninstall ]
7. Tapatalk SMF 2.0 RC4/RC5/Final Plugin 3.0.2 [ Uninstall ]
8. Anime Avatars 1.0 [ Uninstall ]
9. Guest Attachment Preview 1.0.1 [ Uninstall ]
10. Forum Name in Browser Title 2.0.1 [ Uninstall ]
11. Mobile Device Detect 0.2.2 [ Uninstall ]
12. Extended Registration Notifications 0.9 [ Uninstall ]
13. Login Security 1.0.2.2 [ Uninstall ]
14. Captcha on Reminder 1.3 [ Uninstall ]
15. Stop Spammer 2.3.9 [ Uninstall ]
16. httpBL 2.5.1 [ Uninstall ]
17. Ad Managment 3.0.1 [ Uninstall ]
18. Float BBCODE 1.0.2 [ Uninstall ]
19. Menu Editor Lite 1.0.5 [ Uninstall ]
20. SimplePortal 2.3.5 [ Uninstall ]

fma965

ok so using the default smf theme or dzinerstudios 'inferno' theme doesnt cause this to happen so it must be theme related.

fma965

Um using this theme

http://custom.simplemachines.org/themes/index.php?lemma=2220

it doesnt say its compatible with 2.0.2 but is compatible with 2.0 RC3 so i guessed it would most likely work.

kat

Funny, that...

If you go to http://forgottencoders.co.uk/index.php everything works, straight off.

If you go to http://forgottencoders.co.uk it doesn't.

Also, if you go to http://forgottencoders.co.uk/index.php?theme=1, everything's fine. So, one has to suspect the theme, somehow...

fma965

 
Quote from: K@ on June 15, 2012, 06:52:13 AM
Funny, that...

If you go to http://forgottencoders.co.uk/index.php everything works, straight off.

If you go to http://forgottencoders.co.uk it doesn't.

Also, if you go to http://forgottencoders.co.uk/index.php?theme=1, everything's fine. So, one has to suspect the theme, somehow...

How do i make it keep index.php at the end of the url as for some reason it isnt and if that will fix this problem then i will do that as a work around :) thanks.



These stupid captchas on the new post/ reply post is annoying are they based on post count or permenant?

MrPhil

Quote from: fma965 on June 15, 2012, 04:42:11 AM
it doesnt say its compatible with 2.0.2 but is compatible with 2.0 RC3 so i guessed it would most likely work.

Nope. The "RC" releases ended up being something of a side branch to the main SMF development. Many themes and mods for "RC" are not compatible with 2.0.x, so that might be your problem.

Don't get me started ranting about what a stupid thing SMF developers did making major code and architectural changes in "Release Candidates". You're only supposed to fix bugs from one RC to the next, or to the Gold release.

Arantor

QuoteDon't get me started ranting about what a stupid thing SMF developers did making major code and architectural changes in "Release Candidates". You're only supposed to fix bugs from one RC to the next, or to the Gold release.

There are actually surprisingly few 'major' changes at the code level, and in almost every case the larger changes were actually the consequences of bug fixes. (If we're being honest, RC1 wasn't supposed to be called RC1, it was really beta 5, with RC2 being the first proper RC. The only big change in the code since RC2 is the changes to hooks and even that is a bug fix of sorts.)

MrPhil

The whole point of a Release Candidate is to say, "We just about done here. We think this is ready to go, but we'd like for the community to play with it a bit before we call it Gold." You do not make any major changes at this point -- you only fix minor bugs. If you find there's something terribly wrong, requiring incompatible code changes, you drop back to Beta (or even Alpha) level and start the release process over. It is misleading to put out RC levels with any major (incompatible) changes -- people see "RC" and expect it to be near the finished product. More importantly, any theme or mod that works with a given RC level should work with later RC levels and Gold. That's the industry standard way of doing things, and what people expect.

The way SMF abuses the "Release Candidate" designation is just plain wrong.

fma965

Quote from: Arantor on June 15, 2012, 11:19:38 AM
QuoteDon't get me started ranting about what a stupid thing SMF developers did making major code and architectural changes in "Release Candidates". You're only supposed to fix bugs from one RC to the next, or to the Gold release.

There are actually surprisingly few 'major' changes at the code level, and in almost every case the larger changes were actually the consequences of bug fixes. (If we're being honest, RC1 wasn't supposed to be called RC1, it was really beta 5, with RC2 being the first proper RC. The only big change in the code since RC2 is the changes to hooks and even that is a bug fix of sorts.)

ok but can we stay on topic please :) i need to get this fixed so can any one help thanks.

or should i just use a different theme?

Arantor

*shrug* If it weren't for that process, the odds are SMF 2.x final would never have been released given how much crap was going on. From my perspective it was the lesser of the many evils.

Quote from: fma965 on June 15, 2012, 12:02:04 PM

ok but can we stay on topic please :) i need to get this fixed so can any one help thanks.

or should i just use a different theme?

It honestly does not matter what theme you use, it will be broken in all of them (and what you think you saw with the testing, you didn't)

It is still related to having the hack in place that I mentioned.

fma965

Quote from: K@ on June 15, 2012, 06:52:13 AM
Funny, that...

If you go to http://forgottencoders.co.uk/index.php everything works, straight off.

If you go to http://forgottencoders.co.uk it doesn't.

Also, if you go to http://forgottencoders.co.uk/index.php?theme=1, everything's fine. So, one has to suspect the theme, somehow...

actually whether i go to forgottencoders.co.uk or forgottencoders.co.uk/index.php or http://forgottencoders.co.uk/index.php?theme=1 or even http://forgottencoders.co.uk/index.php?theme=3 it still doesnt work. so not sure why that worked for you.

fma965

Quote from: Arantor on June 15, 2012, 12:05:20 PM
*shrug* If it weren't for that process, the odds are SMF 2.x final would never have been released given how much crap was going on. From my perspective it was the lesser of the many evils.

Quote from: fma965 on June 15, 2012, 12:02:04 PM

ok but can we stay on topic please :) i need to get this fixed so can any one help thanks.

or should i just use a different theme?

It honestly does not matter what theme you use, it will be broken in all of them (and what you think you saw with the testing, you didn't)

It is still related to having the hack in place that I mentioned.

NO IT ISNT. I DONT HAVE THAT HACK INSTALLED WHAT PART OF THAT DO YOU NOT UNDERSTAND?

Arantor

QuoteI DONT HAVE THAT HACK INSTALLED WHAT PART OF THAT DO YOU NOT UNDERSTAND?

Then Pretty URLs is doing it for you.

Either way, what's happening is that the system has been configured to think that there isn't index.php in the URL and it's screwing up how the PHPSESSID injecter works.

You could attach your Sources/QueryString.php file.

fma965

ok thanks sorry for shouting but i had clearly mentioned that before :(. i will disable prettyurls and try again thanks.

File Attached Below

i think i remember something going weird with that something about duplicate function or something but i dont understand php much.

fma965

ok i fixed it i think.

forgot the edit i did to this file

$scripturl = $boardurl . '/index.php'; was changed to $scripturl = $boardurl;

thanks for the help. but how can i remove index.php without screwing things up?

Arantor

-sigh- So you DID put the hack in. Because that's the hack I was referring to which screws it up. I KNEW that's what you'd done.

You actually don't need to remove it, everything will work correctly without touching that.

fma965

yep :D. sorry but if i leave that in i will have the theme issue so how do i fix the theme issue and remove index.php?

i have another issue.



im trying to remove this mod "calling your twitter" but i get this error but i go to the file it says './Themes/default/css/index.css' and then i cant find any of the code that it mentioned (the find or the replace code)

here is the code


Arantor

As I already said, it IS NOT a theme issue. Remove the hack and everything else will work properly!

That hack is what's breaking the themes. It will apply to all themes for the first time a visitor loads the page.

You do not need to remove index.php from the URL, everything will just work perfectly regardless. You know, you could save both of us some frustration and just try it.

fma965

yo dude calm down jeez. dont bother helping people if your in a bad mood or something.

also check my post above.

Arantor

Excuse me, why should I calm down? I told you what the problem was several times, you were adamant that it couldn't possibly be that, then you confirmed that was exactly what it was. In short, you were telling me in no uncertain terms I was wrong over and over and yet then you tell me I'm right. So it just wasted both our time, and I can't really afford to waste my time like that, hence the less than pleasant suggestion that you could just try it and see what happens, in an attempt to avoid wasting any more time on a matter that could have been solved 24 hours ago.

If you have a problem with a mod, go ask its authors. They know its code better than I do, it may be that code is not required for your theme.

fma965

Quote from: Arantor on June 15, 2012, 01:14:44 PM
Excuse me, why should I calm down? I told you what the problem was several times, you were adamant that it couldn't possibly be that, then you confirmed that was exactly what it was. In short, you were telling me in no uncertain terms I was wrong over and over and yet then you tell me I'm right. So it just wasted both our time, and I can't really afford to waste my time like that, hence the less than pleasant suggestion that you could just try it and see what happens, in an attempt to avoid wasting any more time on a matter that could have been solved 24 hours ago.

If you have a problem with a mod, go ask its authors. They know its code better than I do, it may be that code is not required for your theme.

well have you actually read what your have wrote?
Quote from: Arantor on June 15, 2012, 01:03:35 PM
-sigh- So you DID put the hack in. Because that's the hack I was referring to which screws it up. I KNEW that's what you'd done.

You actually don't need to remove it, everything will work correctly without touching that.

this message isnt very clear especially this bit "You actually don't need to remove it, everything will work correctly without touching that." remove what? the theme? the hack? prettyurls? or what?

that mod is not for installing it but it is for uninstalling and for somereason it thinks

the code above is in the index.css file.

Thanks for your help and sorry for the HUMAN ERROR didnt realise you were perfect and do everything correct. next time if you dont have time why bother helping? it seems pointless.

Arantor

Quotethis message isnt very clear especially this bit "You actually don't need to remove it, everything will work correctly without touching that." remove what? the theme? the hack? prettyurls? or what?

Remove the hack, like I've been saying the whole time. Everything else will work as expected.

Quotethe code above is in the index.css file.

That's PHP code, not CSS code. Go ask the mod author for help.

Quotenext time if you dont have time why bother helping? it seems pointless.

Because this is a situation most people don't know how to fix. That's why I bothered posting because most people still do not realise that this problem is caused by this specific situation and even though I've been trying to educate people for the last 2 years that this is a problem, I find it still comes up as a support matter every few days.

Perhaps you're right though, perhaps I am wasting my time and all the knowledge I acquired about SMF's innards and that you would rather have spent more time fumbling around in the dark hoping for an answer.

I was wrong to try and help people so soon after other events in my life, I guess. Have fun.

fma965

Quote from: Arantor on June 15, 2012, 01:23:54 PM
Quotethis message isnt very clear especially this bit "You actually don't need to remove it, everything will work correctly without touching that." remove what? the theme? the hack? prettyurls? or what?

Remove the hack, like I've been saying the whole time. Everything else will work as expected.

Quotethe code above is in the index.css file.

That's PHP code, not CSS code. Go ask the theme author for help.

Quotenext time if you dont have time why bother helping? it seems pointless.

Because this is a situation most people don't know how to fix. That's why I bothered posting because most people still do not realise that this problem is caused by this specific situation and even though I've been trying to educate people for the last 2 years that this is a problem, I find it still comes up as a support matter every few days.

I know it is PHP Code thats why i am confused why smf or the mod thinks it is in the index.css file which it isnt.

Thanks for taking your time to help me and again sorry for the confusion although it seems you dont want to accept my humble appoligies so what else can i do? I completely forgot about the hack i did to that file and i only noticed it when you said about querystring i then used KDIFF to check the differences between stock file and my file and noticed the problem :). thanks again

EDIT: ok so it seems that the mod uninstall some how thought the index.css file was the settings template file i think i fixed that issue now aswell.

Quote from: Arantor on June 15, 2012, 01:23:54 PM
Perhaps you're right though, perhaps I am wasting my time and all the knowledge I acquired about SMF's innards and that you would rather have spent more time fumbling around in the dark hoping for an answer.

I was wrong to try and help people so soon after other events in my life, I guess. Have fun.

again thank you.

Advertisement: