Follow SMF on Twitter.
Started by Payou, June 26, 2020, 12:11:34 PM
Quote2: Use of undefined constant Site - assumed 'Site' (this will throw an Error in a future version of PHP)[...]/BoardIndex.template.php (body_above sub template - eval?) - Line 288
$redirecturl = "http://lsplusforum.fr/forum/index.php?action=login";if(empty($context['user']['is_logged'])) echo '<meta http-equiv="refresh" content="60;url=\'' . $redirecturl . '\'" />';
QuoteI tried adding some code in the header of the index_template.php to force the redirection to the login page (only to the users that are not logged in yet) :
Quote from: Payou on June 26, 2020, 02:50:45 PM@lurkalot I tried what you said. In French we use acute accent just like in my case : Deban = Dé-bannissement.I tried changing that 'é' to a 'e' and it resolved the problem.
Quote from: Sir Osis of Liver on June 26, 2020, 09:25:18 PMNice catch, Mick.
Quote from: lurkalot on June 26, 2020, 02:15:34 PMFunny enough we had exact same scenario over on the tinyportal.net [nofollow] site about 6 days ago. So thought I'd throw it in here just in case. You could view the site logged in, but as guest the site was giving a white screen. The only thing I noticed was one of the recent posts contained Turkish language and was showing strange characters Dimond's etc in the topic title. This caused the page to choke completely for some reason, just a white page, and only as guest. I edited the Topic title and the page loaded normally. If I pasted the original title back in it choked with a white screen again. Our database wasn't properly converted to utf8, which it is now. Everything back to normal. Never seen this happen before.