MediaWiki talk:Gadget-popups.js

About this board

Error `TypeError: pg.current.link is null`

1
Jdlrobson (talkcontribs)

While looking at logstash today I found this error Stacktrace is

at APIsharedImagePagePreviewHTML https://www.mediawiki.org/w/load.php?lang=fr&modules=ext.gadget.BugStatusUpdate%2CCleanDeleteReasons%2CCodeReview_checkedRevsExport%2CDotsSyntaxHighlighter%2CEdittools%2CEdittop%2CHotCat%2CNavigation_popups%2CNotifCountTitle%2CTabOverride%2Cajaxrecentchanges%2Cautolink%2CcollapsibleTables%2Cexternalsearch-bar%2Cpredefined-summaries%2Cpurgetab%2Crtrc%2Csite%2Ctabbedwindow%2CuserMessages%2Cuserfeedback%2Cvector-headanchor%2Cworkinprogress&skin=vector&version=zaz2n:111:495 at https://commons.wikimedia.org/w/api.php?format=json&formatversion=2&callback=pg.fn.APIsharedImagePagePreviewHTML&requestid=1&action=query&prop=revisions&rvprop=content&rvslots=main&titles=File%3ATranslate-move-page.png:1:11

Occurred on https://www.mediawiki.org/wiki/Help:Extension:Translate/Move_translatable_page#/media/File:Translate-move-page.png

Reply to "Error `TypeError: pg.current.link is null`"

Deprecated mw.RegExp.escape() used

4
FeRDNYC (talkcontribs)

This tool's literalizeRegex() function uses mw.RegExp.escape(), which causes the following message to be output repeatedly on the browser console:

Use of "mw.RegExp.escape" is deprecated. Use mw.util.escapeRegExp() instead.

The code at English Wikipedia has already been updated to call mw.util.escapeRegExp(); please update from there.

MarkAHershberger (talkcontribs)

@Krinkle I do not have rights to do this. Could you?

Bawolff (talkcontribs)

Yes Done

English wikipedia has other changes as well. I only adjusted the regexp part.

FeRDNYC (talkcontribs)

Works for me. I thank you, and my newly-silent (well, mostly, still some ResourceLoader whining) console thanks you!

There are no older topics