WoWInterface

WoWInterface (http://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (http://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Not sure what addon is making this pop up (http://www.wowinterface.com/forums/showthread.php?t=56068)

Panthergaming 02-25-18 04:11 PM

Not sure what addon is making this pop up
 
Message: [string "*:OnClick"]:1: Usage: AcceptBattlefieldPort(id, accept)
Time: 02/25/18 22:09:52
Count: 6
Stack: [string "*:OnClick"]:1: Usage: AcceptBattlefieldPort(id, accept)
Interface\SharedXML\SharedBasicControls.lua:208: in function <Interface\SharedXML\SharedBasicControls.lua:207>
[C]: ?
[C]: in function `AcceptBattlefieldPort'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>

Locals: errorMessage = "[string "*:OnClick"]:1: Usage: AcceptBattlefieldPort(id, accept)"
DisplayMessageInternal = <function> defined @Interface\SharedXML\SharedBasicControls.lua:191
MESSAGE_TYPE_ERROR = 0

Ammako 02-25-18 04:29 PM

Hard for anyone to tell considering you're not telling us what addons you are using.

Panthergaming 02-25-18 04:56 PM

Align
ArtifactPowerUser
Aurora
Class Colors
Clique
DynamicCam
Elvui
Experiencer
Guild Manager
Masque
MoveAnything
oGlow
OPie
SDaraText
TRP3
WeakAuras
XToLevel
thats all the addons that i am useing

jeffy162 02-25-18 05:55 PM

Do you have any "addons" just in your Interface folder? NOT in your Addons folder. I ask this because the error doesn't have your Addons folder listed.

Panthergaming 02-25-18 06:36 PM

so its a wow addon moveAnthing and its a custom frame called pvreadyDialog not sure how to fix it as the error pops up when i close it

Seerah 02-25-18 07:37 PM

Quote:

Originally Posted by jeffy162 (Post 327061)
Do you have any "addons" just in your Interface folder? NOT in your Addons folder. I ask this because the error doesn't have your Addons folder listed.

That's because the stack trace is for Blizzard code. Anything not within the AddOns folder is not an addon and doesn't use Lua or XML, and will not throw an error. ;)

Kanegasi 02-25-18 07:38 PM

Quote:

Originally Posted by Panthergaming (Post 327063)
a custom frame called pvreadyDialog

There we go. What is this frame? Can you please post all the code related to this frame?

Edit: Nevermind, it's PVPReadyDialog (FrameXML\PVPHelper.xml:224). The part generating the error seems to be one of the two OnClick handlers for the enter/leave buttons:

XML Code:
  1. <Button name="$parentEnterBattleButton" inherits="UIPanelButtonTemplate" text="BATTLEFIELD_JOIN" parentKey="enterButton">
  2.     <Size x="115" y="22"/>
  3.     <Anchors>
  4.         <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOM" x="-7" y="25"/>
  5.     </Anchors>
  6.     <Scripts>
  7.         <OnClick>
  8.             if ( AcceptBattlefieldPort(self:GetParent().activeIndex, true) ) then
  9.                 if( StaticPopup_Visible( "DEATH" ) ) then
  10.                     StaticPopup_Hide( "DEATH" );
  11.                 end
  12.                 StaticPopupSpecial_Hide(self:GetParent());
  13.             end
  14.             PlaySound(SOUNDKIT.IG_CHARACTER_INFO_TAB);
  15.         </OnClick>
  16.     </Scripts>
  17. </Button>
  18. <Button name="$parentLeaveQueueButton" inherits="UIPanelButtonTemplate" text="LEAVE_QUEUE" parentKey="leaveButton">
  19.     <Size x="115" y="22"/>
  20.     <Anchors>
  21.         <Anchor point="BOTTOMLEFT" relativePoint="BOTTOM" x="7" y="25"/>
  22.     </Anchors>
  23.     <Scripts>
  24.         <OnClick>
  25.             if ( AcceptBattlefieldPort(self:GetParent().activeIndex, false) ) then
  26.                 StaticPopupSpecial_Hide(self:GetParent());
  27.             end
  28.             PlaySound(SOUNDKIT.IG_CHARACTER_INFO_TAB);
  29.         </OnClick>
  30.     </Scripts>
  31. </Button>

It seems that the activeIndex key of the frame may be nil when AcceptBattlefieldPort is called.

jeffy162 02-25-18 08:47 PM

WHOOPS!!!! I didn't know that. I guess that's what I get from not playing WoW for almost two years (and my memory being totally shot). :o


All times are GMT -6. The time now is 03:14 PM.

vBulletin © 2018, Jelsoft Enterprises Ltd
© 2004 - 2017 MMOUI