Thread Tools Display Modes
10-30-14, 05:00 PM   #1
Iezabel
A Deviate Faerie Dragon
 
Iezabel's Avatar
Join Date: Oct 2014
Posts: 10
Forbidden Function

Code:
Date: 2014-10-30 18:56:09
ID: 1
Error occured in: AddOn: <xxx>
Count: 1
Message: Error: AddOn <xxx> attempted to call a forbidden function (FocusUnit()) from a tainted execution path.
Debug:
   [C]: FocusUnit()
   ..\FrameXML\UnitPopup.lua:1877: func()
   ..\FrameXML\UIDropDownMenu.lua:748: UIDropDownMenuButton_OnClick()
   [string "*:OnClick"]:1:
      [string "*:OnClick"]:1
I used <xxx> as the AddOn because no matter WHAT addon i enable/disable I get this message.
  Reply With Quote
10-30-14, 05:21 PM   #2
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
There is an addon that taints the default Blizzard UI.

Disable all addons, then enable them one by one, do with every newly enabled addon what you're doing to get the error message, and see which addon is the guilty one.

[e]
Oh, and you could do full text search in your addons folder for "UIDropDownMenu". Every addon that contains this string could be the cause.

Last edited by Duugu : 10-30-14 at 05:25 PM.
  Reply With Quote
10-31-14, 12:38 AM   #3
Iezabel
A Deviate Faerie Dragon
 
Iezabel's Avatar
Join Date: Oct 2014
Posts: 10
It seems all of my addons minus Stuf Unit Frames is causing this error. All I'm trying to do is set a focus.
  Reply With Quote
10-31-14, 05:38 AM   #4
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
*shrug*

A list of the said addons could be helpful.
  Reply With Quote
10-31-14, 08:16 AM   #5
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
Originally Posted by Iezabel View Post
It seems all of my addons minus Stuf Unit Frames is causing this error. All I'm trying to do is set a focus.
This has been an issue for years. Only the default UI's UnitFrames can get away with using SetFocus() in their dropdown menus.

Here are some (of many) examples of people talking about this:
A WoWI forum thread from 2010: http://www.wowinterface.com/forums/s...ad.php?t=29869
An X-Perl ticket from 2009: http://www.wowace.com/addons/xperl/t...s-not-working/
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote
10-31-14, 09:23 AM   #6
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
We used to have to remove the Set Focus option from the unitframe dropdowns until they gave us the ability to set the dropdown securely though :SetAttribute('type2', 'togglemenu').
  Reply With Quote
10-31-14, 09:33 PM   #7
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Iezabel View Post
It seems all of my addons minus Stuf Unit Frames is causing this error. All I'm trying to do is set a focus.
Without a list of your addons there's just no possible way we can even guess which addon might be causing the problem.

Here's the easiest way to get a postable list of your addons:

Open your AddOns folder in Windows Explorer. Shift-right-click on a blank space in the window. Click "Open command window here" in the popup menu. Type the following command and press Enter:

@dir /on /ad /b > addonlist.txt

(Note: The command window doesn't support pasting with Ctrl+V, but you can paste by right-clicking and selecting "Paste" in the popup menu.)

Now, open the new "addonlist.txt" file in your AddOns folder and copy/paste its contents into a post, or just attach the file itself to your post.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
11-01-14, 12:03 PM   #8
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
Or you could post the contents of
<wow folder>\WTF\Account\<ACCOUNTNAME>\<ServerName>\<CharacterName>\AddOns.txt
  Reply With Quote
11-01-14, 02:44 PM   #9
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Does that actually include all the addons now, or just the ones whose enabled states you've ever changed?
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
11-02-14, 12:58 AM   #10
Voyager
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 22
Originally Posted by Duugu View Post
Or you could post the contents of
<wow folder>\WTF\Account\<ACCOUNTNAME>\<ServerName>\<CharacterName>\AddOns.txt
That list isn't good, as it includes addons that have been deleted long ago, and it's not sorted alphabetically either.

After further research I found that it also includes addons I never had. Apparently, if any other addon is being referenced somewhere in your addons, it will be listed there, regardless whether you have it or not.

Last edited by Voyager : 11-02-14 at 01:30 AM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Forbidden Function


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off