Page MenuHomePhabricator

book2scroll is not working (due to jquery 404?)
Closed, ResolvedPublic

Description

Book2scroll ( https://tools.wmflabs.org/book2scroll/) is not working for Bengali Wikisource. It is hanging at loading...

Screen Shot 2018-09-26 at 9.18.06 PM.png (227×1 px, 57 KB)

Event Timeline

Thanks for reporting this. For future reference, please provide steps to reproduce when you report bugs. See https://www.mediawiki.org/wiki/How_to_report_a_bug

Steps to reproduce:

Expected outcome:
Content is shown

Actual outcome:
Shows "Loading" forever. This problem is not limited to Bengali WIkisource. The "network" tab of the browser's Developer Tools says:

Source map error: request failed with status 404
Resource URL: https://tools.wmflabs.org/book2scroll/resources/js/jquery/jquery-1.10.1.min.js
Source Map URL: jquery-1.10.1.min.map
Loading failed for the <script> with source “https://bn.wikisource.org/w/api.php?callback=jQuery110105317475357023044_1537983124467&action=parse&page=Page%3AM%C3%A1rk_Likhita_Susam%C3%A1c%C3%A1r.djvu%2F1&format=json&_=1537983124468”.
Aklapper renamed this task from book2scroll is not working for Bengali Wikisource to book2scroll is not working (due to jquery 404?).Sep 26 2018, 5:40 PM
Aklapper added a project: Tools.

I have fixed the jQuery issue, but the underlying problem is that this code is very old (as in Toolserver-old), and only works with some site naming schemes. Other languages don't work either for many titles.

I get SyntaxError: unexpected token: identifier for any and every language nowadays.

Because toolforge forgot the replica.conf again, see T166949. Webservice restarted, manually, yet again, works. For the next few minutes, probably.

@Magnus Could you also enable it for zhwikisource? Thanks.