View Bug Report
Incompatible with TitanPanel (TitanMovable.lua)
Bug #: 7478
File: ShinyBuffs
Date: 07-09-11 06:29 AM
By: kovik
Status: Fixed
The addon is having an issue with TitanPanel, causing TitanPanel not to display. Any idea what could be causing this? Here's the dump:

Code:
Date: 2011-07-09 08:12:16
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\ShinyBuffs\ShinyBuffs.lua line 221:
   attempt to index global 'db' (a nil value)
Debug:
   [C]: ?
   ShinyBuffs\ShinyBuffs.lua:221: SetPoint()
   Titan\TitanMovable.lua:324: TitanMovableFrame_MoveFrames()
   Titan\TitanMovable.lua:472: TitanPanel_AdjustFrames()
   Titan\TitanPanel.lua:256:
      Titan\TitanPanel.lua:254
   Titan\TitanPanel.lua:379: TitanPanel_PlayerEnteringWorld()
   Titan\TitanPanel.lua:423: ?()
   Titan\TitanPanel.lua:251:
      Titan\TitanPanel.lua:250
From what I can gather, TitanMovable, which is part of TitanPanel, allows frames to be moved (?). One of the frames that it checks is the BuffFrame. However, when it tries to call the frame's SetPoint() method, the frame is attempting to use a variable called db which, at least at this point in the code, is undefined.

My experience with Lua is pretty much inexistant, but is there a way to ensure that this function doesn't replace the frame's SetPoint() method until after db has been defined? I think that would fix the issue.

RSS 2.0 Feed for Bug CommentsNotes Sort Options
By: Seerah - 07-09-11 11:00 AM
My bad - I was using a global variable. >.< I'll upload a fixed version. Odd that I missed that - db is usually one of the first upvalues I declare. ><

BUT this was only a problem because another of your addons is also unwisely using a generic global variable called db, which overwrote mine.