CMS1.4 - REQUEST_URI in stylesheet.php on IIS does not exist

A place to discuss the testing process in beta cycles or against SVN for the CMS Made Simple CORE package.
Locked
tehren

CMS1.4 - REQUEST_URI in stylesheet.php on IIS does not exist

Post by tehren »

CMS1.4 running on IIS, the file: stylesheet.php requests $_SERVER['REQUEST_URI'] which does not exist in IIS. This writes out the error:

Code: Select all

Notice: Undefined index: REQUEST_URI in C:\Web Application Folders\_testing\imani\stylesheet.php on line 4
which I'm assuming invalidates the CSS content type of the file.

The CMS file: index.php already handles this by checking for, and then setting REQUEST_URI manually. I have managed to fix this problem by just including the same code at the start of stylesheet.php.

Code: Select all

if (!isset($_SERVER['REQUEST_URI']) && isset($_SERVER['QUERY_STRING']))
{
	$_SERVER['REQUEST_URI'] = $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'];
}
Pierre M.

Re: CMS1.4 - REQUEST_URI in stylesheet.php on IIS does not exist

Post by Pierre M. »

Thank you for this feedback and the solution. As the DevTeam doesn't track code in forum posts it makes its life easier to submit patches in the forge instead.

Have fun with CMSms

Pierre M.
Locked

Return to “[locked] Quality Assurance”