Last modified: 2010-05-15 15:33:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T3826, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1826 - Notice: Undefined index: REQUEST_URI
Notice: Undefined index: REQUEST_URI
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.4.x
PC Windows XP
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-05 16:11 UTC by John Wetsell
Modified: 2010-05-15 15:33 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Wetsell 2005-04-05 16:11:21 UTC
IIS, PHP installed as isapi. $_SERVER['REQUEST_URI'] is not available on this
platform.  A workaround for non Apache users should be implemented.

I did the following:
if(!isset($_SERVER['REQUEST_URI'])) {
 $urlary = explode("/",$_SERVER['SCRIPT_NAME']);
 foreach ($urlary as $index => $value) {
 	$phppos = strpos($value, ".php");
 	$htmlpos = strpos($value, ".html");
 	if (!$phppos === false) {
		$_SERVER['REQUEST_URI'] = $value;
		$index = count($urlary);
	} elseif (!$htmlpos === false) {
		$_SERVER['REQUEST_URI'] = $value;
		$index = count($urlary);
	}
 }
}
Comment 1 Zigger 2005-04-05 16:34:44 UTC
See also bug 30.
Comment 2 Brion Vibber 2005-04-05 18:41:14 UTC
Please check where the unused item is used specifically and whether it's already been fixed in CVS before suggesting 
contextless patches.
Comment 3 John Wetsell 2005-04-06 18:51:32 UTC
(In reply to comment #2)
> Please check where the unused item is used specifically and whether 
it's already been fixed in CVS before suggesting 
> contextless patches.

I searched the bugs before posting this. I did not find it. 
Also bug 30 doesn't seem to specificially handle this bug, they are 
talking about language files and such.

How do I get to CVS? menu on left doesn't talk of CVS.
Comment 4 David Mach 2005-04-15 07:57:25 UTC
I confirm this bug in MediaWiki version 1.4.0 stable. Bug 30 show me that this error is present 
from version 1.3.0beta5.

Configuration:
MS Windows XP SP2
IIS 5.1
MySQL 4.1.9-nt
PHP 5.0.3
Comment 5 ian 2005-04-15 13:10:43 UTC
Thought I'd just contribute that this bug is a real pain. I need to get MediaWiki up and 
running and this error is a showstopper for me. 

Sure that doesn't help fix it but if anyone can suggest at least a workaround (or where to 
apply the hack above) it might get me out of a hole.

Please help!

i.
Comment 6 John Wetsell 2005-04-15 13:41:43 UTC
(In reply to comment #5)
> Sure that doesn't help fix it but if anyone can suggest at least a 
workaround (or where to 
> apply the hack above) it might get me out of a hole.

I placed the hack above in to a new file called IIS_workarounds.php 
Into the wikimedia\index.php require_once ("IIS_workarounds.php"); 
Into wikimedia\config\index.php require_once ("..\IIS_workarounds.php"); 

however I received another problem after installation that is a real show 
stopper; see bug 1832

Comment 7 Brion Vibber 2005-04-15 20:24:36 UTC
Please pull REL1_4 branch from CVS and test.

http://sourceforge.net/cvs/?group_id=34373
Use cvs co -r REL1_4 phase3
Comment 8 ian 2005-04-16 11:56:09 UTC
I'm a complete CVS-innocent I'm afraid and have been unable to get hold of the suggested 
change, so can't give any testing feedback. Any chance of emailing it to me?

i.

(ps - thanks for the really quick response to my cry for help).
Comment 9 Brion Vibber 2005-04-21 10:28:09 UTC
1.4.2 was released recently; please download that and check whether the problem is there.
http://www.mediawiki.org/
Comment 10 John Wetsell 2005-04-26 16:22:23 UTC
The install of 1.4.2 wouldn't even start after I completed the form. This was
reported under bug 1986

(In reply to comment #9)
> 1.4.2 was released recently; please download that and check whether the
problem is there.
> http://www.mediawiki.org/
> 

Comment 11 John Wetsell 2005-04-26 16:35:08 UTC
I found the solution for Bug 1986 and was able to complete the installation. 

THIS BUG IS SOLVED IN 1.4.2

(In reply to comment #10)
> The install of 1.4.2 wouldn't even start after I completed the form. This was
> reported under bug 1986
> 
> (In reply to comment #9)
> > 1.4.2 was released recently; please download that and check whether the
> problem is there.
> > http://www.mediawiki.org/
> > 
> 
> 


Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links