If you look at lines 23 - 27 of that file... we can probably debug and work around the problem from there.
The code currently has:
$kfm_userfiles_address = '../../FileUploads/Diversity';
if (isset($_SESSION['useOverrideRoot'])) {
$kfm_userfiles_address = abs2rel($_SESSION['useOverrideRoot'],dirname(__FILE__));
}
$kfm_userfiles_output = rel2abs($kfm_userfiles_address,dirname(__FILE__));
I'd start by writing the values of those variables to the page and see where they are wrong:
$kfm_userfiles_address = '../../FileUploads/Diversity';
if (isset($_SESSION['useOverrideRoot'])) {
$kfm_userfiles_address = abs2rel($_SESSION['useOverrideRoot'],dirname(__FILE__));
}
$kfm_userfiles_output = rel2abs($kfm_userfiles_address,dirname(__FILE__));
die("address:" .$kfm_userfiles_address . "<br>output:" . $kfm_userfiles_output. "<br>override:" . $_SESSION['useOverrideRoot']);
What does the page display after making that change? Based on that maybe I can try to suggest a solution.