Last modified: 2010-07-04 00:16:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26224, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24224 - wgDBname is not defined for my account on en.wiki
wgDBname is not defined for my account on en.wiki
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Michael Dale
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-02 00:38 UTC by Ryan Kaldari
Modified: 2010-07-04 00:16 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ryan Kaldari 2010-07-02 00:38:21 UTC
For some reason, the Javascript variable wgDBname is not defined for my account (Kaldari) on the english wikipedia, i.e., the line:
wgDBname="enwiki",
is missing from the source. This only seems to occur with my account specifically and only on the english wikipedia. This prevents any Javascripts from knowing what project I'm on, which leads to all sorts of interesting problems.

Nimish has dubbed this the "Kaldari bug".
Comment 1 Nimish Gautam 2010-07-02 00:42:45 UTC
What other JS declarations are missing from that account vs others?
Comment 2 Bawolff (Brian Wolff) 2010-07-02 02:10:15 UTC
Do you have 'Disable AJAX Suggestions' option in special:preferences checked?
Comment 3 Ryan Kaldari 2010-07-02 17:04:50 UTC
Yep, that's it. I turned off Disable AJAX Suggestions and everything's fixed. I guess we should not be relying on wgDBname in our Javascript code so long as it is disableable.
Comment 4 Bawolff (Brian Wolff) 2010-07-04 00:16:28 UTC
(In reply to comment #3)
> Yep, that's it. I turned off Disable AJAX Suggestions and everything's fixed. I
> guess we should not be relying on wgDBname in our Javascript code so long as it
> is disableable.

although, one could make an argument that the variable should always be there.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links