[BfA] TEXT Error (with error message) #619

  • Fixed
  • DrSlumpy created this issue Jul 17, 2018

    I'm going over errors from various addons starting with the first instance of the errors to get to root causes.

    In this error, it looks like:

    button1 = TEXT(YES),

    button2 = TEXT(NO),

    is no longer valid.




    Message: Interface\AddOns\MoveAnything\MoveAnything.lua:752: attempt to call global 'TEXT' (a nil value)
    Time: Tue Jul 17 21:26:09 2018
    Count: 1
    Stack: Interface\AddOns\MoveAnything\MoveAnything.lua:752: attempt to call global 'TEXT' (a nil value)
    Interface\AddOns\MoveAnything\MoveAnything.lua:752: in main chunk
    Locals: _G = <table> {
     UpdateOnBarHighlightMarksBySpell = <function> defined @Interface\FrameXML\ActionButton.lua:70
     ERR_OUT_OF_CHI = "Not enough chi"
     DH_HAVOC_CORE_ABILITY_2 = "Strong melee attack that consumes Fury. If it critical strikes, some Fury is refunded."
     MultiCastActionButton6Cooldown = MultiCastActionButton6Cooldown {
     MerchantItem9ItemButtonStock = MerchantItem9ItemButtonStock {
     GetTrainerServiceTypeFilter = <function> defined =[C]:-1
     UNIT_NAMES_COMBATLOG_TOOLTIP = "Color unit names."
     SetTrainerServiceTypeFilter = <function> defined =[C]:-1
     StoreMicroButtonAlertGlowBottom = StoreMicroButtonAlertGlowBottom {
     SPELL_FAILED_CUSTOM_ERROR_71 = "This partygoer wants to dance with you."
     ERROR_CLUB_TICKET_COUNT_AT_MAX_COMMUNITY = "Can't create any more invite links for this community."
     RecruitAFriendFrame = RecruitAFriendFrame {
     CompactUnitFrameProfilesGeneralOptionsFrameHealthTextDropdownButtonNormalTexture = CompactUnitFrameProfilesGeneralOptionsFrameHealthTextDropdownButtonNormalTexture {
     TutorialFrameLeft19 = TutorialFrameLeft19 {
     MultiCastActionButton2Cooldown = MultiCastActionButton2Cooldown {
     ERR_TRADE_EQUIPPED_BAG = "You can't trade equipped bags."
     PVP_RANK_6_1 = "Corporal"
     BOOKTYPE_PROFESSION = "professions"
     AudioOptionsVoicePanelOutputDeviceDropdownButtonHighlightTexture = AudioOptionsVoicePanelOutputDeviceDropdownButtonHighlightTexture {
     VideoOptionsFrameDefaults = VideoOptionsFrameDefaults {
     MerchantItem1AltCurrencyFrameItem1Text = MerchantItem1AltCurrencyFrameItem1Text {
     OPTION_TOOLTIP_ACTION_BUTTON_USE_KEY_DOWN = "Action button keybinds will respond on key down, rather than on key up."
     BINDING_NAME_NAMEPLATES = "Show Enemy Name Plates"
     INSTANCE_UNAVAILABLE_OTHER_TEMPORARILY_DISABLED = "%s cannot enter. This instance is temporarily disabled."
     MultiBarBottomRightButton8Shine5 = MultiBarBottomRightButton8Shine5 {
     IsReferAFriendLinked = <function> defined =[C]:-1
     MAIL_LETTER_TOOLTIP = "Click to make a permanent
    copy of this letter."
     UnitFrameManaBar_UnregisterDefaultEvents = <function> defined @Interface\FrameXML\UnitFrame.lua:787
     PaperDollTitlesPaneButton10BgTop = PaperDollTitlesPaneButton10BgTop {
     FCFDockOverflowButton_OnClick = <function> defined @Interface\FrameXML\FloatingChatFrame.lua:2372
     TutorialFrameRight19 = TutorialFrameRight19 {
     ChatFrame6EditBoxFocusMid = ChatFrame6EditBoxFocusMid {
     BN_UNABLE_TO_RESOLVE_NAME = "Unable to whisper '%s'. Blizzard services may be unavailable."
     CompactRaidFrameManagerDisplayFrameHiddenModeToggleTopRight = CompactRaidFrameManagerDisplayFrameHiddenModeToggleTopRight {
     LFGTeleport = <function> defined =[C]:-1
     SpellButton6Cooldown = SpellButton6Cooldown {
     ToggleEncounterJournal = <function> defined @Interface\FrameXML\UIParent.lua:905
     Graphics_QualityText = Graphics_QualityText {
     TalentMicroButtonAlertShadowTopLeft = TalentMicroButtonAlertShadowTopLeft {
     OverrideActionBarButton6Shine11 = OverrideActionBarButton6Shine11 {
     ROGUE_COMBAT_CORE_ABILITY_4 = "Melee attack that spends Combo Points."
     JoinSkirmish = <function> defined =[C]:-1
     Advanced_GraphicsAPIDropDownButtonHighlightTexture = Advanced_GraphicsAPIDropDownButtonHighlightTexture {
     MultiBarRightButton7Shine9 = MultiBarRightButton7Shine9 {
     BankFrameItem17SearchOverlay = BankFrameItem17SearchOverlay {
     LFGListSearchPanelScrollFrameButton10BottomRight = 



    (Yes, the Locals just cuts off right there.)

  • bluspacecow posted a comment Jul 18, 2018

    This is due to MoveAnything still using the TEXT() function which was depreciated years ago.


    The function is AFAIK useless as it actually doesn't do anything to the text it's given - it's like giving a blue bucket to a function that then paints it blue (#butwhy)



    Fix is to find all occurrences where -


    TEXT(athing) is used and change it to athing


    EG in the code example above


    button1 = TEXT(YES),
    button2 = TEXT(NO),




    button1 = YES,
    button2 = NO,


    There's several other places where this functions used in this Addon so I've taken the liberty of uploading my altered lua files to -




    Use the Download button on the right hand side to download the two lua files


    Unzip and move profile.lua and MoveAnything.lua inside the folder that unzips to -


    World of Warcraft -> Interface -> Addons -> MoveAnything

    Edited Jul 18, 2018
  • bluspacecow posted a comment Jul 18, 2018

    Forgot to add - each line that I've edited has a "-- edited by Bluspacecow" so if you need to check on the lines I altered that's how to find them.


    Also I'm not the author so don't know this code well enough to do further fixes. In my limited testing patching for TEXT() function is working but I don't use the addon regularly enough to thoroughly test every bug out of it. If you find more then post new bug tickets :)

  • DrSlumpy posted a comment Jul 18, 2018

    Interesting lesson. I find stuff like this is hard to find for Lua. Not as well documented like in Python where I know exactly which version and when something was removed from the library. Thanks for the info!

  • poloner01 posted a comment Jul 18, 2018

    Thank you bluspacecow ! You just saved my life, MA works again with BfA :-)

  • Shimiya posted a comment Jul 18, 2018

    I have this LUA Error now :


    Related to the new Status Bar, Bartender4 had already solve this (Remove XP/Rep/AP bar, they have been replaced by the Status bar)


    8x MoveAnything\FrameList.lua:275: hooksecurefunc(): MainMenuExpBar_SetWidth is not a function
    [C]: ?
    MoveAnything\FrameList.lua:275: in function `runOnce'
    MoveAnything\API.lua:224: in function <MoveAnything\API.lua:219>
    (tail call): ?
    [C]: ?
    MoveAnything\MoveAnything-16.3.2.lua:1291: in function `SyncFrames'
    MoveAnything\MoveAnything-16.3.2.lua:1262: in function `SyncAllFrames'
    MoveAnything\MoveAnything-16.3.2.lua:5808: in function <MoveAnything\MoveAnything.lua:5410>


     Reset EXP Bar modification solve the issue

    Edited Jul 18, 2018
  • bluspacecow posted a comment Jul 19, 2018

     @ jj7766917214 


    Try deleting all Lua files pertaining to MoveAnything in your WTF Saved Variables folders


    Next when logging in game disable all addons except for MoveAnything


    Then give it a go.

  • Resike closed issue Jul 20, 2018
  • Resike added a tag Fixed Jul 20, 2018

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