Last modified: 2013-08-03 01:25:05 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 T47825, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45825 - GettingStarted article click gives mw.Api console error on page visit
GettingStarted article click gives mw.Api console error on page visit
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
GettingStarted (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-07 05:53 UTC by spage
Modified: 2013-08-03 01:25 UTC (History)
5 users (show)

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


Attachments

Description spage 2013-03-07 05:53:43 UTC
In both Firefox and Chromium, upon clicking an article in GettingStarted, the console reports an error:

mw.Api error: http Object { xhr={...}, textStatus="error", exception= "" }

This is I think GettingStarted's prepareToSendOnTour() making an api post to set the userjs-gettingstarted-showtour user option to 0.

action=options&format=json&change=userjs-gettingstarted-showtour%3D0&token=4bf9599f4830316d4bdc4fd49a597cea%2B%5C

The user preference seems to be set to 0 despite the API warning and there isn't an actual API return failure, so maybe it's not significant.  It could be related to the apparent double calls to prepareToSendOnTour (bug 45824), or just making the API request and then leaving the page with window.location = url;
Comment 1 Matthew Flaschen 2013-03-07 06:40:03 UTC
Yeah, it's probably giving an error since the token is used more than once, since duplicate requests are sent.
Comment 2 Matthew Flaschen 2013-08-03 01:25:05 UTC
prepareToSendOnTour has been removed, as part of new enhancements to GettingStarted.

This should no longer be applicable.

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


Navigation
Links