Last modified: 2014-09-09 10:31:44 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 T72415, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70415 - "Invalid token" error when trying to add language link from Wikipedia
"Invalid token" error when trying to add language link from Wikipedia
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataClient (Other open bugs)
unspecified
All All
: High major with 3 votes (vote)
: ---
Assigned To: Wikidata bugs
:
: 70488 70511 70566 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-04 20:44 UTC by Tristan Miller
Modified: 2014-09-09 10:31 UTC (History)
13 users (show)

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


Attachments
Error! (182.30 KB, image/png)
2014-09-04 20:53 UTC, Sam Reed (reedy)
Details

Description Tristan Miller 2014-09-04 20:44:27 UTC
I'm helping someone translate English Wikipedia articles for Russian Wikipedia.  They produced the article [[:ru:St. Laurent Ferry]], which is a translation of [[:en:St. Laurent Ferry]].  They then tried to add a language link from the Russian article to the English article using the widget.  They selected the English Wikipedia in the first box, and "St. Laurent Ferry" in the second box.  (They started typing the name, and the widget successfully autocompleted it.)  However, when they press the button to add the link, they get the following error from the widget:

Произошла непредвиденная ошибка: $1
Подробности
Invalid token

We were able to reproduce this problem several times.
Comment 1 Kunal Mehta (Legoktm) 2014-09-04 20:48:22 UTC
Sorry to ask the obvious, but did you try logging out and logging in again?
Comment 2 Tristan Miller 2014-09-04 20:50:52 UTC
Yes, logging out and back in again didn't solve the problem.
Comment 3 Tristan Miller 2014-09-04 20:52:29 UTC
I should also note that they were successfully able to add several other language links on other articles they'd created a few days ago.  The problem started only with this article, which is (IIRC) their fourth one.
Comment 4 Sam Reed (reedy) 2014-09-04 20:53:51 UTC
Created attachment 16375 [details]
Error!

I can replicate it too...
Comment 5 Brad Jorsch 2014-09-04 21:03:27 UTC
When I try this widget on that page I get a different error message:

An unexpected error occurred: [Exception... "" nsresult: "0x805e0006 ()" location: "JS frame :: https://bits.wikimedia.org/ru.wikipedia.org/load.php?debug=true&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20140904T182600Z :: .send :: line 9592" data: no].
Comment 6 Kunal Mehta (Legoktm) 2014-09-04 21:08:44 UTC
I believe this was caused by I171db949bdec7fc56228023d0f449301ec470b12, and left a comment explaining why.
Comment 7 Kunal Mehta (Legoktm) 2014-09-04 21:10:26 UTC
In my network console, I see my enwp edit token being passed to Wikidata, which obviously won't work. It retries again, fetching a new edit token from enwp to use on wikidata, which fails again, displaying an error to the user.
Comment 8 Jon Harald Søby 2014-09-04 22:19:34 UTC
I came to report this bug as well on behalf of two users on nowiki who both have the same issue: https://no.wikipedia.org/wiki/Wikipedia:Torget#Problemer_med_interwiki

The error they are getting is "En uventet feil oppsto. 1$ - Invalid token.". I have no idea why it says 1$ and not $1 -- it's not from the system message translation, since that is (and always has been) correct. May not even be relevant at all, but worth keeping in mind.
Comment 9 Jon Harald Søby 2014-09-04 22:42:06 UTC
Scratch my last paragraph, it is apparently $1 and not 1$ (likely just a typo from one of the people who reported it).
Comment 10 tobias.gritschacher 2014-09-05 13:28:52 UTC
Should be fixed in https://gerrit.wikimedia.org/r/#/c/158599/
Comment 11 Aude 2014-09-05 14:28:29 UTC
we plan to deploy the fix on Monday.
Comment 12 db [inactive,noenotif] 2014-09-06 19:07:36 UTC
*** Bug 70488 has been marked as a duplicate of this bug. ***
Comment 13 Marius Hoch 2014-09-07 15:48:09 UTC
*** Bug 70511 has been marked as a duplicate of this bug. ***
Comment 15 Jon Harald Søby 2014-09-07 18:36:33 UTC
(In reply to Umar from comment #14)

See comment 11.
Comment 16 Kunal Mehta (Legoktm) 2014-09-08 17:38:34 UTC
*** Bug 70566 has been marked as a duplicate of this bug. ***

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


Navigation
Links