I have seen some notices "Undefined index: REQUEST_URI" on my IIS test server when using latest 1.5dev. The problem is in get_performance_info () from moodlelib.php, some more info is here - Apache and IIS PHP $_SERVER Superglobal Comparision.
IMO we should use only server features that are available on both IIS and Apache. We could also update the coding guide...
Maybe we could add something like this to setup.php:
if (!isset($_SERVER['REQUEST_URI']) && isset($_SERVER['SCRIPT_NAME'])) {
if (isset($_SERVER['QUERY_STRING'])) {
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING'];
} else {
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
}
}
Hmm, the QUERY_STRING is not listed as supported in the page above, but
it works for me :-\ Does anybody have any better list of supported
tags?
skodak
---
or get_performance_info() could simply use me() from weblib.php...
Definitely me()
I've fixed this in log view (and removed it completely from web view, as it was annoying me to be constantly told what page I was looking at )
I've fixed this in log view (and removed it completely from web view, as it was annoying me to be constantly told what page I was looking at )