Bug: Multiple IP addresses


(Sam Rossiter) #1

@toka when I visit http://mmm.3oe.de/wiki/Form:POI I get an error:

[e6889c54] /wiki/Form:POI Exception from line 1042 of /usr/share/nginx/html/includes/WebRequest.php: WebRequest::getRawIP : Could not determine the remote IP address due to multiple values.

Is this a known issue?

Thanks

Sam


📐 Which tools are available for mapping?
(Thomas Kalka) #2

no. please help me to reproduce it.


(Thomas Kalka) #3

The relevant code is (source):

if ( is_array( $_SERVER['REMOTE_ADDR'] ) || strpos( $_SERVER['REMOTE_ADDR'], ',' ) !== false ) {
    throw new MWException( __METHOD__ . " : Could not determine the remote IP address due to multiple values." );
} else {
    $ipchain = $_SERVER['REMOTE_ADDR'];
}

Please visit http://mmm.3oe.de/phpinfo.php and post the result somewhere (pastebin?).


(Sam Rossiter) #4

Hi @toka

I’m accessing it through a 3G mobile service, not sure if that’s relevant?

This is the result from http://mmm.3oe.de/phpinfo.php:
http://pastebin.com/WNZg2zvx

This is what I get when I visit the page:

[d58ea1cd] /wiki/Form:POI Exception from line 1042 of /usr/share/nginx/html/includes/WebRequest.php: WebRequest::getRawIP : Could not determine the remote IP address due to multiple values.

Backtrace:

#0 /usr/share/nginx/html/includes/WebRequest.php(1069): WebRequest->getRawIP()
#1 /usr/share/nginx/html/includes/User.php(1948): WebRequest->getIP()
#2 /usr/share/nginx/html/includes/db/Database.php(1063): User->getName()
#3 /usr/share/nginx/html/includes/db/Database.php(1650): DatabaseBase->query(string, string)
#4 /usr/share/nginx/html/includes/db/Database.php(1739): DatabaseBase->select(string, array, array, string, array, array)
#5 /usr/share/nginx/html/includes/Revision.php(1529): DatabaseBase->selectRow(string, array, array, string)
#6 /usr/share/nginx/html/includes/Revision.php(1059): Revision->loadText()
#7 /usr/share/nginx/html/includes/Revision.php(1015): Revision->getContentInternal()
#8 /usr/share/nginx/html/includes/page/WikiPage.php(679): Revision->getContent(integer, NULL)
#9 /usr/share/nginx/html/includes/page/WikiPage.php(496): WikiPage->getContent()
#10 [internal function]: WikiPage->isRedirect()
#11 /usr/share/nginx/html/includes/page/Article.php(2006): call_user_func_array(array, array)
#12 /usr/share/nginx/html/includes/MediaWiki.php(350): Article->__call(string, array)
#13 /usr/share/nginx/html/includes/MediaWiki.php(350): Article->isRedirect()
#14 /usr/share/nginx/html/includes/MediaWiki.php(279): MediaWiki->initializeArticle()
#15 /usr/share/nginx/html/includes/MediaWiki.php(584): MediaWiki->performRequest()
#16 /usr/share/nginx/html/includes/MediaWiki.php(435): MediaWiki->main()
#17 /usr/share/nginx/html/index.php(46): MediaWiki->run()
#18 {main

}


(Thomas Kalka) #5

thanks.

please try again.
should be fixed now.


(Sam Rossiter) #6

Yes

Working now :smile:

Thanks

Sam


(Thomas Kalka) #7

glad to hear that.


(Jon Richter) #8