From: mediawiki-l-bounces@Wikimedia.org
However, on the top of all my pages I get the following error:
Notice: Undefined index REQUEST_URI in D:\web\wiki\includes\Setup.php on line 113
Can someone please tell me what is going on and how do I fix it?
This problem is a PHP for Windows problem, as I understand it. You should replace all references to the REQUEST_URI member of the _SERVER array with SCRIPT_NAME. The name of the same variable is different between the Windows and UNIX versions of PHP.
Thus: Old: $_SERVER['REQUEST_URI'] change to: New: $_SERVER['SCRIPT_NAME']
There are two instances in Setup.php that require changing and perhaps one other file as well. You'll find that other file by doing a 'grep' or waiting for the next error message. :)
Scott
IIRC, REQUEST_URI is one of the variables set by Apache but not by IIS.
-- Zigger
On Wed, 16 Mar 2005 13:46:21 -0800, Drummonds, Scott B wrote:
... Notice: Undefined index REQUEST_URI in D:\web\wiki\includes\Setup.php on line 113
Can someone please tell me what is going on and how do I fix it?
This problem is a PHP for Windows problem, as I understand it. You should replace all references to the REQUEST_URI member of the _SERVER array with SCRIPT_NAME. The name of the same variable is different between the Windows and UNIX versions of PHP. ...
Would the problem be solved if I install apache on windows or does any windows PHP has this different variable issue?
Christian
Zigger wrote:
IIRC, REQUEST_URI is one of the variables set by Apache but not by IIS.
-- Zigger
On Wed, 16 Mar 2005 13:46:21 -0800, Drummonds, Scott B wrote:
... Notice: Undefined index REQUEST_URI in D:\web\wiki\includes\Setup.php on line 113
Can someone please tell me what is going on and how do I fix it?
This problem is a PHP for Windows problem, as I understand it. You should replace all references to the REQUEST_URI member of the _SERVER array with SCRIPT_NAME. The name of the same variable is different between the Windows and UNIX versions of PHP. ...
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On Thu, 17 Mar 2005 08:31:17 -0500, Christian Rauh christian.rauh@uconn.edu wrote:
Would the problem be solved if I install apache on windows or does any windows PHP has this different variable issue?
As a personal/development platform, I have MediaWiki running on a WinXP Home platform, without the issue you describe. I am running PHP 5.0.3, MySQL 4.1.9-nt, and Apache 2.0.52
-- Rich Holton
en.wikipedia:User:Rholton
On Thu, 17 Mar 2005 08:51:21 -0600, Richard Holton richholton@gmail.com wrote:
As a personal/development platform, I have MediaWiki running on a WinXP Home platform, without the issue you describe. I am running PHP 5.0.3, MySQL 4.1.9-nt, and Apache 2.0.52
As my personal note-taking application, I'm running MediaWiki 1.4rc1 from a 1GB USB pendrive. Platform is Apache 2.0.53, MySQL 4.1.10a, PHP 5.0.3, ImageMagick 6.1.9.
Everything's inside a TrueCrypt-encrypted virtual drive. No local computer setup needed, no services installed. Very nice. Runs on Windows XP Pro like a charm.
The only drawback is having to remember starting the thing after plugging in the pendrive (most USB pendrives don't do autorun, it's a Windows/driver issue), and shutting down the whole affair at exit.
Now, if someone knows a way to shut down an Apache in standalone mode without having to manually send it a Ctrl-C, I'd be just happy...
mediawiki-l@lists.wikimedia.org