Commons:Village pump/Technical/Archive/2021/09

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

The Mobile version of the MediaWiki Upload Wizard is acting weird

For whatever reason the Mobile version of the MediaWiki Upload Wizard looks really weird and everything now looks HUGE. Is anyone else experiencing this issue?

Link 🔗 for reference: https://commons.m.wikimedia.org/wiki/Special:UploadWizard

--Donald Trung 『徵國單』 (No Fake News 💬) (WikiProject Numismatics 💴) (Articles 📚) 20:35, 15 September 2021 (UTC)

@Donald Trung: This should be related to Special:Permalink/591517076#Upload wizard mobile ui CSS fix 2, but I don't see any problems in my mobile phone (Android, Chrome). cc @Zache: 4nn1l2 (talk) 20:43, 15 September 2021 (UTC)
@Donald Trung: can you take screenshot? --Zache (talk) 20:45, 15 September 2021 (UTC)
Also, can you give details on which browser / device the problem is happening so I can try the issue. --Zache (talk) 20:51, 15 September 2021 (UTC)

@Zache: , Here are the issues I'm facing. Some objects appear waaaaaayyyyyy too big while others are really narrow. The thumbnails and most boxes are too big, the "6 (six) steps" appear as a weird bug, well, most of these screenshots speak for themselves. I'm using Microsoft Edge on a Microsoft Lumia 950 mobile telephone with Microsoft Windows 10 Mobile. --Donald Trung 『徵國單』 (No Fake News 💬) (WikiProject Numismatics 💴) (Articles 📚) 21:00, 15 September 2021 (UTC)

Thanks! I will try to figure out how to fix the css rules. Btw, You can disable the change from settings / gadgets (search label Toggles mobile UploadWizard to responsive layout) --Zache (talk) 21:08, 15 September 2021 (UTC)
I updated the CSS rules in beta commons diff. @Donald Trung: I will still do a testing round with different devices, but if you want to test the beta commons upload wizard now it would be nice and drop comments if there is something more to fix. (Note: I don't have Windows mobile phone and my testing was with Internet explorer. I think however that I found errors described in your screenshots) --Zache (talk) 06:11, 16 September 2021 (UTC)
@Zache: , all issues there are fixed. 😃 Thank you very much for investing your free time in this. --Donald Trung 『徵國單』 (No Fake News 💬) (WikiProject Numismatics 💴) (Articles 📚) 07:17, 16 September 2021 (UTC)
Thank you. Also just for transparency, I work as a part timer in Wikimedia Finland and we are doing project Helsinki rephotographs which try to inspire people to do casual exercises and also take photos and publish them via free licenses. Our method is to inspire people to go out and take photos from defined targets (mostly rephotos, but also sites under change). In any case, it seemed to be good idea that UploadWizard would work with mobile devices too so that we can have single link for uploading photos. In any case the CSS-rules from beta are now here too. --Zache (talk) 13:50, 16 September 2021 (UTC)
@Zache: , I just saw that I forgot to report back, but all the issues are resolved. I would be lying that I would say that I don't miss some parts of how it looked a fortnight ago, but overall this new layout is an improvement and the "nostalgia" is probably just my brain needing to get used to it (which usually takes a couple of days), I can't say that I've had any issues with it since your fixes. Thank you so much for all your hard work. --Donald Trung 『徵國單』 (No Fake News 💬) (WikiProject Numismatics 💴) (Articles 📚) 11:17, 20 September 2021 (UTC)
This section was archived on a request by: --Donald Trung 『徵國單』 (No Fake News 💬) (WikiProject Numismatics 💴) (Articles 📚) 11:17, 20 September 2021 (UTC)

"File extension ".jpg" does not match the detected MIME type of the file (image/png)."

I keep getting this error message while trying to upload an image, the device I use is :

  • Device name LAPTOP-3VLVD7QK
  • Processor Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz 1.19 GHz
  • Installed RAM 8,00 GB (7,70 GB usable)
  • System type 64-bit operating system, x64-based processor
  • Pen and touch No pen or touch input is available for this display

(Usually I'm on mobile and I've never had this issue on a mobile device.).

Is this a common issue? --Donald Trung 『徵國單』 (No Fake News 💬) (WikiProject Numismatics 💴) (Articles 📚) 11:14, 20 September 2021 (UTC)

@Donald Trung: . Just curious. Did this message appear after your initial upload failed, and you were asked to retry? Cheers --Rsteen (talk) 12:13, 20 September 2021 (UTC)
I've managed to solve the issue, the file was saved as a ".jpg" file but the MediaWiki software exclusively recognised it as a ".png" file. Maybe it was an issue with the software I used to create the file and note the Wikimedia Commons itself. --Donald Trung 『徵國單』 (No Fake News 💬) (WikiProject Numismatics 💴) (Articles 📚) 21:21, 20 September 2021 (UTC)
This section was archived on a request by: --Donald Trung 『徵國單』 (No Fake News 💬) (WikiProject Numismatics 💴) (Articles 📚) 21:21, 20 September 2021 (UTC)

15:18, 6 September 2021 (UTC)

Stash has not uploaded for days

I have tried to upload from my stash over and over again. One time, the video just disappeared from my stash (without uploading to the file name) and I uploaded it again using a chunked upload and it again got stuck in my stash. Can someone help? Does anyone have access to the servers? Do I need to make a ticket at phab:? —Justin (koavf)TCM 19:52, 3 September 2021 (UTC)

And now the file has disappeared from my stash again without uploading. Please help. —Justin (koavf)TCM 17:04, 6 September 2021 (UTC)
Koavf - Chunked upload has always been a life saver for me so not sure why it hasn't been for you :(, If you want I can upload it for you?, failing that personally I have no better suggestions other than Chunked which you've already tried, –Davey2010Talk 18:02, 6 September 2021 (UTC)
@Davey2010: That would be a treat. I've tried using Video2Commons and downloading, converting via Handbrake, and uploading with ChunkedUploads for File:David Pakman - Politics, Media and Reality Tunnels.webm. What do you suggest to make this work? Is there something about Video2Commons that is broken on my end (maybe uMatrix or NoScript is blocking a feature somehow???). I also have two very large videos on X3D that I want to upload but I don't want to go thru this indefinitely. —Justin (koavf)TCM 18:06, 6 September 2021 (UTC)
Koavf, Unfortunately I don't know what causes V2C not to work - it seems to pick and choose what it wants to convert,
I downloaded the video and converted it which took minutes, Used V2C to upload the file but that alone took 2-3 hours and I wasn't getting no where (only got to 2%!) - So I've used an online WEBM converter which generally produces crap results but unfortunately it looks like it's the best we're gonna get (unless someone wants to retry uploading a webm version to V2C and waiting 2-3 days!).
Sorry I couldn't do better here, Thanks, –Davey2010Talk 20:55, 6 September 2021 (UTC)
@Davey2010: I'm always grateful for someone trying. I actually didn't realize that you could upload to Video2Commons and then that can publish here, so maybe I'll try that. I'm loathe to open up a new phab: ticket but I guess I have to if this new method doesn't work. Thanks again. :/ —Justin (koavf)TCM 20:58, 6 September 2021 (UTC)
Koavf Ignore the above reply, I originally tried uploading to V2C via URL which failed, So I downloaded the file as MP4 and tried uploading to V2C that way however 3 hours later it was only at 2% .... so I then tried an online MP4 to WEBM conversion service which when uploaded here turned out to be an audio only file ..... so as a last ditch attempt I tried converting from MP4 to WEMB on a different site but unfortunately that site now says "time limit exceeded" .....
TLDR I've tried 4 different options and none have successfully worked so I would unfortunately suggest heading to Phab and see if something can be fixed
Sorrry again for not being able to be of any help :(, Hope one way or another you have some luck with this file, Thanks, –Davey2010Talk 00:48, 7 September 2021 (UTC)
@Koavf: server side uploading has been the only way I could get a some files uploaded recently. Large file uploads have been very unreliable for a few months now. Using upload Wizard, API chunked and async uploads, chunked upload JS are all the same. It's also causing semi-regular failures of the IA upload tool. Inductiveload (talk) 22:12, 6 September 2021 (UTC)
@Inductiveload: So that means a ticket, then? —Justin (koavf)TCM 23:25, 6 September 2021 (UTC)
@Koavf: I'm afraid so. Or at least that is what it took for me. Inductiveload (talk) 22:31, 7 September 2021 (UTC)
@Davey2010: You've done lots. Thanks! —Justin (koavf)TCM 01:29, 7 September 2021 (UTC)

Rotation bug?

Moved to Commons:Village pump#Rotation bug?. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:24, 15 September 2021 (UTC)

EditGroups tool for Commons

Hello!

Perhaps some of you who also edit Wikidata are familiar with the EditGroups tool, which lets people review and revert batches of edits on Wikidata. (For instance, this batch was reverted by this batch). I am planning to deploy this tool for Commons too (for context: I am involved in a project to add support for Commons to OpenRefine and we need to be able to revert edit batches as part of that). Therefore I have a few questions:

  • Would there be tool authors who would be interested in trying this out, by adapting their tool so that their edits are tracked by EditGroups (and therefore their batches could be reverted easily)?
  • In which namespaces should the tool be tracking edits? I am thinking of File: (namespace 6) only (for comparison in Wikidata we only track edits on items and properties, namespaces 0 and 120 respectively)
  • To revert batches which contain page creations (so, file uploads), admin rights are required. Admins can do that via EditGroups and granting the tool permissions to do the deletions on their behalf. If a non-admin visits the tool, there is a button to undo the batch, which redirects them to a prefilled new section in d:Wikidata:Requests_for_deletions (for instance, try reverting this batch without logging into EditGroups. Of course don't save the page on Wikidata…). Because Commons does not seem to have one single page where requests should be added, I wonder how to do it here? Perhaps we could create a special page for batch deletion requests? What would be a good title for it?
  • The on-wiki support for those features relies on some help pages, templates and prefills such as d:Wikidata:Edit_groups, d:Template:Edit_group_box, d:Template:Edit_group, d:Wikidata:Edit_groups/Preload and d:Wikidata:Edit_groups/Revert. Is it okay if I create the same sorts of things here in the "Commons:" namespace? The tool also invites users to discuss batches on specific pages such as d:Wikidata:Edit_groups/OR/8cb3004, we could have this here or simply redirect to the batch author's talk page.

This external tool is not really a satisfactory solution for this problem, ideally this should be supported on MediaWiki's side (see phab:T203557) but there is no sign of that happening any time soon, hence this initiative.

Let me know what you think! − Pintoch (talk) 16:44, 12 September 2021 (UTC)

I have boldly created Commons:Edit groups and the subpage Commons:Edit groups/Adding a tool, but very happy to have them somewhere else (or deleted you think this should rather be off-wiki). And I have deployed an instance of the tool here: https://editgroups-commons.toolforge.org/. − Pintoch (talk) 13:37, 13 September 2021 (UTC)

15:30, 13 September 2021 (UTC)

CSS changes might affect scripts

Hi all,

I don't fully understand this potential problem, but the part that I grasped is that there's going to be a change that might affect some user scripts/gadgets that depend on something in the CSS. This will probably appear here at Commons next Wednesday (i.e., seven days from now).

This change was made months ago at three Wikipedias, and they're still around, so I assume that the overall risk is fairly low. On the other hand, there are more user scripts and gadgets at Commons than most wikis, so perhaps the risk is higher here. My main goal in posting this is to let you know that if a gadget breaks next Thursday, that you'll consider these CSS changes as a possible source of the problem.

Thanks, Whatamidoing (WMF) (talk) 17:51, 15 September 2021 (UTC)

I added some technical details to the linked task. These are the same changes that are currently applied when you enable the "Discussion tools" beta feature, so you can test today whether your scripts/gadgets work fine with that. We're not actually expecthing anything to break (but you never know…). Matma Rex (talk) 19:00, 15 September 2021 (UTC)

Image thumbnail over 100 MP error

Hi! The image File:Hayden Bridge, Spanning McKenzie River at Southern Pacific Railroad (moved from Springfield, Lake County, OR), Springfield, Lane County, OR HAER ORE,20-SPRIF,2- (sheet 3 of 4).png on the Wikipedia page Hayden Bridge (Springfield, Oregon) is having issues with displaying. The error text says that this is because it is over 100 MP. Could someone help me with this? Thanks! Tyrone Madera (talk) 21:50, 15 September 2021 (UTC)

@Tyrone Madera: That's phab:T291010. We tried to remove some technical debt (in the form of an extension that shouldn't be doing much of anything), but it ended up being load-bearing technical debt. That change has been reverted for now, so purging any pages that are still affected should fix them. --AntiCompositeNumber (talk) 23:32, 15 September 2021 (UTC)

Auto translate

I have tried leaving a warning message at User talk:Houssam BH to advise the user not to remove deletion notices, as was done at File:National Rally of Independents.jpg. However, instead of the expected message, I see, "Template:Autotranslate". The template text appears to have been inserted correctly,[10] so I am not sure what the problem is. It could just be a temporary glitch and the template text may become visible later on its own but I thought I'd mention it in case some corrective action is needed. From Hill To Shore (talk) 22:35, 17 September 2021 (UTC)

This happens when a user talk page contains too many templates and the Mediawiki software can no longer parse additional templates on that page. Anyhow, the user should have gotten a notification about the edit at their talk page, so there is no need to fix any code. De728631 (talk) 22:41, 17 September 2021 (UTC)
Ok, thanks for clarifying. From Hill To Shore (talk) 22:47, 17 September 2021 (UTC)

PDF display

What has gone wrong with the display of this PDF? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:50, 19 September 2021 (UTC)

@Andy: it looks like the PDF was corrupted just enough to mess with the preview generation, though I could open it in Acrobat Reader successfully. I ran it through en:QPDF and that seems to have corrected the errors. clpo13(talk) 16:33, 20 September 2021 (UTC)
@Clpo13: Many thanks. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:48, 20 September 2021 (UTC)

18:29, 20 September 2021 (UTC)

Question about searching metadata

Hi there! Is there a way to search images on commons by their metadata? ie can we search for photos by a specific camera type/model? --TheSandDoctor (talk) 01:36, 22 September 2021 (UTC)

@TheSandDoctor Not easily, it's not indexed anywhere. If there's a specific string you're looking for, you can use quarry:. It would be nice to pull it out into something like wikitech:Help:Toolforge/Elasticsearch or toolsdb someday. AntiCompositeNumber (talk) 02:56, 22 September 2021 (UTC)

Restoring access to the history of edits of the file _said_ to be converted to redirect

Today the GR was performed with the File:Ingenuity Helicopter Base Station on Perseverance Rover.jpg, commented as „Exact or scaled-down duplicate” of the File:PIA23968-MarsPerseveranceRover-HelicopterBase-20210120.jpg. Last month I worked with both files (they illustrate the article I'm improving) and remember their descriptions differed. Between the two versions which existed on Commons I chose the one with the extended decription, which I do not find in the present file.

Seeking for the old disappeared text to add it to the present file I went to the file which was converted to the redirect. However, I found no history of its edits. To be exact this 'history' consists of only one record

   curprev 13:14, 26 September 2021‎ Huntster talk contribs‎ 77 bytes +77‎ Redirecting to duplicate file thank Tag: New redirect

meaning that the file with this name was created as redirect today, after deleting the old one with its history. I've already written to Huntster asking him to restore the access to the old history of edits which was supposedly deleted instead of replacing its contents to the 'redirect' tag. I duplicate this request here supposing it was a technical problem outside the scope of his authority and competence. Please help me to restore the access to the original File:Ingenuity Helicopter Base Station on Perseverance Rover.jpg with all its history of edits. Thank you in advance. Cherurbino (talk) 18:09, 26 September 2021 (UTC)

Account exists but error message says it is not registered

See MediaWiki talk:Gadget-UserMessages.js#Bug: Cannot read properties of undefined. Yann (talk) 20:12, 27 September 2021 (UTC)

Responded there. 4nn1l2 (talk) 20:49, 27 September 2021 (UTC)

22:19, 27 September 2021 (UTC)

Seeing IP ranges

I know that at the English-language Wikipedia one can view all edits from a range of IP addresses, is this also possible at the Wikimedia Commons? --Donald Trung 『徵國單』 (No Fake News 💬) (WikiProject Numismatics 💴) (Articles 📚) 17:34, 27 September 2021 (UTC)

@Donald Trung: On the English Wikipedia, there are two ways to do this. MediaWiki natively supports CIDR ranges like Special:Contributions/127.0.0.1/16—this works on any wiki (including Commons, as well as smaller wikis), and lists edits in strictly chronological order. There’s also a gadget (talk page), which happens to be available on Commons (with the name Allow /16,/24-/32 CIDR ranges on Special:Contributions forms (uses API), as well as wildcard Prefix searches, e.g.: Splark* [talk] ), but most wikis probably won’t have it; this groups edits by IP address. —Tacsipacsi (talk) 20:46, 28 September 2021 (UTC)

Compressed pattern matching tools on gzip or lzma

commonswiki-20210920-all-titles.gz is 900MB. I found FCPM but this doesn't support gzip. Are there tools that support gzip, lzma or any common file type? Crowley666 (talk) 10:06, 26 September 2021 (UTC)

@Crowley666: I'm not sure if this is quite what you're looking for, but zgrep from GNU Gzip can search through gzipped files without decompressing them and xzgrep/lzgrep from XZ Utils can do the same for XZ and LZMA compressed files. clpo13(talk) 21:28, 18 October 2021 (UTC)