I was trying to fix a mod (the joys of someone else's code
![Big Grin](//cdn-wow.mmoui.com/images/style_mmoi_wowi2/smilies/biggrin.gif)
). The mod is old and was still using the
Code:
this:RegisterEvent("");
syntax, which obviously does not work in WoW4. I had read that the preferred method now is self:RegisterEvent, but that failed with the same error (could not index self/this a nil value).
I did finally get it to work, or at least to not error, by specifying the frame name:
MyFrame:RegisterEvent("VARIABLES_LOADED");
but I still don't think that's right.