Errors in 11.0.2 #32


Open
  • Kharthus created this issue Aug 14, 2024

    1x RangeDisplay/RangeDisplay.lua:894: attempt to call global 'LoadAddOn' (a nil value)
    [string "@RangeDisplay/RangeDisplay.lua"]:894: in function `loadOptions'
    [string "@RangeDisplay/RangeDisplay.lua"]:755: in function <RangeDisplay/RangeDisplay.lua:710>
    [string "=[C]"]: ?
    [string "@AutoVendor/libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:70: in function <AutoVendor/libs/AceAddon-3.0/AceAddon-3.0.lua:65>
    [string "@AutoVendor/libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:498: in function `InitializeAddon'
    [string "@AutoVendor/libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:623: in function <AutoVendor/libs/AceAddon-3.0/AceAddon-3.0.lua:615>

  • Melchior82 posted a comment Aug 14, 2024

    I am seeing this error too.

    2x RangeDisplay/RangeDisplay.lua:894: attempt to call global 'LoadAddOn' (a nil value)
    [string "@RangeDisplay/RangeDisplay.lua"]:894: in function `loadOptions'
    [string "@RangeDisplay/RangeDisplay.lua"]:755: in function <RangeDisplay/RangeDisplay.lua:710>
    [string "=[C]"]: ?
    [string "@AutoProfitX2/libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <...dOns/AutoProfitX2/libs/AceAddon-3.0/AceAddon-3.0.lua:61>
    [string "@AutoProfitX2/libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:494: in function `InitializeAddon'
    [string "@AutoProfitX2/libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:619: in function <...dOns/AutoProfitX2/libs/AceAddon-3.0/AceAddon-3.0.lua:611>

    Locals:
    self = <table> {
    Sections = <table> {
    }
    modules = <table> {
    }
    defaultModuleLibraries = <table> {
    }
    name = "RangeDisplay"
    orderedModules = <table> {
    }
    units = <table> {
    }
    baseName = "RangeDisplay"
    db = <table> {
    }
    enabledState = true
    version = "RangeDisplay-v6.1.3"
    defaultModuleState = false
    AppName = "RangeDisplay"
    }
    (*temporary) = nil
    (*temporary) = "RangeDisplay_Options"
    (*temporary) = "attempt to call global 'LoadAddOn' (a nil value)"
    OptionsAppName = "RangeDisplay_Options"

  • Kharthus posted a comment Aug 14, 2024

    The fix is easy. Just change LoadAddOn to C_AddOns.LoadAddOn. There's a lot of this deprecated API stuff that finally got removed in 11.0.0 and 11.0.2 that addon authors were behind in fixing.

  • xXBcMadassXx posted a comment Aug 15, 2024

    I'm also getting this error. Where on the line am I changing this, Kharthus? I can't get it to work.

  • Awayuki posted a comment Aug 15, 2024

    @xXBcMadassXx

    RangeDisplay.lua
    Line 894

    self.optionsLoaded, self.optionsLoadError = C_AddOns.LoadAddOn(OptionsAppName)

    Edit:
    The error messages tell you were to search.
    "[string "@RangeDisplay/RangeDisplay.lua"]:894: in function `loadOptions'"

    Might be useful in the future.


    Edited Aug 15, 2024

To post a comment, please login or register a new account.