Errors using oUF for raids
I'm currently working on an oUF layout, and am getting a lua error upon entering a raid or battleground. Most of the time the error looks like this:
Code:
1x table: 27A45838 edit: I'm using oUF version 1.5.15 edit2: Here's my layout file |
How does the default Lua error frame display the error?
|
Code:
Message: Interface\AddOns\stUnitFrames\layout.lua:12: attempt to concatenate local 'unit' (a nil value) Code:
if not self or not unit then print("self: "..self.."; unit"..unit) return end Code:
Message: Interface\AddOns\stUnitFrames\layout.lua:12: Wrong object type for member function Code:
self:RegisterForClicks("AnyUp") edit: Also, when I run a script to print GetObjectType of one of the frames that bugged out, it does show the object type as a Button, just like the frames that do work. |
The unit variable isn't always set on headers. oUF only does it when it is able to figure out what the layout is trying to spawn.
|
Quote:
Code:
self:SetActiveStyle("stUnitFrames") |
That's correct. I don't really replace the raid manager part of the UI, so I don't remove it. Earlier there weren't even slash commands for some of the functionality -- that might have changed now however...
|
Quote:
|
Code:
Message: Interface\AddOns\stUnitFrames\layout.lua:12: attempt to concatenate local 'unit' (a nil value) Code:
if not self or not unit then print("self: "..self.."; unit"..unit) return end Code:
if not self or not unit then Also, depending on how you're using this information, you might want to print self:GetName() instead of just self. |
All times are GMT -6. The time now is 12:34 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI