Topic on Project:Support desk

Several "ResourceLoader warnings" and "npp_ajax_request is not defined" issues

5
Niagarafalls (talkcontribs)

Hello,

I have setup a MediaWiki site several months ago. Its version is 2.9.1. I installed the following extensions:

Cite / CiteThisPage / Gadgets / ImageMap / InputBox / Interwiki / LocalisationUpdate / Nuke / ParserFunctions / PdfHandler / Poem / Renameuser /   SpamBlacklist / SyntaxHighlight_GeSHi / TitleBlacklist / WikiEditor / VisualEditor / Scribunto / TemplateData / AbuseFilter / GettingStarted / PageImages / SyntaxHighlight_GeSHi / MassMessage / Linter / Echo / CategoryTree / ReplaceText / GeoData / Popups / TextExtracts / BetaFeatures

When I access any wiki page, I get the following warnings and errors on my browser console. I wonder if somebody knows what causes the browser to generate such warnings and errors. Is there any conflict between extensions I have installed? Do I use an obsolete extension?

Thanks,

This page is using the deprecated ResourceLoader module "jquery.ui.widget".

This page is using the deprecated ResourceLoader module "jquery.ui.position".

This page is using the deprecated ResourceLoader module "jquery.tipsy".

mw.loader.implement.css

This page is using the deprecated ResourceLoader module "jquery.ui.core".

Please use "mediawiki.ui.button" or "oojs-ui" instead.

mw.loader.implement.css

2/w/load.php?debug=false&lang=fa&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1ghvyum:153 Use of "skin" is deprecated. Use mw.config instead.

get @ /w/load.php?debug=false&lang=fa&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1ghvyum:153

Uncaught ReferenceError: npp_ajax_request is not defined

Ciencia Al Poder (talkcontribs)

searching the web for npp_ajax_request looks like it's in some custom scripts. This is caused by some JavaScript loaded from your personal scripts or something in MediaWiki:Common.js or similar.

Niagarafalls (talkcontribs)

I imported MediaWiki:Common.js from Wikipedia without touching it. BTW, I deleted MediaWiki:Common.js, but I still get the same error.

TheDJ (talkcontribs)

The warnings are not a problem (it just takes long for all the existing modules to be rewritten to use the newer methodologies). The npp_ajax_request is more problematic.

npp_ajax_request() is part of a userscript or gadget however and not part of the main software. You should therefore check those. It's probably best to completely remove the offending code, or you have to search for a newer version of it (that is also actively supported) on wikipedia or something and copy it from there.

Niagarafalls (talkcontribs)

The issue is resolved.

There was a gadget as @TheDJ mentioned that caused npp_ajax_request error. I disabled it and everything looks good now.

There was also another gadget that generated all warning messages. I disabled that gadget as well. No warning anymore.