Last modified: 2012-02-24 02:52:20 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 T29955, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27955 - Javascript Redirect to Mobile Site Broken (MobileRedirect.js?4.2 line 13)
Javascript Redirect to Mobile Site Broken (MobileRedirect.js?4.2 line 13)
Status: RESOLVED FIXED
Product: Wikipedia App
Classification: Unclassified
Generic (Other open bugs)
1.0.0 (Android)
All All
: Normal major
: ---
Assigned To: Hampton Catlin
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-09 06:50 UTC by tomhopper
Modified: 2012-02-24 02:52 UTC (History)
2 users (show)

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


Attachments

Description tomhopper 2011-03-09 06:50:39 UTC
Wikipedia pages no longer redirect to the mobile site on iPhone. Using the Wikipedia "Enable mobile version" article link does not fix the problem (https://secure.wikimedia.org/wikipedia/en/wiki/Wikipedia:Enable_mobile_version).

iPhone Safari error console reports the following error:
JavaScript Error on Line 13
http://bits.wikimedia.org/w/extension...ikimediaMobile/MobileRedirect.js?4.2
ReferenceError: Can't find variable: wgNamespaceNumber

Note that the "?4.2" at the end of the error line may be truncated by the iPhone display width.

The Wikipedia mobile pages are accessible manually by inserting "m." in the URI (e.g. "en.m.wikipedia.org").
Comment 1 Roan Kattouw 2011-03-09 11:55:22 UTC
Should be fixed with the live hack from r83579
Comment 2 tomhopper 2011-03-09 12:25:06 UTC
Now I get the following error:

JavaScript Error on Line 18
http://bits.wikimedia.org/w/extension...ikimediaMobile/MobileRedirect.js?5.2
SyntaxError: Parse error
Comment 3 tomhopper 2011-03-09 12:28:20 UTC
(In reply to comment #2)
> Now I get the following error:
> 
> JavaScript Error on Line 18
> http://bits.wikimedia.org/w/extension...ikimediaMobile/MobileRedirect.js?5.2
> SyntaxError: Parse error

Looking at the code for MobileRedirect.js, there's clearly a closing parenthesis missing from the "if" statement.
Comment 4 Roan Kattouw 2011-03-09 14:47:12 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Now I get the following error:
> > 
> > JavaScript Error on Line 18
> > http://bits.wikimedia.org/w/extension...ikimediaMobile/MobileRedirect.js?5.2
> > SyntaxError: Parse error
> 
> Looking at the code for MobileRedirect.js, there's clearly a closing
> parenthesis missing from the "if" statement.
Was fixed in r83584.

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


Navigation
Links