Lua-Error #371


  • New
Open
  • Krypton1506 created this issue Apr 26, 2026

    Message: Interface/AddOns/GatherMate2/GatherMate2.lua:527: attempted to index a table that cannot be indexed with secret keys
    Time: Sun Apr 26 12:19:06 2026
    Count: 4
    Stack:
    [C]: ?
    [Interface/AddOns/GatherMate2/GatherMate2.lua]:527: in function 'GetIDForNode'
    [Interface/AddOns/GatherMate2/Collector.lua]:222: in function '?'
    [Interface/AddOns/Masque/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua]:109: in function <...que/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:109>
    [C]: ?
    [Interface/AddOns/Masque/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua]:19: in function <...que/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
    [Interface/AddOns/Masque/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua]:54: in function 'Fire'
    [Interface/AddOns/BattlePetCompletionist/Libs/AceEvent-3.0/AceEvent-3.0.lua]:120: in function <...ePetCompletionist/Libs/AceEvent-3.0/AceEvent-3.0.lua:119>

    Locals:

  • Krypton1506 added a tag New Apr 26, 2026
  • bsmorgan posted a comment Apr 26, 2026

    I decided to fix this issue at the source. Starting at line 523 in GatherMate2.lua I modified the two functions as shown below. "type" is a function so I changed that parameter name and added issecretvalue tests in both functions.

    --[[
    	Node id function forward and reverse
    ]]
    function GatherMate:GetIDForNode(nodeType, name)
    	if issecretvalue(nodeType) or issecretvalue(name) then
    		return
    	end
    	return self.nodeIDs[nodeType][name]
    end
    --[[
    	Get the name for a nodeID
    ]]
    function GatherMate:GetNameForNode(nodeType, nodeID)
    	if issecretvalue(nodeType) or issecretvalue(name) then
    		return
    	end
    	return self.reverseNodeIDs[nodeType][nodeID]
    end
    

     

     


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