Author |
Topic |
|
Alfred
Senior Member
USA
1527 Posts |
Posted - 01 December 2002 : 22:15:32
|
I hate mysteries. And I am going to lose my mind over this beloved electronic monster.
Today I spent all afternoon trying to create an identical backup of my forums by downloading all files from my server to the inetpub folder on my HD, and setting it up to be viewed on localhost.
I must have done half a dozen retries and file transfers into new, clean folders, but each time there were colors in it which were not on the original on my server. I even went to the length of deleting all files in my browser cache, including all offline content.
How on earth can there be different configurations if I simply copied the files? Please tell me I am not going nuts! |
Alfred The Battle Group CREDO
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 01 December 2002 : 22:35:06
|
Did you copy the database file as well? And did you run setup.asp? If you haven't executed it, then do it and all will be fixed. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
Edited by - ruirib on 01 December 2002 22:35:20 |
|
|
Alfred
Senior Member
USA
1527 Posts |
Posted - 01 December 2002 : 22:45:20
|
Yes, I copied the database several times as well, but did not run setup! I thought it only has to be run to start the board, but this was an active board with a used database.
BTW, Rui - this sure is crazy - I still have not run setup, but was playing around with it while waiting for a reply, and suddenly the colors were right!!!
What on earth happened here? |
Alfred The Battle Group CREDO
|
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 02 December 2002 : 01:34:45
|
The application variables must be loaded to pickup the colours from the database. running setup.asp or any other admin screen will do this for you. application variables are stored on the 'webserver' so must be loaded once before things look right.
|
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
Alfred
Senior Member
USA
1527 Posts |
Posted - 02 December 2002 : 12:57:50
|
I see. So even if I start with a completely new folder, there is hidden info on my server that controls the colors? And in this case the server was my localhost, and somewhere in the inetpub folder was a link to my database of that name... Sneaky MS #$%#@!!!
That leaves the mystery of snapping to the correct colors without me running the setup... Maybe after a while it accepts the new files' settings...? |
Alfred The Battle Group CREDO
|
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 02 December 2002 : 16:54:10
|
There may be some code that detects that the values of the App variables are not loaded and loads teh,. That's what Gremlin suggested in his post and I guess he may be right. And it really has nothing to do with file settings, since all your configuration values are kept in the database. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 02 December 2002 : 18:05:13
|
I believe changing any Admin setting will normaly force the application variables to be reloaded. My guess is you went into the admin settings to check the colours, they all looked correct and you pressed submit, that submit then caused the application variables to be reloaded. |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
Alfred
Senior Member
USA
1527 Posts |
Posted - 16 December 2002 : 17:35:25
|
Just an update on this problem:
Turns out to be nothing more than the browser cache which stored the files for localhost.
The problem doesn't exist for the web based pages, because the browser refreshes changed files automatically. For some reason it doesn't do that for localhost files, and to see the changed files display properly I have to go into the file viewer and pick the files for deletion.
Bit of a nuisance, but at least the mystery is solved! |
Alfred The Battle Group CREDO
|
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 16 December 2002 : 17:44:53
|
I wouldn't think this has anything to do with a proxy or browser caching behaviours.
Are you viewing the files by double clicking on them or by typing http://localhost/forum into your browser? |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
Alfred
Senior Member
USA
1527 Posts |
Posted - 17 December 2002 : 00:37:09
|
I access the URL in my browser. Whenever it happens now I go to Tools|Internet Options|Temporary Internet Files|Settings|View Files|, and delete the offending file. Instantly the problem is gone, and I can view my changes. |
Alfred The Battle Group CREDO
|
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 17 December 2002 : 02:07:13
|
Why not just Force a refresh by holding down CTRL and pressing F5 ? |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
David K
Junior Member
494 Posts |
Posted - 17 December 2002 : 11:12:39
|
btw, if your files don't reload, set a low expiration time for pages on the server |
|
|
Alfred
Senior Member
USA
1527 Posts |
Posted - 17 December 2002 : 12:56:55
|
Gremlin, does CTR/F5 do something other than using the "Refresh" on the browser? Because refreshing the browser does not do it for my localhost.
As far as expiration time is concerned, I always had the "update on every visit" option (or something to that effect) enabled, which works without any problem on the web server, but seemingly not on localhost. |
Alfred The Battle Group CREDO
|
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 17 December 2002 : 15:55:15
|
quote: does CTR/F5 do something other than using the "Refresh" on the browser?
Yes it does, It should tell your browser to refresh from the webserver directly bypassing anything it may have in its cache. |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
Alfred
Senior Member
USA
1527 Posts |
Posted - 17 December 2002 : 20:49:20
|
Interesting... I would have expected that this is what happens when you "refresh"! |
Alfred The Battle Group CREDO
|
|
|
|
Topic |
|