Thread: Help to fix pls
View Single Post
06/02/18, 06:02 AM   #5
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
First you should remove the exampleoptions.lua and the LibAddonMenu-2.0.txt from the libs folder.
No need for them as the library is called from the manifest txt of the addon.

Then:
In line 218 there is a variable "buttoN" which isn#t declared anywhere so it is nil and throws this error:
Lua Code:
  1. if profileValue ~= boolValue then
  2.         checkboxControl:GetHandler("OnClicked")(checkboxControl, button)
  3.     end

Try to change it to something like this and see if it works then:
Lua Code:
  1. if profileValue ~= boolValue then
  2.         checkboxControl:GetHandler("OnClicked")(checkboxControl)
  3.     end

Or try this:
Lua Code:
  1. if profileValue ~= boolValue then
  2.         local cbOnClickedHandler = checkboxControl:GetHandler("OnClicked")
  3.         cbOnClickedHandler(checkboxControl)
  4.     end
  Reply With Quote