Wikipedia talk:AutoWikiBrowser

This is the discussion page for the AWB project. It is also the place to discuss using the AWB program itself (if you need help, or have a question about AWB, etc.). Where to make specific types of reports or requests is explained in the Before you post section below. Before asking questions, please read the Frequently asked questions below.

Before you post

[edit]
Do you want to ... Please use
Report a bug or request a feature in AWB? Check reported tasks before filing a new task. You do not need to create another account there; just log in with your normal Wikimedia account. See this MediaWiki wiki page on how to report bugs and request features on Phabricator.
Report a bug details

Try to report bugs in the current version of the software. Update to the most recent version and check to make sure your bug has not been reported already on this page. See "How to Report Bugs Effectively" for advice on how to write bug reports.

Before posting anything related to non-Wikimedia Foundation wikis, verify that the site is running a recent version of MediaWiki with enabled Bot API. Older versions of MediaWiki or without the Bot API are not supported. Be sure to mention the exact URL of your wiki.

Request a feature details

Please use the feature request button to add new feature requests. This format allows the developers to keep track of feature requests. Take some time to search the archives, both on-wiki and on Phabricator to check whether a similar request was previously discussed.

Report an incorrectly fixed typo? Wikipedia talk:AutoWikiBrowser/Typos
Request approval to use AWB? Wikipedia:Requests for permissions/AutoWikiBrowser
Ask a question about AWB or ask for help? This page

Frequently asked questions

[edit]

Frequently asked questions
  • When I start it up I get one of the following errors:
    "The application failed to initialize properly (0xc0000135). Click on OK to terminate the application.", or
    "To run this application, you must first install one of the following versions of the .NET Framework..."
    This error means your computer does not have the .NET framework version 2 installed properly. You can choose from various versions for download here, or you can run Windows Update and select version 2 of the .Net framework from the "Optional Updates" section, if you want the choice made for you.
  • Does AWB run on Linux or Mac?
  • Does AWB work on other projects and languages?
    Many Wikimedia projects and languages are supported, see the "User and project preferences" option in the general menu. Other languages will be added on request, though at the moment the interface is always in English. You are also able to use AWB with third-party wikis: Options > Preferences > Site, you can change the wiki there. The wiki must support the Bot API required by AWB. This means that it should have latest HEAD version of MediaWiki or something close to that. The wmf-deployment branch is also recommended, as this is what is currently live on WMF sites.
  • Under Windows Vista (and newer), AWB is using wrong font size, which results in clipped text and lost buttons and options, (see example here). How to fix it?
    • Solution #1: Go to "Control Panel\All Control Panel Items\Display" and switch resizing of the fonts to 100%.
    • Solution #2: Right click on AutoWikiBrowser.exe --> Properties -> Compatibility (tab) --> enable the "Disable display scaling on high DPI settings" option or for Windows 10, if available, select System (Enhanced).
  • AWB puts stubs after categories, though categories are always rendered the last by MediaWiki?
    According to WP:STUB#Categorizing stubs, by convention they are placed at the end of the article, after the External links section, any navigation templates, and the category tags, so that the stub category will appear last. If your wiki uses another order, please let us know here.
  • I don't like or use Internet Explorer; please use Firefox instead.
    AWB does not use Internet Explorer per se. It does, however, use the same web browser control (MSHTML) as Internet Explorer; the equivalent Firefox component does not provide the needed functionality.
  • How do I open the page in another browser if I can't use the one in AWB?
    Right click on the edit box in the bottom right side of your screen. Select "Open page in browser".
  • How do I edit a page that doesn't exist?
    Uncheck "Ignore non existing pages" in the "Skip articles" box.
  • How do I skip certain articles?
    Use the "Skip if contains" and "Skip if doesn't contain" on the "Skip" tab
  • Can't you leave up a "stable" version, so I don't have to download new versions?
    It is important to keep people up to date with the latest versions, because their use of the software doesn't just affect them, but the whole of Wikipedia. As any bugs that remain will be trivial, hopefully releases won't be too frequent.
  • How can I stop AWB clicking when it changes pages?
    This is a Windows sound theme setting. This page explains how to turn off the clicking sound.
    Alternatively, delete the following key from the Windows registry:
    HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating\.Current
  • AWB randomly crashes upon page load on my system, and I always use a browser other than Internet Explorer when using Wikipedia.
    You may have installed custom scripts incompatible with IE. Wrap the contents of your monobook.js into conditional:
               //Detect IE5.5+                if (navigator.appVersion.indexOf("MSIE")==-1)                {                    // Previous contents go here                    ....                } 
  • I get Just In Time Debugger Messages when loading AWB/loading pages.
    In Internet Explorer, go to Tools → Options → Advanced. Make sure 'Disable Script Debugging (Internet Explorer)' and 'Disable Script Debugging (Other)' Are both checked. Press apply and close.
  • Why does AWB run very, very slowly if I try to make changes in the edit window on larger pages, especially pages with long lists or tables?
    If running on Windows, exit the Speech Recognition software that is built into some versions of Windows; don't just turn it 'Off', you must 'Exit' the software if you have started up Speech Recognition.
  • When I do a clean install of AutoWikiBrowser the application seems to find old setting data somewhere. I'd like to do a really clean install. Any ideas?
    Clean up your registry and remove the folder "C:\Documents and Settings\user name\Local Settings\Application Data\AutoWikiBrowser" (Windows XP) or "C:\Users\user name\AppData\Local\AutoWikiBrowser\" (Windows 7). Note that the application data folder may be hidden.
  • AWB prompts that there is a newer version but won't update
    Check the version number of your AWBUpdater.exe. The current version is 2.4.0.0. If you have an older version, you have to download the latest AWB version and make a clean install.
  • Which .NET Framework version do I have?
    You can find your .NET Framework version in Help → About box.
  • Where are the default settings stored?
    • Windows XP: C:\Documents and Settings\[username]\Local Settings\Application Data\AutoWikiBrowser
    • Windows Vista onwards: C:\Users\[username]\AppData\Local\AutoWikiBrowser\Default.xml
  • I cannot copy text from the diff window using the Control+C keyboard shortcut.
    You must have Microsoft.mshtml.dll available for AWB to use for this functionality to work. You can try downloading the file (there are a number of third-party websites offering DLL file downloads) and putting it in the same folder as AutoWikiBrowser.exe. This is reported not to work for all users, presumably due to .NET Framework problems.
  • Is there any way to set AWB to not use https? (GFW blocks 443 port)
    In preferences, set project to "custom". Set the left box to http. In the webpage box, type en.wikipedia.org/w/ (English Wikipedia) or zh.wikipedia.org/w/ (Chinese Wikipedia). Note that leaving off the /w/ will result in a "root element missing" error.
  • How do I login to AWB with accounts enabled with two-factor authentication?
    You should use a bot password. Despite the name, they aren't just for bots. See Wikipedia:Using AWB with 2FA.

Discussion

[edit]

AWB Permission error

[edit]

I've had permissions to use AWB since march of this year and I've used it as I said I would to add champion templates to the bottom of results pages for sporting events. However when logging in today I'm getting a permission error that says "This user doesn't have enough privilleges to make automatic edits on this wiki." I'm still on the check page for having permissions and I don't believe I broke any of the rules so I'm slightly confused. Brandon Downes (talk) 16:07, 8 August 2024 (UTC)[reply]

I just came here to add the same thing. I've been using AWB for years and have the current version but I'm getting the same message. CambridgeBayWeather (solidly non-human), Uqaqtuq (talk), Huliva 16:12, 8 August 2024 (UTC)[reply]
Oh ok I'm less concerned now and it's probably just an error. Hopefully it gets fixed soon. Brandon Downes (talk) 16:20, 8 August 2024 (UTC)[reply]
Same here. I used it last week without problems. Christian75 (talk) 16:21, 8 August 2024 (UTC)[reply]
I've been getting this off-and-on today too. Don't think I've seen it before. A partial work-around is to try to keep at least 1 AWB instance logged in successfully, and hope the power/UPS/battery stays on, and sleep/hibernate instead of rebooting, if possible.   ~ Tom.Reding (talkdgaf)  16:21, 8 August 2024 (UTC)[reply]
That's a very Jurassic Park we've-never-shut-down-the-system sort of approach. Primefac (talk) 16:23, 8 August 2024 (UTC)[reply]
And, in my case, impossible. I only use it two or three times a year. Looks like I picked the right day. CambridgeBayWeather (solidly non-human), Uqaqtuq (talk), Huliva 16:32, 8 August 2024 (UTC)[reply]
I was using it 12 hours ago so it's a pretty recent thing Brandon Downes (talk) 16:22, 8 August 2024 (UTC)[reply]
It might be WP:THURSDAY. -- John of Reading (talk) 16:33, 8 August 2024 (UTC)[reply]
Ah, the developers are aware - phab:T372017 -- John of Reading (talk) 16:36, 8 August 2024 (UTC)[reply]
Same here, and I got my saved settings deleted too for some reason. Sp1dey💬 19:00, 8 August 2024 (UTC)[reply]
The permissions failure is because of a change to the server software that didn't fully take into account the needs of apps like AWB: phab:T371977. There does seem to be little progress. I don't think that addresses Sp1dey's setting though. David Brooks (talk) 19:07, 8 August 2024 (UTC)[reply]
Honestly, I’m not sure if there is a connection between the two issues. After receiving the permissions error this morning, I was able to access AWB after restarting my computer. However, when I checked the settings I had saved, I noticed that the most recent changes were gone and there was a version from a few days ago. Moreover, everything was perfectly normal yesterday; both AWB was working and there were no issues with my settings. AWB started to give error again this evening. Of course, as I mentioned, this could just be a coincidence. Sp1dey💬 19:23, 8 August 2024 (UTC)[reply]
I am getting this permissions error on every site but Wikipedia (for which I have had an AWB instance open nonstop for quite some time). BD2412 T 19:32, 8 August 2024 (UTC)[reply]
This won't be any interesting for nobody - but - same error here. Emptywords (talk) 19:47, 8 August 2024 (UTC)[reply]
And yet another one here. Timrollpickering (talk) 21:44, 8 August 2024 (UTC)[reply]
Might as well add on to the pile - another here. --Ser Amantio di NicolaoChe dicono a Signa?Lo dicono a Signa. 02:03, 9 August 2024 (UTC)[reply]
Ditto, as either LindsayH or Kahtar, the ID i've been using for AWB for a decade. Happy days, ~ LindsayHello 05:58, 9 August 2024 (UTC)[reply]
There is a new release 6.3.1.0 which appears to work. Within AWB, use "Help > Check for updates" to upgrade to it. -- John of Reading (talk) 09:28, 9 August 2024 (UTC)[reply]
I've just downloaded 6.3.1.0 and it is working for me. Kiwipete (talk) 09:35, 9 August 2024 (UTC)[reply]
Thank you. Happy days, ~ LindsayHello 10:34, 9 August 2024 (UTC)[reply]
On other wikis it doesn't work, search for "AutoWikiBrowser/CheckPageJSON" even on wikis where registration is not required and where, obviously, the file doesn't exist. --Pil56 (talk) 11:01, 9 August 2024 (UTC)[reply]
Not working on sv.wikipedia. I get "Check page filed to load" - even after creating the check page. Kitayama (talk) 12:49, 9 August 2024 (UTC)[reply]
Amended the JSON-file. Was: only enableduser Now: Both enabledusers and enabledbots. Now log in works for both users and bots. Kitayama (talk) 13:24, 9 August 2024 (UTC)[reply]
Yes that works now. CambridgeBayWeather (solidly non-human), Uqaqtuq (talk), Huliva 11:20, 9 August 2024 (UTC)[reply]
It works! Thank you so much. Sp1dey💬 11:25, 9 August 2024 (UTC)[reply]

Heads up to maintainers: the main download page still has 6.3.0.0 on the big green button. David Brooks (talk) 15:37, 9 August 2024 (UTC)[reply]

I suggest adding something like this to the top of Wikipedia:AutoWikiBrowser and Wikipedia:AutoWikiBrowser/User manual for a while:
PrimeHunter (talk) 12:24, 9 August 2024 (UTC)[reply]
Though not a Wikimedia supplied utility, should AWB and other commonly used apps not be part of any change test protocol? Or does that need a specific request? Neils51 (talk) 14:36, 9 August 2024 (UTC)[reply]
@PrimeHunter: It works for me now after updating to version 6.3.1.1.   — Jeff G. ツ 10:27, 12 August 2024 (UTC)[reply]
Not working on ta.wikipedia.--Kanags (talk) 11:14, 12 August 2024 (UTC)[reply]
@Jeff G. Yes, version 6.3.1.1 sees to fixed it. Veracious ^(•‿•)^ 07:46, 13 August 2024 (UTC)[reply]
Even 6.3.1.0 fixed it for me. -- Auntof6 (talk) 17:40, 13 August 2024 (UTC)[reply]
I haven't used AWB prior to this and only got user rights a week or so ago. I updated to 6.3.1.1 but the error still comes back Kowal2701 (talk) 18:04, 15 August 2024 (UTC)[reply]

Issue with template "fix"

[edit]

The change to {{banner shell}} should not have happened in Special:Diff/1241032103. It's not on WP:AWB/TR so I'm not really sure why it got replaced. Thoughts? Primefac (talk) 10:05, 19 August 2024 (UTC)[reply]

I have an old copy of the AWB sources on my hard drive. The source code module TalkPageFixes.cs has a hard-coded list of known redirects BannerShellRedirects, which needs updating now that {{banner shell}} has been retargeted. Rather than get AWB fixed [again] it may be simpler to update all the Talk pages that use {{banner shell}} so that the bug does not occur. -- John of Reading (talk) 10:27, 19 August 2024 (UTC)[reply]
Fun. I'll throw up a WP:AWBTASKS request. Primefac (talk) 10:39, 19 August 2024 (UTC)[reply]
Okay, should be sorted now. Primefac (talk) 12:45, 19 August 2024 (UTC)[reply]
Not directly related, but there is an another outstanding fix for banner shell edits, described here. It only requires deleting a few lines of code, ahem. I've linked the tickets in the interests of only opening the patient once. David Brooks (talk) 19:46, 21 August 2024 (UTC)[reply]

Adding WikiProject banners

[edit]

Hi, is WP:Kingbotk still used for this? It doesn't seem the bot is active and I can't see a way to do edit WikiProject banner shells on vanilla AWB Kowal2701 (talk) 08:44, 27 August 2024 (UTC)[reply]

I'm about to begin tagging articles for WP:WikiProject Anthropology/Oral tradition taskforce. I've gotten AWB to work however I'm stuck regarding KingbotK (TL;DR the KingbotK plugin fails to load). I've followed the instructions and have downloaded it and moved it into the same file as AutoWikiBrowser.exe.config. When I load AWB and click the 'Plugins' tab I get two options: 'Load...' and 'Manager...' Load takes me to the file and I click on 'Kingbotk AWB Plugin.dll'. Nothing changes, and when I click Manager it tells me it failed to load with no further information or options. Kowal2701 (talk) 11:25, 2 September 2024 (UTC)[reply]
Any help would be greatly appreciated Kowal2701 (talk) 15:33, 6 September 2024 (UTC)[reply]
Probably because of the "don't trust downloaded dlls" feature that's now pretty much default in Windows. Especially if you had to go through a "yes, really run this" procedure the first time you launched AWB. Anyway, find the DLL itself under the Plugins directory, right-click, Properties. If you see "This file came from another computer..." and an Unblock checkbox, click it and hit OK. I wish we didn't have to do this, but MS has decided to save you from yourself. David Brooks (talk) 17:09, 7 September 2024 (UTC)[reply]
@DavidBrooks thank you so much! Please have a great day Kowal2701 (talk) 17:48, 7 September 2024 (UTC)[reply]

Unauthorized Access Exception error

[edit]

Prompted by the discussion above, I just updated AWB. Windows 11 prompted me to run it as administrator, which I did.

Then when I tried to run the programme, I got an "UnauthorizedAccessException" error, with the exmplanation "Access to the path 'C:\Program Files (x86)\AutoWikiBrowser\AWBUpdater.exe' is denied."

Before I open a Phabricator ticket, is this a known issue/ easily fixed? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:20, 9 August 2024 (UTC)[reply]

Try look Search -> Local Security Policies -> Software Restrictions Policies -> Additional Rules; and check if exists any "path" type rules that prevent execution of certain files or access to certain folders. IndyJr (talk) 17:18, 11 August 2024 (UTC)[reply]
@IndyJr: Thank you. I presume you mean search in settings in Windows 11? There is no result - other than a web search - for "Local Security Policies". Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:36, 11 August 2024 (UTC)[reply]
Yes, Win11. But I've the Pro version, perhaps these settings doesn't exists in the Home version. IndyJr (talk) 18:10, 11 August 2024 (UTC)[reply]

Restored from the archive; the issue persists. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:05, 11 September 2024 (UTC)[reply]

I'm curious why it is trying to find the updater in Program Files (x86). Is that where you put the install? Anyway, it's possible you have the same problem as explored above. Find the folder with the AWBUpdater.exe file, right-click on the file, Properties. If the dialog offers you an Unblock checkbox, check it and OK. Does that help? If so, you should probably do the same with all the exe's and DLLs in the release. David Brooks (talk) 21:02, 12 September 2024 (UTC)[reply]
Yes, it is installed in 'Program Files (x86)'. I did as you suggest and there was no "unblock" option. The file was read-only, so I removed that, but it made no difference. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:14, 13 September 2024 (UTC)[reply]

Question regarding certain replacements

[edit]

Hi, I want to make this type of replacements inside a template, is it possible by AWB:

  • {{TEMPLATE|123|XYZ}} -> {{TEMPLATE|page=123|text=XYZ}} (i.e. shift unnamed parameters into named ones)
  • {{TEMPLATE|2=XYZ|1=123}} -> {{TEMPLATE|123|XYZ}} (i.e. organize ordering of unnamed parameters)

Thanks, —Svārtava (t/u) • 09:49, 12 September 2024 (UTC)[reply]

If your use cases will always appear in the orders you describe, then sure, using regex:
  • ({{TEMPLATE\s*\|\s*)([^|]*)\|([^}]*)}}$1page=$2|text=$3}}
  • ({{TEMPLATE\s*\|\s*)2=([^|]*)\|1=([^}]*)}}$1$3|$2}}
That being said, if a template takes both named and unnamed parameters (e.g. {{{1|{{{page|}}}}}}) then AWB should not be used to do this, as it is a cosmetic and unnecessary change and would be contrary to our rules of use. On the other hand, if a template is being replaced or otherwise updated then it is probably okay. I'd like to more details mainly so I could make sure I'm giving you the best advice for the edits you're seeking to make. Primefac (talk) 10:30, 12 September 2024 (UTC)[reply]