Message: Interface\AddOns\Altoholic\Altoholic.lua:626: attempt to get length of local 'charsOnQuest' (a nil value) #977


Closed
  • Alfakennyone created this issue Sep 26, 2017

    It shows up when viewing linked items.

     

    Message: Interface\AddOns\Altoholic\Altoholic.lua:626: attempt to get length of local 'charsOnQuest' (a nil value)
    Time: 09/26/17 19:09:54
    Count: 2
    Stack: Interface\AddOns\Altoholic\Altoholic.lua:626: attempt to get length of local 'charsOnQuest' (a nil value)
    [C]: ?
    Interface\AddOns\Altoholic\Altoholic.lua:626: in function `ListCharsOnQuest'
    Interface\AddOns\Altoholic\Tooltip.lua:658: in function <Interface\AddOns\Altoholic\Tooltip.lua:657>
    [C]: ?
    [C]: in function `Show'
    ...AddOns\Auc-Advanced\Libs\LibExtraTip\LibExtraTip.lua:129: in function `h'
    ...AddOns\Auc-Advanced\Libs\LibExtraTip\LibExtraTip.lua:480: in function <...AddOns\Auc-Advanced\Libs\LibExtraTip\LibExtraTip.lua:476>
    [C]: ?
    [C]: ?
    Interface\AddOns\DBM-Core\DBM-Core.lua:2524: in function <Interface\AddOns\DBM-Core\DBM-Core.lua:2520>
    [C]: ?
    [C]: ?
    ...
    [C]: ?
    ...ace\AddOns\Blizzard_CombatLog\Blizzard_CombatLog.lua:3573: in function <...ace\AddOns\Blizzard_CombatLog\Blizzard_CombatLog.lua:3509>
    [C]: ?
    [C]: in function `SetItemRef'
    Interface\FrameXML\ChatFrame.lua:3468: in function <Interface\FrameXML\ChatFrame.lua:3467>
    [C]: ?
    [C]: ?
    [C]: in function `ChatFrame_OnHyperlinkShow'
    [string "*:OnHyperlinkClick"]:1: in function <[string "*:OnHyperlinkClick"]:1>
    [C]: ?

    Locals:

  • Alfakennyone edited description Sep 26, 2017
  • Adrian_G2 posted a comment Sep 27, 2017

    Happened to me too,

    https://wow.curseforge.com/projects/altoholic/issues/969

     (see second comment there)

     

     

    the reason the error happens is that you have data from before patch 7.3.  Blizz changed a bit the way that API functions work in patch 7.3 and Altoholic is trying to process the old data format (already saved in Datastore) but with the new API calls.

     

    the error is solved by forcefully resetting Altoholic's data - delete Altoholic's (and Datastore*) saved variables.

     

     


    Edited Sep 27, 2017
  • TwilightVoid12 posted a comment Oct 15, 2017

    I was receiving the same error, and deleting all DataStore/Altoholic data from the SavedVariables folder did not function in resolving it.

     

    I ended up just commenting out the calls to the ListCharsOnQuest function (by putting a -- in front of it) as follows:

     

    Altoholic\Altoholic.lua

    Line 622 (entire function)

    Altoholic\Tooptip.lua

    Line 658

    Altoholic_Characters\Frames\Quests.lua

    Line 192

    Altoholic_Characters\Templates\QuestLogRow.lua

    Line 57

     

    This fixed it for me, at least until the creator updates.

  • Alfakennyone posted a comment Nov 21, 2017

     

    Got this idea from another fix of another addon

     

    Download - https://wow.curseforge.com/projects/altoholic/files/952268

     

    Replace the Altoholic.lua file in your WOW addon folder with the one you just downloaded

     

    Problem solved

  • EnigmaniteZ posted a comment Nov 21, 2017

    alternative fix: go to line 626 and replace it with this:

    if charsOnQuest and #charsOnQuest > 0 then

    why this works? from the lua manual:

     Both <code>and</code> and <code>or</code> use short-cut evaluation; that is, the second operand is evaluated only if necessary.

    what the code does is check first if charsOnQuest evaluates to true, which it won't if it's nil or false. since the value in question will likely only be a number or nil, success.





    Edited Nov 21, 2017
  • Thaoky closed issue Aug 10, 2018
  • Thaoky posted a comment Aug 10, 2018

    No longer applicable (8.0)


To post a comment, please login or register a new account.