2023-06-16, 08:42 PM
(This post was last modified: 2023-06-16, 08:51 PM by jkcool. Edited 1 time in total.)
This user has been denied support.
(2023-06-15, 08:52 PM)jkcool Wrote: Only Theme Selector index issue is remaining.
Try replacing line 5465 of
inc/functions.php
: if(!empty($_SERVER['SCRIPT_NAME']))
with: $location = false;
if(!empty($_SERVER['REQUEST_URI']))
{
$https = !empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on';
$scheme = $https ? 'https://' : 'http://';
$script_loc = $scheme.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
if(explode($mybb->settings['bburl'], $script_loc) == array('', '/index.php'))
{
$location = htmlspecialchars_uni(substr($_SERVER['REQUEST_URI'], 0, -strlen('/index.php')));
}
}
if($location === false)
{
// Do nothing - $location was already set above.
}
elseif(!empty($_SERVER['SCRIPT_NAME']))
If that works, then the core edit plugin referenced by Taylor above might help to maintain it across MyBB ugrades.
I have done that but website and admin panel showing white blank page and when I redit the code its still showing website and admin panel white blank page.
Edit: It dosent worked and I have fixed my website aswell from white blank page.