Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Gryzor on October 02, 2021, 05:34:43 AM

Title: Turning persistent mode on made forum not load CSS (?)
Post by: Gryzor on October 02, 2021, 05:34:43 AM
So, since we're on a dedicated server I thought I'd enable Persistent mode and see how it goes. That was the *only* change I made in that Settings page.

Now my forum looks like it's not loading CSS (you know, the white background, elements one below the other etc... Disabled Persistent connections, still the same?

Run repair_settings.php, paths are mostly correct (some urls were not https, in some cases the recommended value was http instead of https; changed all to https). No soap...

Any ideas? I know it must have something to do with the theme, and I can't see how Persistent mode could cause this, but... here we are!

Thanks!

PS wow, realised that if I'm not logged in then it looks fine??! Then logging back in and the problem is fixed. Weird... I'm guessing though other users may be having this issue, is there a way to end all sessions and log everyone out?
Title: Re: Turning persistent mode on made forum not load CSS (?)
Post by: Illori on October 02, 2021, 08:21:39 AM
link to your forum?
Title: Re: Turning persistent mode on made forum not load CSS (?)
Post by: Aleksi "Lex" Kilpinen on October 02, 2021, 08:40:52 AM
Quote from: Gryzor on October 02, 2021, 05:34:43 AMpaths are mostly correct
I'd be willing to bet this is the answer, this is the issue, and changing this to ALL correct would fix this.
Title: Re: Turning persistent mode on made forum not load CSS (?)
Post by: Gryzor on October 07, 2021, 06:21:05 AM
Apologies for not getting back to you guys, seems like I forgot to ask to receive alerts for replies...

Forum is www.cpcwiki.eu/forum, but now seems fine after reverting the option.

"Mostly correct" paths could be an issue ("mostly" referred to canonical vs non-canonical or http vs https), but I did correct them and the problem persisted, and why would it only appear when not logged in after all?
Title: Re: Turning persistent mode on made forum not load CSS (?)
Post by: Aleksi "Lex" Kilpinen on October 07, 2021, 02:38:41 PM
Any inconsistencies in the paths will cause issues.

Also, why only for guests - my guess is your profile has a different theme assigned than what is the overall forum default, and the forum default theme paths were (are?) wrong.
Title: Re: Turning persistent mode on made forum not load CSS (?)
Post by: Gryzor on October 08, 2021, 09:05:45 AM
Yeah, but I did fix the paths to what I considered correct; same effect. And you're right to ask about themes, that's the first thing I thought of too, but no, the default theme is applied everywhere...

So weird.