Topic on Project:Support desk

ENG Wikinews's Edittools not working properly

10
George Ho (talkcontribs)

There may be issues with English Wikinews's Edittools or its javascript code for Edittools. I tried raising the issue there, but then I receive responses from one user using IP address and no other.

I was able to reproduce the error. Quoting my own message from this page:

  1. Go to the (wiki)editor.
  2. The menu does not appear until you click either "Show preview", "Show changes", or reload button five, six, or ten times.
    1. If the menu appears, and you click one of the buttons from the lower editing tool, the script does not load the insertion of any option that you choose, like {{source}}.
    2. Rather the page scrolls up either one part or to the top of the page.
  3. When the menu does not appear, and you click one of the buttons from the lower editing tool, the script loads the insertion of any option that you choose.

I tested the tools at IE11 and Google Chrome 66.0.3359.170 (latest stable version); the steps there were reproduced well. I also tested Firefox 60.0 (latest stable version); while the scroll menu always appears, making #2 un-reproductive, the other steps also occur. I realized that I was wrong about Firefox-EditTools interaction; the tools don't work.

Malyacko (talkcontribs)
George Ho (talkcontribs)

When I was using IE11's dev tools (i.e. F12 key), I could not find "unhandled exceptions". Nonetheless, I went to the editor, and then I opened up the dev tools. I found this error:

SCRIPT16389: Unspecified error.
File: index.php, Line: 1, Column: 1

This occurs only when I don't open the dev tools until after I open the editor.

Moreover, when I used the scroll menu from the Edittools and then changed from one submenu to another (e.g. "Templates" to "Wikicode", I found this warning (not an error):

DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337
File: index.php

Then I chose to pause on "all exceptions"; I found multiple warnings saying that specific syntax codes (or tools?) are "deprecated".

Then I went to Chrome's dev tools. I found one "warning" message:

Use of "skin" is deprecated. Use mw.config instead.

It also came with the link: https://en.wikinews.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=vector&version=0upuj5q

Also, when I clicked on the scroll menu, one of "verbose" messages appears:

[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

This link came with it: https://en.wikinews.org/w/index.php?title=Wikinews:Water_cooler/policy&action=edit&section=new#

Then I went to Firefox's. I found this warning:

Use of "skin" is deprecated. Use mw.config instead.

Other browsers' dev tools have this similar message. I could not find exceptions or errors, according to Firefox's dev tools. I found another message:

JQMIGRATE: Migrate is installed with logging active, version 3.0.1

Other browsers' dev tools receive the same message, but they don't treat it like a warning (or something like that).

Malyacko (talkcontribs)
George Ho (talkcontribs)

I ran the "debug=true" JS code at IE11. I found this exception:

SCRIPT5007: Unable to get property 'getUrl' of undefined or null reference
File: load.php, Line: 3869, Column: 3

Then I ran dev tools at Chrome and found this:

Uncaught TypeError: Cannot read property 'getUrl' of undefined
at HTMLDocument.<anonymous> (https://en.wikinews.org/w/index.php?title=MediaWiki%3AComments.js&action=raw&ctype=text/javascript)
at mightThrow (https://en.wikinews.org/w/load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=vector&version=0upuj5q)
at process (https://en.wikinews.org/w/load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=vector&version=0upuj5q)

I'll use Firefox's dev tools soon.

George Ho (talkcontribs)
Malyacko (talkcontribs)

Whatever gadget or user script file "index.php:58:8" points to, it needs fixing the usage of mw.util. See https://phabricator.wikimedia.org/T164242 for hints.

Similar for "Unable to get property 'getUrl' of undefined or null reference" above.

George Ho (talkcontribs)

Though the reply is five months late, I figured that I can push the topic up.

I realized that the error message is unrelated to the issue with edittools, Malyacko. When I was using debug=true in the address bar, like I did with this page, I just noticed that the "Opinions" tab, a local en-wikinews gadget, doesn't appear. Nevertheless, the error message from the developer tools was addressing an unrelated concern (about "Opinions" tab), not this one (about edittools).

This post was hidden by AhmadF.Cheema (history)
This post was hidden by AhmadF.Cheema (history)
Reply to "ENG Wikinews's Edittools not working properly"