Page MenuHomePhabricator

"Image Annotator" gadget on Commons: false positive error message : Version inconsistency after saving
Closed, ResolvedPublic

Description

When adding image annotations with the gadget ImageAnnotator, for some weeks now it seems to fail with 'Exception Error: Version inconsistency after saving. Please reload the page.'

The annotation is written correctly to the file description.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 25 2019, 12:48 PM

@Herzi.Pinki: Hi, the Gadgets project is for the PHP extension which allows to load gadgets, not for random gadgets themselves, so this might be the wrong place and you may have to report this on-wiki if this turns out to be broken code in the gadget itself...

Which exact wiki is this about? Please include URLs to reproduce a bug when reporting a bug. See https://www.mediawiki.org/wiki/How_to_report_a_bug :) Thanks!

Aklapper renamed this task from Image Annotator: false positive error message : Version inconsistency after saving to "Image Annotator" gadget on Commons: false positive error message : Version inconsistency after saving.Jun 25 2019, 4:00 PM
Aklapper added a project: Commons.

On-wiki content like user scripts, gadgets, templates, custom CSS are local features and managed independently on each wiki. Usually Phabricator is used for MediaWiki, MediaWiki extensions, or server configuration and I'd say that https://commons.wikimedia.org/wiki/MediaWiki_talk:Gadget-ImageAnnotator.js is the place to discuss the issue, but as Commons exists I'm going to leave it to the Commons folks to decide this...

Steinsplitter added a subscriber: Steinsplitter.EditedJun 25 2019, 4:38 PM

The gadget has currently no maintainer and is very old. :( Maybe something is deprecated or some kind of caching issue.

LAPI is not maintained as well, and should probably be replaced by the MWJS stuff.

var revision_id = LAPI.WP.revisionFromHtml( request.responseText );
if ( !revision_id ) {
	if ( doc.isFake && ( typeof doc.dispose === 'function' ) ) { doc.dispose(); }
	failureFunc( request, new Error( '#Version inconsistency after saving. Please reload the page.' ) );
	return;
}

I applied the fix by Lupo himself. So this is probably fixed!?

Perhelion closed this task as Resolved.Sat, Aug 3, 4:21 PM