I'm getting the following error (copied from BugSack) when upgrading from oUF_MovableFrames 1.11 to 1.14;
1x ...les\unitframes\plugins\oUF_MovableFrames\movable.lua:353: bad argument #1 to '(for generator)' (table expected, got nil):
...les\unitframes\plugins\oUF_MovableFrames\movable.lua:353: in function <...les\unitframes\plugins\oUF_MovableFrames\movable.lua:343>:
(tail call): ?:
|
Problem seems to be that the _DB.__INITIAL table doesn't exist (for people who just upgraded from 1.11) when the VARIABLES_LOADED event occur, yet the addon assumes it does. It was solved for me by simply adding a check for it:
lua Code:
-- Clean up the defaults DB:
if _DB.__INITIAL then
for layout, frames in next, _DB.__INITIAL do
if(not _DB[layout]) then
_DB.__INITIAL[layout] = nil
else
for frame in next, frames do
if(not _DB[layout][frame]) then
_DB.__INITIAL[layout][frame] = nil
end
end
end
end
end
If this issue already has been reported somewhere, I apologize. I couldn't find anything!