Wikipedia talk:AutoWikiBrowser/Bugs/Archive 29

Archive 25Archive 27Archive 28Archive 29Archive 30Archive 31

TypeInitializationException Unable to log in

Status   Fixed in the next release
Description
Exception:TypeInitializationException
Message:The type initializer for 'WikiFunctions.Parse.Parsers' threw an exception.
Call stack:
   at WikiFunctions.Parse.Parsers..ctor(Int32 stubWordCount, Boolean addHumanKey)
   at AutoWikiBrowser.MainForm..ctor()
Inner exception:TypeInitializationException
Message:The type initializer for 'WikiFunctions.Parse.SiteMatrix' threw an exception.
Call stack:
   at WikiFunctions.Parse.SiteMatrix.GetProjectLanguages(ProjectEnum project)
   at WikiFunctions.Parse.MetaDataSorter.set_InterWikiOrder(InterWikiOrderEnum value)
   at WikiFunctions.Parse.MetaDataSorter..ctor()
   at WikiFunctions.Parse.Parsers..cctor()
Inner exception:NullReferenceException
Message:Object reference not set to an instance of an object.
Call stack:
   at WikiFunctions.Parse.SiteMatrix.LoadFromNetwork()
   at WikiFunctions.Parse.SiteMatrix..cctor()

System.TypeInitializationException: The type initializer for 'WikiFunctions.Parse.Parsers' threw an exception. ---> System.TypeInitializationException: The type initializer for 'WikiFunctions.Parse.SiteMatrix' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.

  at WikiFunctions.Parse.SiteMatrix.LoadFromNetwork()
  at WikiFunctions.Parse.SiteMatrix..cctor()
  --- End of inner exception stack trace ---
  at WikiFunctions.Parse.SiteMatrix.GetProjectLanguages(ProjectEnum project)
  at WikiFunctions.Parse.MetaDataSorter.set_InterWikiOrder(InterWikiOrderEnum value)
  at WikiFunctions.Parse.MetaDataSorter..ctor()
  at WikiFunctions.Parse.Parsers..cctor()
  --- End of inner exception stack trace ---
  at WikiFunctions.Parse.Parsers..ctor(Int32 stubWordCount, Boolean addHumanKey)
  at AutoWikiBrowser.MainForm..ctor()

PHANTOMTECH (talk) 00:58, 14 May 2015 (UTC)

To duplicate: Unknown
Site URL: https://en.wikipedia.org
Operating system Microsoft Windows NT 6.2.9200.0
.NET FW Version 2.0.50727.8009
AWB version AutoWikiBrowser (5.5.6.0), WikiFunctions (5.5.6.0), revision 10538 (2014-12-23 21:37:52)
Workaround
Fixed in version 5.5.7.0 -- Magioladitis (talk) 21:21, 15 May 2015 (UTC)



That seems to be a global problem, maybe someting wrong with structure, returned by sitematrix API call. I'm currently unable to start AWB on any setup I normally use it on (2k3, XP, 7). There should definitely be some kind of fallback, utilizing offline cached version of that data in case of any exception during downloading/parsing online version. --Teslaton (talk) 00:53, 14 May 2015 (UTC)

Same here. I used it this morning and it was fine...I tried booting it up again about 13 hours later and I got this message. --Ser Amantio di NicolaoChe dicono a Signa?Lo dicono a Signa. 01:39, 14 May 2015 (UTC)

I had no problems using AWB a few weeks ago but now I get these 2 errors when starting it. AWB finishes starting but doesn't work once it does, I also get errors when trying to open things like the preferences menu which just give an error and don't open. PHANTOMTECH (talk) 00:58, 14 May 2015 (UTC)

AWB was working for me yesterday; now it fails when logging on. Hmains (talk) 03:20, 14 May 2015 (UTC)

@Hmains and Magioladitis:@PhantomTech:@Ser Amantio di Nicolao, Teslaton, and Arman musikyan: Same for me. Weird thing is I'm using SVN 10911. I rebooted my machine yesterday (patch Tuesday). I recompiled the latest SVN version. I started one AWB around 9 hours ago and it is working fine. I just started up another AWB for running the bot, it throws of the error and then just hangs. What did Mediawiki change? Bgwhite (talk) 03:32, 14 May 2015 (UTC)
New version of Mediawiki went live today. Bgwhite (talk) 03:35, 14 May 2015 (UTC)
Village pump discussion. Bgwhite (talk) 05:39, 14 May 2015 (UTC)

The problem seems to be caused by the following snippet in sitematrix response:

  <language _idx="24" code="bh">
    <site>
      <site url="http://bh.wikipedia.org" dbname="bhwiki" code="wiki" sitename="विकिपीडिया"/>
      <site url="http://bh.wiktionary.org" dbname="bhwiktionary" code="wiktionary" sitename="Wikipedia" closed=""/>
    </site>
  </language>

The <language> element for this language lacks the name attribute, so the following line in WikiFunctions.Parse.SiteMatrix.LoadFromNetwork() fails due to null dereference: [1]. Does anybody know where to report this? --Teslaton (talk) 10:18, 14 May 2015 (UTC)

There is also quite straightforward way, how to fix this for future, by using a lang code as default for the name:

  string langCode = lang.Attributes["code"].Value;
  string langName = (lang.Attributes["name"] != null ? lang.Attributes["name"].Value : langCode);

If someone builds from sources, it is an easy fix. --Teslaton (talk) 10:30, 14 May 2015 (UTC)

I have the same problem on Windows Vista. Dead in the water. Chris the speller yack 11:18, 14 May 2015 (UTC)

Yes, that's the problem, Bihari wiki entry has no name. We have raised a phabricator ticket and are waiting for one of the wikimedia devs to get back to us. Rjwilmsi 11:33, 14 May 2015 (UTC)
I have uploaded a snapshot release here named 5.5.6.0-S, this is the 5.5.6.0 release with a workaround for the Bihari wiki not having a name. Rjwilmsi 16:21, 14 May 2015 (UTC)
@Rjwilmsi: I tried the new snapshot, but it just erases itself (the .exe file) and then disappears. The .exe file is smaller than the current release (477kb vs 517kb formerly). Chris the speller yack 17:07, 14 May 2015 (UTC)
Sorry, I've no idea if you say that the exe deletes itself. On the phabricator ticket there is a link to another snapshot somebody else created, maybe you can get that to work. Rjwilmsi 17:15, 14 May 2015 (UTC)
I tried that other one, and it gets further, but it stops working when processing the first page. I'm still dead in the water. Chris the speller yack 17:44, 14 May 2015 (UTC)
That's weird. I've made that build from CVS snapshot using SharpDevelop and .NET SDK 7. The only problem was with MSHTML assembly, I had to reference one from Office2k3 Interop Assemblies redist to be able to build it. Anyway, I'm using that build hapilly right now against skwiki (on XP and 2k3 Server). --Teslaton (talk) 18:23, 14 May 2015 (UTC)
  • I can't log in, I can't load my user preferences, I can't do anything with it right now. I even tried updating to the latest version (5.5.5.0 to 5.5.6.0) and it didn't help. Is there an ETA on getting this invaluable tool running again? Thanks. 3gg5amp1e (talk) 17:56, 14 May 2015 (UTC)
@Rjwilmsi: Turns out that AWB did not delete itself; it was Norton 360 Security. It says "A program was behaving suspiciously on your computer. Thus program was removed". Below that, "File autowikibrowser.exe Threat Removed". This did not happen with the standard 5.5.6.0 file. Chris the speller yack 18:02, 14 May 2015 (UTC)
Norton says of this file "SONAR.Heuristic.120 is a heuristic detection for processes based on certain attributes." Chris the speller yack 18:17, 14 May 2015 (UTC)
@Chris the speller: Ok, well not sure what I can do about Norton deciding not to like it. What exactly happened using the other build on the phabricator link? @3gg5amp1e: have you downloaded and tried the snapshot version? Rjwilmsi 18:20, 14 May 2015 (UTC)
@Rjwilmsi: I figured out how to get Norton to leave it alone, and now it works great. Thanks for your help! Chris the speller yack 02:15, 15 May 2015 (UTC)
@Rjwilmsi: what is that and how do I download it? 3gg5amp1e (talk) 18:22, 14 May 2015 (UTC)

Go to here download the 5.5.6.0-S zip file, unzip, run AutoWikiBrowser as normal. Rjwilmsi 18:24, 14 May 2015 (UTC)

Hebrides check here please. -- Magioladitis (talk) 19:38, 14 May 2015 (UTC)

I just downloaded the 5.5.6.0-S zip and it works for me too. Problem solved. Thank you. — Hebrides (talk) 19:56, 14 May 2015 (UTC)

Bildungsbürger check here please. -- Magioladitis (talk) 20:26, 14 May 2015 (UTC)

I also downloaded 5.5.6.0-S.zip and it is working for me now. thank you. When will this be "officially" fixed, so that the message concerning a missing certificate will also disappear? --Bildungsbürger (talk) 20:55, 14 May 2015 (UTC)

SchreiberBike check here please. -- Magioladitis (talk) 21:11, 14 May 2015 (UTC)

Bildungsbürger, SchreiberBike Go to here download the 5.5.6.0-S zip file, unzip, run AutoWikiBrowser as normal. -- Magioladitis (talk) 21:11, 14 May 2015 (UTC)

Thanks for the fix! Anyone looking for the file, note that it's actually called AutoWikiBrowser-5.6.6.0-S.zip. MANdARAX  XAЯAbИAM 00:31, 15 May 2015 (UTC)

OK, I've got the download, but I can't make Norton like the program. How does one go about changing that? --Ser Amantio di NicolaoChe dicono a Signa?Lo dicono a Signa. 02:35, 15 May 2015 (UTC)

Had the two bug above with the latest SVN. Downloaded the snapshot above and got the Norton error.  :-( GoingBatty (talk) 03:18, 15 May 2015 (UTC)
My antivirus, avast!, told me it was evil too, but I told it to accept the program anyway and have had no problems. (fingers remain crossed)  SchreiberBike | ⌨  04:37, 15 May 2015 (UTC)
@Ser Amantio di Nicolao: @GoingBatty: I just got the latest Norton 360 Security a couple of days ago, and its appearance is somewhat changed, so your Norton may look a little different, but try this: When Norton says that it removed the program, click on "Details"; somewhere on one of the panels is the word "Restore" in blue letters (not a button, just the text, and it's in a pretty small typeface); click on that, and you get an option to click that Norton should ignore this program in the future. This is just from my memory, and I can't run it again to check, as I chose to have Norton ignore this version of AutoWikiBrowser. Two of the criteria for considering this a suspicious program are its newness and the small number of people using it. As time goes on and more people ask Norton to restore and ignore, Norton may come to love AWB as we do. Chris the speller yack 04:44, 15 May 2015 (UTC)
@Chris the speller:   Done - thanks! Now hoping SVN can be fixed too. GoingBatty (talk) 05:03, 15 May 2015 (UTC)
@Chris the speller: Didn't work for me, for some reason, but I found another fix. Looks OK for now...we'll see in the morning if it holds. Thanks for the help! --Ser Amantio di NicolaoChe dicono a Signa?Lo dicono a Signa. 05:36, 15 May 2015 (UTC)
Thanks for the fix! (it.wikipedia.org) --Pracchia-78 (talk) 16:48, 15 May 2015 (UTC)

Latest update won't connect to Simple English Wikipedia

Status   Resolved
Description After updating to AWB 5.5.7.0, can't connect to Simple English Wikipedia. I get the following messages:

Error connecting to wiki

An error occured while connecting to the server or loading project information from it. Please make sure that your internet connection works and such combination of project/language exist.

Enter the URL in the format "en.wikipedia.org/w/" (including path where index.php and api.php reside).

Error description: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.

Auntof6 (talk) 05:29, 16 May 2015 (UTC)

To duplicate: Either load an existing settings file that is for simplewiki, or try to set the site to "simple".
Site URL: simple.wikipedia.org
Operating system Windows 8
.NET FW Version 2.0.50727.6421
AWB version 5.5.7.0
Workaround
Fixed in version


It seems, this assembly is a new dependency since after 5.5.6.0 (and someone forget to add it to 5.5.7.0 release archive). As a quick fix you can use Newtonsoft.Json.dll binary from this build: [2]. Maybe some of devs will explain more. --Teslaton (talk) 09:13, 16 May 2015 (UTC)

Auntof6, Teslaton I re-uploaded th zip file. -- Magioladitis (talk) 10:26, 16 May 2015 (UTC)

It seems, this assembly is a new dependency since after 5.5.6.0 (and someone forget to add it to 5.5.7.0 release archive). As a quick fix you can use Newtonsoft.Json.dll binary from this build: [3]. Maybe some of devs will explain more, see above.User: Perhelion 09:46, 16 May 2015 (UTC)

User: Perhelion I re-uploaded th zip file. -- Magioladitis (talk) 10:27, 16 May 2015 (UTC)

Template substitution function is broken

Status   Fixed in the next release
Description The result of substitution is always Because no values have been specified for the prop parameter, a legacy format has been used for the output. This format is deprecated, and in the future, a default value will be set for the prop parameter, causing the newformat to always be used. [4]
To duplicate: Use the template substitution function in any article with any template.
Site URL: https://cs.wikipedia.org
Operating system Windows Vista
.NET FW Version 2.0.50727.4253
AWB version Version 5.5.6.0, SVN 10538 (2014-12-23 21:37:52)
Workaround replacement "{{Template" → "{{subst:Template", without possibility to change the result
Fixed in version rev 10945 by Rjw. -- Magioladitis (talk) 09:15, 17 May 2015 (UTC)


Matěj Suchánek (talk) 11:16, 12 April 2015 (UTC)

Dead end removal too aggressive

Status   Fixed in the next release
Description To resolve a recent bug report, an API call was added to get link count so we count any links transcluded from templates. However, now the {{dead end}} template is being removed when the only wikilinks are in maintenance templates and citation templates. GoingBatty (talk) 23:31, 24 May 2015 (UTC)
To duplicate: Try Central Securities Repository of Poland, Raghav Chadha, Adrian Cheng, DC Fashion Week, Juan Diéguez Olaverri, Education in social work, Johann Heinrich Ehrhardt, Exchange spring magnet
Site URL: en.wikipedia.org
Operating system Windows 7
.NET FW Version 2.0.50727.5485
AWB version 5.5.7.1 SVN 10999
Workaround Stop running my bot task until this is resolved
Fixed in version rev 11020


So @GoingBatty: what do you suggest then. We add {{dead end}} only if API count is zero (to retain the fix for the recent bug report), yet we only remove if explicit wikilinks on page is more than zero (to address this issue)? Rjwilmsi 14:52, 27 May 2015 (UTC)
@Rjwilmsi: Could the API counter be set to ignore maintenance templates and citation templates when adding or removing the {{dead end}} tag? GoingBatty (talk) 00:44, 28 May 2015 (UTC)
No, not to my knowledge. Rjwilmsi 07:36, 28 May 2015 (UTC)
@Rjwilmsi: Then I support your suggested resolution above. Thanks! GoingBatty (talk) 23:15, 29 May 2015 (UTC)
rev 11020 08:52, 30 May 2015 (UTC)