Info failed error in ext.info.js
suriyaa opened this issue · 0 comments
suriyaa commented
MediaWiki Topic: https://www.mediawiki.org/wiki/Topic:Uq1vy9mgrep5h8wl
When calling the "page info" item, it just shows a small red-bordered rectangle telling "Info failed".
The error "Info failed" obviously results from the following code in ext.info.js
:
var postArgs = { action: 'info', titles: mw.config.get( 'wgPageName' ) };
new mw.Api().post( postArgs ).then( function () {
location.reload();
}, function () {
mw.notify( mw.msg( 'info-failed' ), { type: 'error' } );
} );
(reported by the MediaWiki user AnonymusGdpr)