https://bugzilla.wikimedia.org/show_bug.cgi?id=27353
Summary: IPv6 address not recognised
Product: MediaWiki
Version: 1.18-svn
Platform: All
OS/Version: Linux
Status: NEW
Keywords: ipv6
Severity: blocker
Priority: Normal
Component: General/Unknown
AssignedTo: [email protected]
ReportedBy: [email protected]
When attempting to access a MediaWiki installation via IPv6 (using the IP
address 2001:5c0:1400:a::df), I get the following error:
Unable to determine IP
Backtrace:
#0 /var/www/helpmebot.org.uk/w/includes/User.php(1517): wfGetIP()
#1 /var/www/helpmebot.org.uk/w/includes/db/Database.php(676): User->getName()
#2 /var/www/helpmebot.org.uk/w/includes/db/Database.php(1046):
DatabaseBase->query('SELECT lc_valu...', 'LCStore_DB::get')
#3 /var/www/helpmebot.org.uk/w/includes/db/Database.php(1130):
DatabaseBase->select('l10n_cache', Array, Array, 'LCStore_DB::get', Array,
Array)
#4 /var/www/helpmebot.org.uk/w/includes/LocalisationCache.php(764):
DatabaseBase->selectRow('l10n_cache', Array, Array, 'LCStore_DB::get')
#5 /var/www/helpmebot.org.uk/w/includes/LocalisationCache.php(318):
LCStore_DB->get('en', 'deps')
#6 /var/www/helpmebot.org.uk/w/includes/LocalisationCache.php(347):
LocalisationCache->isExpired('en')
#7 /var/www/helpmebot.org.uk/w/includes/LocalisationCache.php(259):
LocalisationCache->initLanguage('en')
#8 /var/www/helpmebot.org.uk/w/includes/LocalisationCache.php(205):
LocalisationCache->loadItem('en', 'defaultUserOpti...')
#9 /var/www/helpmebot.org.uk/w/languages/Language.php(473):
LocalisationCache->getItem('en', 'defaultUserOpti...')
#10 /var/www/helpmebot.org.uk/w/includes/User.php(1059):
Language->getDefaultUserOptionOverrides()
#11 /var/www/helpmebot.org.uk/w/includes/User.php(1967):
User::getDefaultOptions()
#12 /var/www/helpmebot.org.uk/w/includes/parser/ParserOptions.php(207):
User->getOption('numberheadings')
#13 /var/www/helpmebot.org.uk/w/includes/parser/ParserOptions.php(159):
ParserOptions->initialiseFromUser(Object(User))
#14 /var/www/helpmebot.org.uk/w/includes/Article.php(4403):
ParserOptions->__construct(Object(User))
#15 /var/www/helpmebot.org.uk/w/includes/Article.php(839):
Article->getParserOptions()
#16 /var/www/helpmebot.org.uk/w/includes/Wiki.php(477): Article->view()
#17 /var/www/helpmebot.org.uk/w/includes/Wiki.php(69):
MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title),
Object(User), Object(WebRequest))
#18 /var/www/helpmebot.org.uk/w/index.php(104):
MediaWiki->performRequestForTitle(Object(Title), Object(Article),
Object(OutputPage), Object(User), Object(WebRequest))
#19 {main}
Adding a few echos seems to reveal that the line:
$ip = IP::canonicalize( $_SERVER['REMOTE_ADDR'] );
returns nothing.
This is currently running r82006.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l