by Elliot M » Thu Sep 03, 2009 11:42 pm
Yes that seems to fix it, but not ideal...
I don't know exactly why, but while some basic styles are directly linked static CSS files in phpBB2/styles/prosilver/, the main stylesheet is called via PHP: phpBB2/style.php?sid={session id}, no difference whether you set user style to 'prosilver' or 'test'.
But If you request that style.php file while your user style is set to 'test', you get the CSS back,if it's set to 'prosilver' you get an empty file
Looking in that PHP file, there's a comment:
// This is a simple script to grab and output the requested CSS data stored in the DB
// We include a session_id check to try and limit 3rd party linking ... unless they
// happen to have a current session it will output nothing. We will also cache the
// resulting CSS data for five minutes ... anything to reduce the load on the SQL
// server a little
So the answer mightbe something to do with session ids not being handled correctly...could a server restart affect this? I did wonder if it was a cookie issue but deleting them and logging in again doesn't seem to have helped.
Do you know what "test" is as it seems to still call the same prosilver styles?
It might also be worth checking server logs?