Thread:Project:Support desk/MediaWiki Running Behind Proxy "Unable to determine IP" Error

I installed MediaWiki 1.20.5 on a work server behind a proxy. Depending on what server is filling the proxy request the entire wiki will either function normally or any page will result in an "Unable to determine IP" error (back trace below). Using a php script ( ) I am able to tell the ip address of the current proxy. One of the proxy servers will append a port to its address (i.e. 192.168.1.8:8589). The site will not function with the IP error at this point. The other proxy server does not append a port to the end of its address and MediaWiki behaves fine under this proxy server.

I'm thinking that MediaWiki is trying to parse the IP and can't handle the port, but I don't know where to go to fix this.

Any help would be appreciated.

Backtrace:
 * 1) 0 /path/to/install/wiki/includes/User.php(1723): WebRequest->getIP
 * 2) 1 /path/to/install/wiki/includes/db/Database.php(844): User->getName
 * 3) 2 /path/to/install/wiki/includes/db/Database.php(1339): DatabaseBase->query('SELECT lc_valu...', 'LCStore_DB::get')
 * 4) 3 /path/to/install/wiki/includes/db/Database.php(1430): DatabaseBase->select('l10n_cache', Array, Array, 'LCStore_DB::get', Array, Array)
 * 5) 4 /path/to/install/wiki/includes/LocalisationCache.php(1005): DatabaseBase->selectRow('l10n_cache', Array, Array, 'LCStore_DB::get')
 * 6) 5 /path/to/install/wiki/includes/LocalisationCache.php(380): LCStore_DB->get('en', 'deps')
 * 7) 6 /path/to/install/wiki/includes/LocalisationCache.php(422): LocalisationCache->isExpired('en')
 * 8) 7 /path/to/install/wiki/includes/LocalisationCache.php(309): LocalisationCache->initLanguage('en')
 * 9) 8 /path/to/install/wiki/includes/LocalisationCache.php(244): LocalisationCache->loadItem('en', 'namespaceNames')
 * 10) 9 /path/to/install/wiki/languages/Language.php(386): LocalisationCache->getItem('en', 'namespaceNames')
 * 11) 10 /path/to/install/wiki/includes/search/SearchEngine.php(345): Language->getNamespaces
 * 12) 11 /path/to/install/wiki/includes/User.php(1233): SearchEngine::searchableNamespaces
 * 13) 12 /path/to/install/wiki/includes/User.php(2230): User::getDefaultOptions
 * 14) 13 /path/to/install/wiki/includes/context/RequestContext.php(287): User->getOption('language')
 * 15) 14 /path/to/install/wiki/includes/Message.php(322): RequestContext->getLanguage
 * 16) 15 /path/to/install/wiki/includes/context/RequestContext.php(368): Message->setContext(Object(RequestContext))
 * 17) 16 [internal function]: RequestContext->msg('pagetitle')
 * 18) 17 /path/to/install/wiki/includes/context/ContextSource.php(166): call_user_func_array(Array, Array)
 * 19) 18 /path/to/install/wiki/includes/OutputPage.php(833): ContextSource->msg('pagetitle')
 * 20) 19 /path/to/install/wiki/includes/Article.php(485): OutputPage->setPageTitle('Main Page')
 * 21) 20 /path/to/install/wiki/includes/actions/ViewAction.php(37): Article->view
 * 22) 21 /path/to/install/wiki/includes/Wiki.php(427): ViewAction->show
 * 23) 22 /path/to/install/wiki/includes/Wiki.php(304): MediaWiki->performAction(Object(Article))
 * 24) 23 /path/to/install/wiki/includes/Wiki.php(536): MediaWiki->performRequest
 * 25) 24 /path/to/install/wiki/includes/Wiki.php(446): MediaWiki->main
 * 26) 25 /path/to/install/wiki/index.php(59): MediaWiki->run
 * 27) 26 {main