MediaWiki talk:Gadget-AjaxQuickDelete.js/Archive/2011

From Wikimedia Commons, the free media repository
Jump to: navigation, search
Archive This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page.

D.giflag.gif

I came across a strange scenario when renaming files. There was a rename request on File:Digital-Motorsport-Flags.gif to rename it to File:Auto Racing Yellow Digiflag.gif. But through this tool, I was unable to use the word Digiflag, but it was only coming as D.giflag. I think the tool mistook the gif inside the word as the file extension, probably. You can see the diff to see what exactly happened. I tried renaming D.giflag to Digiflag and the tool was not allowing me to do so. So I finally used the traditional Move tool to rename it correctly.

The same happened for another file File:Auto Racing Green Digiflag.gif --Sreejith K (talk) 08:15, 6 January 2011 (UTC)

Same for me:
The move & replace JS seems to have a bug with the new file name here: http://commons.wikimedia.org/w/index.php?title=File:Auto_Racing_Yellow_Digiflag-SC.gif&action=history A malformed name was already pre-filled in the target box. I corrected it and it still moved it to the wrong name.
I tested it: I added {{rename|Auto Racing Yellow Digiflag-SC.gif|test}} to a test file. The rename box proposed the name "File:Auto Racing Yellow D.giflag-SC.gif.jpg" then.
Cheers --Saibo (Δ) 21:49, 24 January 2011 (UTC)
Yep, your assumption about .gif was correct. Shouldn't happen again anymore--DieBuche (talk) 13:04, 8 February 2011 (UTC)
Humm, thanks, but... now the script does not work at all (does not show up in the rename template and the move tab is also missing) - but maybe it is related to the tried software update today. Cheers --Saibo (Δ) 15:22, 8 February 2011 (UTC)
I think it's the software update. It's not exactly the only thing that's missing. Whois and global contributions at the bottom of contribution lists are also missing, for example. LX (talk, contribs) 15:55, 8 February 2011 (UTC)
Works. Thanks DieBuche! Viele Grüße --Saibo (Δ) 20:06, 8 February 2011 (UTC)
This section was archived on a request by: Saibo (Δ) 20:06, 8 February 2011 (UTC)

TypeError: result.query is undefined

As above, when "no sources" was treid on File:Warszawa 1861 1.JPG Masur (talk) 05:36, 23 February 2011 (UTC)

I tried the "report Copyvio" link on File:Ilaiyaraaja-01.jpg and got the same error. I used a source link (Image is on [1]) SpacemanSpiff (talk) 06:40, 23 February 2011 (UTC)
Sorry for that. Back to normal now--DieBuche (talk) 09:42, 23 February 2011 (UTC)
Can't nominate categories for deletion because this error still occurs. :| TelCoNaSpVe :| 20:48, 25 February 2011 (UTC)
The same for me.--Avron (talk) 12:37, 26 February 2011 (UTC)
Fixed as well. Clear your cache. --DieBuche (talk) 14:08, 26 February 2011 (UTC)
This section was archived on a request by: Leyo 15:57, 29 June 2011 (UTC)

Move & Replace problem

Ad. Commons:Village pump#Move & Replace problem

  • FireFox 3.6.15

// Bubel (dyskusja) 21:40, 14 March 2011 (UTC)

This section was archived on a request by: Leyo 15:57, 29 June 2011 (UTC)

Page reload fails after tagging a file if the filename contains a space character.

Since script's last edit, if I use the no permission / no license / no source buttons, the page is not reloaded after finishing the action. This happens on Firefox 4. Would be nice, if somebody could fix this. You may use File:Sulfamerazine reacts with DMAB.svg for reproducing this problem. And please have a look at MediaWiki talk:Gadget-UserMessages.js, there is work, too. Thank you. --RE RILLKE Questions? 15:15, 2 April 2011 (UTC)

Same problem in Firefox 3.6. LX (talk, contribs) 21:41, 4 April 2011 (UTC)
I made a small edit to the script that should fix this. Seems to be working for me now. —Ilmari Karonen (talk) 22:41, 4 April 2011 (UTC)
Thanks, it works now. --RE RILLKE Questions? 15:09, 5 April 2011 (UTC)
This section was archived on a request by: Leyo 15:57, 29 June 2011 (UTC)

file marked for speedy deletion

This .js-file is listed in Category:Copyright violations since a while now. Can't this be corrected? Otherwise, some it will inadvertently be deleted. --Túrelio (talk) 10:03, 22 April 2011 (UTC)

<source lang="JavaScript"> has been removed. This is probably the reason.

How to fix it?

Replace

{{copyvio|1=%PARAMETER%}}

with

{\{copyvio|1=%PARAMETER%}}

or insert this in the first line:

// <nowiki>

and to the last line of code:

// </nowiki>

. This will prevent this behavior. -- RE rillke questions? 14:35, 22 April 2011 (UTC)

✓ Done by DieBuche. Thank you. -- RE rillke questions? 22:37, 24 April 2011 (UTC)

This section was archived on a request by: RE rillke questions? 18:08, 5 July 2011 (UTC)

502 error

In the last few days I often get this error (http://imageshack.us/f/263/code502error.jpg/) after image renaming. Do others have the same problem? mickit 09:32, 5 June 2011 (UTC)

It would be of interest to me, whether the action/task has been performed correctly or has been aborted. Thank you. -- RE rillke questions? 16:28, 5 June 2011 (UTC)
Was a redirect involved? -- RE rillke questions? 16:30, 5 June 2011 (UTC)
In most cases the task has been perfomed correctly. But, I noticed that sometimes there's a problem with the last step - the script don't place request on the CommonsDelinker's talk page. And for the record, I'm not talking about images that are not used anywhere, so that step is unnecessary. mickit 17:44, 5 June 2011 (UTC)
First of all: 502 indicates, it is a server error. Question is, whether the error occured before or while the last step. We probably should file a bug. Would you help me providing further information if they are asked by an API-developer? Thanks. -- RE rillke questions? 20:33, 5 June 2011 (UTC)
Yes, sure. BTW, the error occured while the last step. The message: Ordering CommonsDelinker to replace all usage appears on the screen for about 10 seconds and then I get the mentioned error message. I hope this was helpful :) mickit 20:57, 5 June 2011 (UTC)

┌─────────────────────────────────┘
Does this error still occur. -- RE rillke questions? 18:09, 5 July 2011 (UTC)

No. It seems that now everything is OK :) Thanks :) mickit 19:36, 5 July 2011 (UTC)
This section was archived on a request by: RE rillke questions? 19:24, 5 August 2011 (UTC)

Prevent transclusion - in template namespace

It's actually very confusing for newbies to MediaWiki if they get a delete-tag transcluded with a template.

So it's a good idea to prevent this. Replace

this.tag = "{{delete|reason=%PARAMETER%|subpage=" + this.pageName + this.formatDate("|year=YYYY|month=MON|day=DAY}}\n");

with

this.tag = ("Template" == mw.config.get("wgCanonicalNamespace")) ? "<noinclude>" :"" + "{{delete|reason=%PARAMETER%|subpage=" + this.pageName + this.formatDate("|year=YYYY|month=MON|day=DAY}}\n") + ("Template" == mw.config.get("wgCanonicalNamespace")) ? "</noinclude>" :"";

or

if ("Template" == mw.config.get("wgCanonicalNamespace")) { this.tag = "<noinclude>{{delete|reason=%PARAMETER%|subpage=" + this.pageName + this.formatDate("|year=YYYY|month=MON|day=DAY}}\n</noinclude>"); }
else { this.tag = "{{delete|reason=%PARAMETER%|subpage=" + this.pageName + this.formatDate("|year=YYYY|month=MON|day=DAY}}\n"); }

Sincerley -- RE rillke questions? 12:24, 20 July 2011 (UTC)

This section was archived on a request by: RE rillke questions? 19:20, 5 August 2011 (UTC)

Additional transclusion to WikiProject subpage

Would it be difficult to add an option “Nominate for deletion (chemistry)”, where the DR subpage is additionally transcluded to Commons:WikiProject Chemistry/Deletion requests? The required code would have to be added to the personal monobook.js or vector.js, of course. --Leyo 22:57, 1 May 2011 (UTC)

Yes it would be difficult. But if you want to invent a solution: JavaScript allows you to overwrite objects or methods of objects. Do you think anyone will put the "extension" to his personal script? -- RE rillke questions? 15:12, 28 May 2011 (UTC)
We could perhaps make AjaxQuickDelete.nominateForDeletion() take an extra parameter (I'd suggest an array of named parameters, for possible future expansion) specifying additional pages to transclude the nomination onto. That should make the rest relatively easy to write as a separate user script. —Ilmari Karonen (talk) 20:45, 28 May 2011 (UTC)
@Rillke: Unfortunately, my JS skills are very limited. No, not anyone, but the members of the WikiProject Chemistry (in the case of the example above).
@Ilmari Karonen: Your idea sounds promising. I am quite sure that other WikiProjects would also benefit from such a feature.
--Leyo 22:56, 29 May 2011 (UTC)

┌─────────────────────────────────┘
I would still prefer a bot crawling the DR-category and provide a notifiaction service on its settings like that

Is also in category (Category) Notification to (URL) Parent-Cats-Search (BOOL)
Category:Chemistry de:Wikipedia_Diskussion:Redaktion_Chemie/All/Notify TRUE
Category:Polymerization de:Wikipedia_Diskussion:Redaktion_Chemie/Polymer/Notify FALSE

-- RE rillke questions? 10:18, 30 May 2011 (UTC)

I have two main concerns: (i) Notifying the Commons WikiProject(s) is sufficient IMHO. (ii) Not all chemistry related files are in a subcategory of Category:Chemistry, some are even uncategorized. --Leyo 10:38, 30 May 2011 (UTC)
Ok, Ilmari Karonen, when we can expect a release? (sounds promising ... :)) Ah, and don't forget #Junk at User talk:CommonsDelinker/commands. Nice editing. -- RE rillke questions? 20:44, 5 June 2011 (UTC)
What about adding a template which categorizes the requests?
   nominateForDeletion: function (page, params) {
      this.pageName = (page === undefined) ? wgPageName : page;
      this.startDate = new Date();
 
      // [...]
      this.talk_summary = "[[:" + this.pageName + "]] has been nominated for deletion";
	  
      if (params) {
        params = this.params;
      }
 
      // first schedule some API queries to fetch the info we need...
// [...]

   createRequestSubpage: function () {
      this.templateAdded = true; // we've got this far; if something fails, user can follow instructions on template to finish
      var page = [];
      page.title = this.requestPage;
      page.text = (this.params ? (this.params.transclude ? this.params.transclude : "") : "") + "\n\n=== [[:" + this.pageName + "]] ===\n" + this.reason + " ~~" + "~~\n";
// [...]

AjaxQuickDelete.nominateForDeletion(void(0), { transclude: '{{ChemDR}}' });

Sincerely -- RE rillke questions? 13:16, 30 July 2011 (UTC)

Honestly, I would prefer a transclusion to a subpage for several reasons. One is that then probably not all subject-related DRs would transclude this template. And modifying file pages only for adding the template is not nice IMHO. Similarly, the template would have to be removed once a DR is decided as kept. A subpage allows a much quicker overview than a category. --Leyo 11:52, 2 August 2011 (UTC)
I don't want to modify the file-pages. I'd like to add the template/category to the deletionrequest-subpage (e.g. Commons:Deletion requests/File:Anthracene.jpg). I'll try to figure out wether it is possible to automatically prevent the inclusion of the cat when the DR is closed. -- RE rillke questions? 12:47, 2 August 2011 (UTC)
I agree that it is better to categorize the DR subpages instead of the file pages. I however would still prefer to have the DR subpages transcluded to a specific page of a WikiProject. The quick overview (all DR on a single page, no clicking of all subpages is needed) and the visibility of changes in the watchlist are IMHO the most important arguments. --Leyo 15:09, 2 August 2011 (UTC)
Now I am convinced. But this will require a few more changes. -- RE rillke questions? 15:13, 2 August 2011 (UTC)

Not nice but everyone is free to improve:

window.AjaxQDChemFix = {
	installChemFix: function() {
		if (6 == wgNamespaceNumber) {
			addPortletLink('p-tb', 'javascript:AjaxQuickDelete.nominateForDeletionChem();', "Nom for del-Chem", 't-ajaxquickdeletechem', null);
			$('#t-ajaxquickdelete > a').attr('href', 'javascript:AjaxQuickDelete.nominateForDeletionWrap();');
		}
	},
	nominateForDeletionWrap: function() {
		this.isChem = false;
		this.nominateForDeletion();
	},
	nominateForDeletionChem: function() {
		this.isChem = true;
		this.dailyLogPageChem = "Commons:WikiProject Chemistry/Deletion requests";
		this.nominateForDeletion();
	},
	listRequestSubpage: function () {
		var page = {};
		page.title = this.dailyLogPage;
		page.text = "\n{{" + this.requestPage + "}}\n";
		page.watchlist = 'nochange';
		page.editType = 'appendtext';
 
		if (this.isChem) {
			var pageChem = {
				title: this.dailyLogPageChem,
				text: "\n{{" + this.requestPage + "}}\n",
				watchlist: 'nochange',
				editType: 'prependtext'
			};
			this.savePage(pageChem, "Listing [[" + this.requestPage + "]]", 'cdummy');
		};
 
		this.showProgress(this.i18n.listingNomination);
		this.isChem = false;
		this.savePage(page, "Listing [[" + this.requestPage + "]]", 'nextTask');
	},
	cdummy: function () {
	}
};

if (6 == wgNamespaceNumber) {
	mediaWiki.loader.using('jquery.ui.dialog', function () {
		$(document).ready(function () {
			//$.extend( [ deep ], target, object1, [ objectN ] )
			$.extend( true, AjaxQuickDelete, AjaxQDChemFix ) // merge the content into AjaxQuickDelete-Object; returnvalue is the merged object but AjaxQuickDelete is also modified
			AjaxQuickDelete.installChemFix();
			try {
				delete AjaxQDChemFix; // Destroy this object
			} catch (ex) {
				AjaxQDChemFix = {};
			}
		});
	});
};

-- RE rillke questions? 16:41, 25 August 2011 (UTC)

Thanks a lot. I put a slightly modified version to User:Leyo/del-chem.js. I think this method will be useful for other WikiProjects having DR subpages. --Leyo 17:11, 25 August 2011 (UTC)
This section was archived on a request by: RE rillke questions? 16:41, 25 August 2011 (UTC)

Seen hashes is a divine idea, but there is missing something

{{editprotected}} Please replace

if (info[i].sha1 && seenHashes[info[i].sha1]) continue; // skip reverts

with

if (info[i].sha1 && seenHashes[info[i].sha1]) continue; // skip reverts
seenHashes[info[i].sha1] = true;

(=inserting one line of code) Thank you -- RE rillke questions? 22:28, 4 September 2011 (UTC)

done -Ben.MQ (talk) 12:33, 5 September 2011 (UTC)
Thank you. -- RE rillke questions? 14:00, 5 September 2011 (UTC)
This section was archived on a request by: RE rillke questions? 14:00, 5 September 2011 (UTC)

I had the following error

An error occurred while trying to do the requested action. To nominate this file for deletion, please edit the page to add the {{delete}} template and follow the instructions shown on it. A detailed description of the error is shown below: API request returned code 502 errorError code is undefined Report the error here

Teofilo (talk) 19:03, 5 August 2011 (UTC)

see above + bugzilla:30201 Anyway thanks for reporting. -- RE rillke questions? 19:10, 5 August 2011 (UTC)
This section was archived on a request by: RE rillke questions? 09:04, 9 September 2011 (UTC)

Unknown error

Sometimes I get the following error:

API request returned code 502 errorError code is undefined

Though the strange thing is that everything went well: the file is renamed, the template removed and a command is added at User talk:CommonsDelinker/commands. What's the cause of this error? Kind regards, Trijnstel (talk) 19:09, 5 August 2011 (UTC)

see above + bugzilla:30201 Anyway thanks for reporting. -- RE rillke questions? 19:11, 5 August 2011 (UTC)
This section was archived on a request by: RE rillke questions? 09:06, 9 September 2011 (UTC)

could not tag File:UKRAM_BL_V_Q.jpg with "no permission"

Hi!

I could not tag File:UKRAM_BL_V_Q.jpg with the "no permission" button. --ALE! ¿…? 06:53, 5 September 2011 (UTC)

... and the error message was? Or none? Or no toolbar link? Thanks for reporting this bug. -- RE rillke questions? 07:26, 5 September 2011 (UTC)

The error message was:
An error occurred while trying to do the requested action. 
A detailed description of the error is shown below:
[object Error]
The browser was IE7. --ALE! ¿…? 08:10, 5 September 2011 (UTC)

The bug still persists with any image and any toolbox button. --ALE! ¿…? 06:56, 6 September 2011 (UTC)

Could you please replace
    fail: function (err) {

with

    fail: function (err) {
      if ('object' === typeof err) {
         var stErr = err.message + '<br/>' + err.name
         if (err.lineNumber) stErr += ' @line' + err.lineNumber;
         err = stErr;
      }


Then, Please purge your browser’s cache . (You only need to do it once.)

Internet Explorer: press Ctrl+F5, Firefox: hold down Shift while clicking Reload (or press Ctrl+ Shift+R), Opera/Konqueror: press F5, Safari: hold down Shift+alt while clicking Reload, Chrome: hold down Shift while clicking Reload

And try it again. Yes, you get the error a new. But this time we get the real error-description. Thank you. BTW do you get a lot of "access denied" errors? -- RE rillke questions? 16:42, 7 September 2011 (UTC)
Where should I put the script above?
I get the errors all the time with IE7. But this started only a couple of days ago. --ALE! ¿…? 09:57, 8 September 2011 (UTC)
Go to the front page. Use Ctrl+F / Strg+F and search for fail: function (err) {
Then replace the line as written above. Make sure just to copy & paste and that fail: function (err) { is there only once. Then, hit preview, and look for "nominate for deltion" or "löschung vorschlagen". If it is there, save the page. Then Please purge your browser’s cache . (You only need to do it once.)

Internet Explorer: press Ctrl+F5, Firefox: hold down Shift while clicking Reload (or press Ctrl+ Shift+R), Opera/Konqueror: press F5, Safari: hold down Shift+alt while clicking Reload, Chrome: hold down Shift while clicking Reload and test the no source, no license, ... nominate for deletion -buttons again. Report the error here, please. Lupo is working on a solution for HotCat for IE7 and I hope we can adopt this here. -- RE rillke questions? 10:18, 8 September 2011 (UTC)

Using the buttons "Report copyright violation", "No permission", and "No source" produced this error:
An error occurred while trying to do the requested action. 
A detailed description of the error is shown below:
Zugriff verweigert 
TypeError
I hope this info helps. --ALE! ¿…? 11:40, 8 September 2011 (UTC)
Yes as it confirms my thoughts. Since Lupo has more experience, I wait for his advice. You should also know, it is a bug that just occurs in IE7. Thanks. -- RE rillke questions? 11:56, 8 September 2011 (UTC)

Ok, I worked out a solution. Replace

   apiURL: wgServer + wgScriptPath + "/api.php",

with

   apiURL: (/^\/\//.test(mw.config.get("wgServer")) ? document.location.protocol : '') + mw.config.get("wgServer") + mw.util.wikiScript( 'api' ),

-- RE rillke questions? 12:23, 8 September 2011 (UTC)

Everything works again. Thank you! Unfortunately, I can not use other browsers than IE7 where I do some of the edits. --ALE! ¿…? 08:17, 9 September 2011 (UTC)

The quick deletion links on the latest files page do not work with IE9 is this also related to this script? --ALE! ¿…? 15:20, 11 September 2011 (UTC)

I don't think so. Do you mean Special:NewFiles? AFAIK this script does not install a link there. -- RE rillke questions? 18:58, 11 September 2011 (UTC)
This section was archived on a request by: RE rillke questions? 09:03, 9 September 2011 (UTC)

API error

This section was archived on a request by: DieBuche (talk) 07:55, 1 November 2011 (UTC)

I got the following while trying to rename File:ST Wiki.jpg to pre-existing File:Shashi Tharoor.jpg because all the nominator wrote was "{{Rename|Shashi Tharoor}}", which comes up as redlinked File:Shashi Tharoor (leading me to believe that there was no File:Shashi Tharoor.jpg):

An error occurred while trying to do the requested action.

A detailed description of the error is shown below: API request failed (articleexists): The destination article already exists and is not a redirect to the source article

Please make the "renamed to" filename consistent with the changes in AjaxQuickDelete.js (which invisibly appended ".jpg" in this case) so that we may use a redlink as a reliable indicator that the destination filename does not yet exist. Thank you.   — Jeff G. ツ 03:52, 21 January 2011 (UTC)

I'll have a look into it, but I don't think it'll be easy--DieBuche (talk) 13:07, 8 February 2011 (UTC)

Can't delete redirects

This section was archived on a request by: DieBuche (talk) 08:38, 1 November 2011 (UTC)

I haven't been able to delete redirects for a while and sometimes my browser hangs (briefly) during the error. I'm sort of OSD when it comes to file movers not deleting poor redirects. Can someone get rid of this one for me, please? It's an implausible typo and it serves no function after the file was moved. Thanks. – Keraunoscopia (talk) 23:32, 1 April 2011 (UTC)

Thanks so much, whoever deleted it! I wanted to be a little more specific; I wasn't able to use the "nominate for deletion" button on a redirect, and I would get a pop-up window that said to report it here. I don't think I made that clear. Otherwise, I'll just list the redirects at the deletion request page. – Keraunoscopia (talk) 10:15, 3 April 2011 (UTC)
Fixed --DieBuche (talk) 08:38, 1 November 2011 (UTC)

Filemove error

:This section was archived on a request by: DieBuche (talk) 08:15, 1 November 2011 (UTC)

While trying to move File:946511-16-0.jpg, I got the message that follows:

An error occurred while trying to do the requested action. 
A detailed description of the error is shown below:
API request failed (unknownerror): Unknown error: ``imageinvalidfilename
Report the error here

I simply clicked the "Move file and replace all usage" button; this worked fine with several other images that I attempted to move immediately before this one. I'm using IE 8; I have no custom Javascript installed; I'm a filemover but not an admin. If you have any questions for me, please leave a note on my talk page. Nyttend (talk) 13:46, 28 April 2011 (UTC)

Mediawiki didn't like the name. Do you know what it was?--DieBuche (talk) 12:13, 2 May 2011 (UTC)

Cannot delete redirect page

This section was archived on a request by: DieBuche (talk) 08:38, 1 November 2011 (UTC)

I tried to delete File:DSC06231-1.jpg using the link in the left column "Nominate for deletion" and got message "An error occurred while trying to do the requested action. To nominate this file for deletion, please edit the page to add the {{delete}} template and follow the instructions shown on it. A detailed description of the error is shown below: TypeError: info is undefined Report the error here". Wouter (talk) 06:51, 29 June 2011 (UTC)

Why do you want to nominate a redirect for deletion? It can be made speedy. If you feel that the redirect is unnecessary, please put {{bad name}} template on it. --Sreejith K (talk) 07:55, 29 June 2011 (UTC)
Thanks for the info. When the "Nominate for deletion" link gives an error and there is a request "Report the error here" I do that. If the error should not be reported, it may be better to delete that part of the message. Wouter (talk) 15:19, 29 June 2011 (UTC)
Fixed --DieBuche (talk) 08:38, 1 November 2011 (UTC)

Unknown error: ``imageinvalidfilename

:This section was archived on a request by: DieBuche (talk) 08:15, 1 November 2011 (UTC)

I cannot rename File:About - La vieille Roche : 1ère partie, le mari imprévu.djvu : I've got the following message : An error occurred while trying to do the requested action. A detailed description of the error is shown below: API request failed (unknownerror): Unknown error: ``imageinvalidfilename''. Why?

Cdlt, VIGNERON * discut. 11:09, 19 July 2011 (UTC)

You probably have unallowed characters in the new name... --DieBuche (talk) 15:35, 19 July 2011 (UTC)
Wich one ? the « : » ? and why was it allowed in the original name ?? Very strange… Cdlt, VIGNERON * discut. 20:01, 19 July 2011 (UTC)

Can't nominate a redirect for deletion

This section was archived on a request by: DieBuche (talk) 08:38, 1 November 2011 (UTC)

At File:Bell.jpg, I clicked "nominate for deletion", typed my rationale, and clicked "Proceed", but I got the following message:

An error occurred while trying to do the requested action. To nominate this file for deletion, please edit the page to add the {{delete}} template and follow the instructions shown on it.
A detailed description of the error is shown below:
'length' is null or not an object
TypeError
Report the error here

Is there any way to nominate redirects for deletion besides doing it manually? Nyttend (talk) 20:51, 4 October 2011 (UTC)

Difficult from the POV of the scipt. Does the user want the redirect deleted or the target. -- RE rillke questions? 21:03, 4 October 2011 (UTC)
I'm trying to nominate the redirect itself for deletion, not the target. Nyttend (talk) 01:05, 5 October 2011 (UTC)
Fixed --DieBuche (talk) 08:38, 1 November 2011 (UTC)

Enable possibility to transfer the reason to the user-talk-page.

This section was archived on a request by: DieBuche (talk) 07:51, 1 November 2011 (UTC)

{{editprotected|technical=yes}} Please replace

AjaxQuickDelete.tag = AjaxQuickDelete.tag.replace('%PARAMETER%', response);

with

AjaxQuickDelete.tag = AjaxQuickDelete.tag.replace('%PARAMETER%', response);
if (AjaxQuickDelete.talk_tag) AjaxQuickDelete.talk_tag = AjaxQuickDelete.talk_tag.replace('%PARAMETER%', response);

(=inserting one line of code) Thank you -- RE rillke questions? 09:49, 7 October 2011 (UTC)

Please also do the following changes:

- if (wgUserGroups && (' ' + wgUserGroups.join(' ') + ' ').indexOf(' sysop ') != -1) {
+ if (wgUserGroups && $.inArray('sysop', mw.config.get('wgUserGroups')) != -1) {
- } else if (wgUserGroups && (' ' + wgUserGroups.join(' ') + ' ').indexOf(' filemover ') != -1) {
+ } else if (wgUserGroups && $.inArray('filemover', mw.config.get('wgUserGroups')) !== -1) {
- if ((this.userRights == 'filemover' || this.userRights == 'sysop') && wgNamespaceNumber == 6) {
+ if ((this.userRights === 'filemover' || this.userRights === 'sysop') && mw.config.get('wgNamespaceNumber') === 6) {
- apiURL: (/^\/\//.test(mw.config.get("wgServer")) ? document.location.protocol : '') + mw.config.get("wgServer") + mw.util.wikiScript( 'api' ),
+ apiURL: mw.util.wikiScript( 'api' ),
- addingAnyTemplate: "Adding template to " + wgCanonicalNamespace.toLowerCase() + " description page... ",
+ addingAnyTemplate: "Adding template to " + mw.config.get('wgCanonicalNamespace').toLowerCase() + " page... ",
-       AjaxQuickDelete.install();
-    });
- });
+       AjaxQuickDelete.install();
+       $(document).triggerHandler('scriptLoaded', ['AjaxQuickDelete']);
+    });
+ });

--RE rillke questions? 18:35, 11 October 2011 (UTC)

✓ Done --DieBuche (talk) 07:47, 1 November 2011 (UTC)

Error when trying to mark old redirect image for speddy selection

This section was archived on a request by: DieBuche (talk) 08:38, 1 November 2011 (UTC)
An error occurred while trying to do the requested action.
A detailed description of the error is shown below:
info is undefined
TypeError @line456
Fixed --DieBuche (talk) 08:38, 1 November 2011 (UTC)

Feature request: Merging details from duplicate + file link

This section was archived on a request by: DieBuche (talk) 07:51, 1 November 2011 (UTC)

Instead of "Merging details from duplicate" the script should mention and link the filename of the source of the merged info (as I've done it here in a second edit). Otherwise one has to dig in the deletion log of the merging admin to get the source of the info. --Saibo (Δ) 22:54, 24 October 2011 (UTC)

Done --DieBuche (talk) 07:51, 1 November 2011 (UTC)

@Nilfanion

Just one note: I think the problem is with

if ($.inArray('sysop', mw.config.get('wgUserGroups')) != -1) { 
this.userRights = 'filemover'; 

which should be

if ($.inArray('sysop', mw.config.get('wgUserGroups')) != -1) { 
this.userRights = 'sysop'; 

But I have difficulties to decipher the edit comments. temp rv tweaks to dupe merging (testing possible bug) -- RE rillke questions? 22:37, 1 November 2011 (UTC)

This section was archived on a request by: RE rillke questions? 09:56, 4 November 2011 (UTC)

Handle server error 504 and 502

In the last time I got server error 504. Since this is a simple timeout error, we should handle this by re-query the information - like for "mysterious 231 unknown error". -- RE rillke questions? 19:05, 22 July 2011 (UTC)

Wärend der Ausführung einer Aufgabe, trat ein Fehler auf. Um diese File zur Löschung vorzuschlagen, klicke auf bearbeiten und füge selbst die {{delete}} Vorlage hinzu, anschließend bitte den Anweisungen dieser folgen. Folgend eine Detailbeschreibung des Fehlers: API request returned code 504 errorError code is undefined Fehler bitte hier melden

-- RE rillke questions? 19:47, 23 July 2011 (UTC)

         error: function (x, status, error) {
            if (504 == x.status || 502 == x.status) { // In case of a timeout, try it again
              return setTimeout(function () { o.doAPICall(params, callback); }, 500)
            }
            else { 
              return o.fail("API request returned code " + x.status + " " + status + " Error code is " + error);
            }
         }

-- RE rillke questions? 10:06, 31 July 2011 (UTC)

+1. Annoying that you need to type all info again - no back functionality. I had "API request returned code 502 errorError code is undefined" right now. May be related to Commons:Prototype_upload_wizard_feedback#Erreur_inconnue_:_.C2.AB_unknown_.C2.BB etc. Cheers --Saibo (Δ) 00:23, 5 August 2011 (UTC)
  • If we do so, we should make sure not to add text more often than twice ... (sometimes it works despite response 50x) -- RE rillke questions? 19:19, 5 August 2011 (UTC)
This section was archived on a request by: RE rillke questions? 17:00, 1 February 2012 (UTC)

Reporting error

I just got "API request returned code 504 errorError code is undefined" and asked to report here. I was trying to nominate File:Progressive_Media_Services.jpg for deletion using the gadget button when this happened. SpacemanSpiff (talk) 20:35, 22 August 2011 (UTC)

Just try it again. -- RE rillke questions? 20:39, 22 August 2011 (UTC)
This section was archived on a request by: RE rillke questions? 17:04, 1 February 2012 (UTC)

Recent tweaks breaking duplicate script

Hi,

The recent changes to the script broke the duplicate script - removing the green "process duplicates" button. Through experimenting, managed to isolate the fault to this edit, resulting from #Enable possibility to transfer the reason to the user-talk-page. this request. Not sure why, but have reverted back to previous version (to avoid losing functionality). This means the tweaks from #Feature request: Merging details from duplicate + file link have also been undone (and are pointless if the duplicate script isn't working).--Nilfanion (talk) 22:39, 1 November 2011 (UTC)

Huhu, did you read #@Nilfanion -- RE rillke questions? 22:44, 1 November 2011 (UTC)
Not when I had wrote that - having a look ;)--Nilfanion (talk) 22:50, 1 November 2011 (UTC)
And yep, that appears to have fixed it. I'm no expert on JS so can't really decipher what is going on. A couple points:
  1. Just to explain the edit summary above - "temporary revert of tweaks to allow merging of details from duplicate, to test possible bug".
  2. It might be an idea to have a sandbox version to test tweaks before putting them into the live script, as part of your monobook maybe?--Nilfanion (talk) 22:59, 1 November 2011 (UTC)
I didn't put it into live script and I did not suggest making this change (exchanging sysop by filemover) at #Enable possibility to transfer the reason to the user-talk-page. as far as I can remember. This must be happened accidentally while fulfilling my request.
Sandbox versions have the problem that you have to synchronize them. I have it with my own scripts and it is very nasty. Thanks for fixing and Regards -- RE rillke questions? 23:46, 1 November 2011 (UTC)
Yep, thanks for fixing, I probably copied 'filemover' and pasted it one line above, where it should have gone... --DieBuche (talk) 07:40, 2 November 2011 (UTC)
It looks like now the filemoves are not having "move and replace" green button. --Sreejith K (talk) 09:36, 4 November 2011 (UTC)

After Please purge your browser’s cache . (You only need to do it once.)

Internet Explorer: press Ctrl+F5, Firefox: hold down Shift while clicking Reload (or press Ctrl+ Shift+R), Opera/Konqueror: press F5, Safari: hold down Shift+alt while clicking Reload, Chrome: hold down Shift while clicking Reload, does the problem persist? -- RE rillke questions? 09:55, 4 November 2011 (UTC)

This section was archived on a request by: RE rillke questions? 17:04, 1 February 2012 (UTC)

Template:Gadget-help

Please add the new {{Gadget-help}} to MediaWiki:AjaxQuickDelete.js/doc, and/or move it to a more widely editable location like Help:AjaxQuickDelete. cheers, Rd232 (talk) 17:42, 9 November 2011 (UTC)

✓ Done Rd232 (talk) 14:04, 8 December 2011 (UTC)
This section was archived on a request by: RE rillke questions? 17:04, 1 February 2012 (UTC)

Commons delinker error

An error occurred while trying to do the requested action. A detailed description of the error is shown below: API request returned code 0 errorError code is [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.getAllResponseHeaders]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://bits.wikimedia.org/commons.wikimedia.org/load.php?debug=false〈=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20111007T213533Z :: anonymous :: line 118" data: no] - Twice --Pierpao.lo (listening) 06:24, 21 November 2011 (UTC)

This seems to be browser-related. Sorry -- RE rillke questions? 17:04, 1 February 2012 (UTC)
This section was archived on a request by: RE rillke questions? 17:04, 1 February 2012 (UTC)

From pump

{{editprotected}} Commons:Village_pump#Adding_more_guidance_to_MediaWiki:AjaxQuickDelete.js - see also end of previous section Bulwersator (talk) 08:09, 31 December 2011 (UTC)

✓ Done. It needs someone to review the text and the new code. -- RE rillke questions? 22:13, 31 December 2011 (UTC)
This section was archived on a request by: RE rillke questions? 17:04, 1 February 2012 (UTC)

Other skins

How difficult would it be to modify the script so that it's compatible with the Classic skin?

Thanks. DS (talk) 21:43, 16 February 2011 (UTC)

It should work with all skins now since jQuery is available for all of them. -- RE rillke questions? 11:14, 15 March 2012 (UTC)
This section was archived on a request by: RE rillke questions? 11:14, 15 March 2012 (UTC)

error while processing duplicate

Just got this error message:

An error occurred while trying to do the requested action.
A detailed description of the error is shown below:
TypeError: v.imageinfo is undefined

Esby (talk) 09:08, 15 April 2011 (UTC)

Can you please specify the image when this error occured? I tested
http://commons.wikimedia.org/w/api.php?action=query&prop=imageinfo%7Crevisions%7Cinfo&rvprop=content%7Ctimestamp&intoken=edit%7Cdelete&iiprop=size%7Csha1%7Curl&iiurlwidth=365&titles=File:Machaeroides.jpg&format=json and it looks fine. Thank you for reporting this error. -- RE rillke questions? 09:50, 15 April 2011 (UTC)
It was on File:Vue_aérienne_Avignon.jpg. I replaced the usage manually. Esby (talk) 11:43, 15 April 2011 (UTC)

Now a comprehensive error message is shown in these cases. -- RE rillke questions? 11:07, 15 March 2012 (UTC)

This section was archived on a request by: RE rillke questions? 11:07, 15 March 2012 (UTC)

Current file name as default, file extension changed to lower case

When moving a file, the field What should be the new file name? should contain the current file name. This would allow fixing the (spelling) error without introducing an unwanted additional change or even mistake.
Is this a desired feature or a bug that the file extension is automatically changed to lower case? --Leyo 09:59, 13 October 2011 (UTC)

Concerning the suggestion; I don't know whether it is desired or not. You may ask some filemovers who often move. The lower case is "a feature". -- RE rillke questions? 15:02, 28 November 2011 (UTC)
I can only speak for myself: I would consider it as a clear improvement in usability. --Leyo 16:17, 30 January 2012 (UTC)
Agree. Maybe it would be nice if the current file name text in the text box would be selected already - so if you want to input a completely new name you can type right away. If you want to just change a typo you need to point and click (or by keyboard) anyway. Cheers --Saibo (Δ) 00:05, 1 February 2012 (UTC)
+1. And if the file extension is changed to lower case anyway, this should already been considered in the text box. --Leyo 00:56, 1 February 2012 (UTC)
This section was archived on a request by: RE rillke questions? 11:05, 15 March 2012 (UTC)

error (no subpage) at long filenames(?)

File:O atleta detentor de diversos títulos e Treinador Esportivo, Jair J. Frederico deixou a sua principal marca na História da Musculação Atlética - Cultura Física - do Brasil por realizar o Primeiro Campeonato de Fisiculturismo Feminino no País.jpg cannot be nominated for deletetion. The script stops at step "creating subpage". And, in fact, no subpage is created - just the DR tag on the file page is placed. No JS errors occur in the Firefox JS console. Too long? (if it is at least an error should be displayed in a message box), UTF-8 chars? Cheers --Saibo (Δ) 05:00, 18 September 2011 (UTC)

Indeed, the request subpage title was too long (> 255Bytes without Namespace). This is now also checked and handled accordingly. -- RE rillke questions? 14:48, 1 May 2012 (UTC)
This section was archived on a request by: RE rillke questions? 14:48, 1 May 2012 (UTC)

error when image was deleted at the same time I was preparing a copyvio

Seems it assumes the image will exists, and doesn't take into account the revision might be deleted while viewing the page. AzaToth 22:27, 23 September 2011 (UTC)

An error occurred while trying to do the requested action.
A detailed description of the error is shown below:
pages[id].revisions is undefined
TypeError @line453
You get a more verbose error-message now. Nothing I can change. Restoring is a bad option ;-) -- RE rillke questions? 14:53, 1 May 2012 (UTC)
This section was archived on a request by: RE rillke questions? 14:53, 1 May 2012 (UTC)

Unknown error: ``imageinvalidfilename

I get this error when trying to rename File:RM-Army-OR6a.gif:

An error occurred while trying to do the requested action.
A detailed description of the error is shown below:
API request failed (unknownerror): Unknown error: ``imageinvalidfilename
Report the error here

Can anyone advice? I don't think the new name is invalid. PRENN (talk) 03:41, 20 December 2011 (UTC)

The problem was that one of the old file revisions was in a different file format. Someone had uploaded a PNG file to a GIF file page. As there were two different file formats, the software was not allowing a move. I asked an admin to delete the old revision in order to allow the move. Alpha_Quadrant (talk) 21:53, 29 December 2011 (UTC)
This should be resolved now. The script looks-up the mime-type while moving. -- RE rillke questions? 14:50, 1 May 2012 (UTC)
This section was archived on a request by: RE rillke questions? 14:50, 1 May 2012 (UTC)

File move error

Hm, i dont think that i saw this before...

An error occurred while trying to do the requested action. 
A detailed description of the error is shown below:
API request returned code 504 errorError code is Gateway Time-out
Report the error here

Can anyone advice? --WhiteWriter speaks 13:52, 28 November 2011 (UTC)

This is a server error. I am going to report it. See also COM:VP#Error occuring when renaming file. -- RE rillke questions? 14:00, 28 November 2011 (UTC)
The same error for me. The file was renamed, but I can't see now where it used. There were two pages (in en- and some else wikis), which linked to the previously named File:Pechat.JPG. --Renessaince (talk) 07:12, 12 December 2011 (UTC)
These errors are caught and treated by the script now. I'd like to point out that it's usually not the client's task to catch server errors. -- RE rillke questions? 17:36, 11 June 2012 (UTC)
This section was archived on a request by: RE rillke questions? 17:36, 11 June 2012 (UTC)