Last modified: 2010-05-15 15:29:15 UTC
Warning: array_key_exists(): The first argument should be either a string or an integer in C:\Inetpub\www.ZoomnQRacing.com\PowerBook\includes\User.php on line 128
Can't see a warning at the specified URL. Where does it show the warning?
From the main page, press edit. (In reply to comment #0) > Warning: array_key_exists(): The first argument should be either a string or an > integer in C:\Inetpub\www.ZoomnQRacing.com\PowerBook\includes\User.php on line 128
The line in question in 1.3.3 is if ( array_key_exists( $wgIP, $wgProxyList ) ) { $wgIP is supposed to be set from the REMOTE_ADDR environment variable in Setup.php. It appears that for some reason it is not.
http://us2.php.net/getenv says this: Note: This function does not work in ISAPI mode. I have my IIS server running ISAPI mode, and get this bug. Perhaps occurrances of getenv() should use $_SERVER[''] instead. WORKAROUND: Change Setup.php as follows, line 35: $wgIP = $_SERVER['REMOTE_ADDR']; Additional use of getenv() include the following: includes/DefaultSettings.php includes/Parser.php irc/rc2irc.php
Thanks for getting to the bottom of this, Troy. I've fixed this in HEAD, and the change can be made in REL1_3 if no problems turn up.
(In reply to comment #5) > Thanks for getting to the bottom of this, Troy. I've fixed this in HEAD, and the > change can be made in REL1_3 if no problems turn up. Just installed the latest version 1.3.6 and the problem is still there. Maybe I'll report this bug again for the new release.
*** Bug 720 has been marked as a duplicate of this bug. ***
Committed the fix to REL1_3; it will be in the next release.
as of 1.3.7 this problem still exists.
1.3.7 predates the fix being committed, so it's expected that it would not contain the fix. The described fix is present in 1.3.8, 1.3.9, and the 1.4 betas. Resolving as FIXED pending further details.