Edit Mode Broken When Addon Is Enabled
Edit Mode Broken When Addon is Enabled: A Troubleshooting Guide
Describe the Problem
When an addon is enabled, Edit Mode in World of Warcraft becomes broken. The Edit Mode frame is distorted, with incorrect heights and overflowing content. Additionally, some movable placeholders (blue boxes) are missing, and an error message appears in BugSack. This issue can be frustrating for players who rely on Edit Mode for various purposes.
What Steps Will Reproduce the Problem?
To reproduce the problem, follow these steps:
- Press the Esc key to open the Game Menu.
- Click the button to enter Edit Mode.
Consider Attaching a Screenshot
If possible, attach a screenshot to help describe the issue. This can be done by directly attaching the screenshot to the report, rather than linking to another website.
Addon Version and Error Log
The issue is being experienced with version 11.0.1 of the addon. The error log is as follows:
Interface/AddOns/Blizzard_BuffFrame/Mainline/BuffFrame.lua:390: attempt to compare number with nil
This error occurs when entering Edit Mode, which calls the RefreshCollapseExpandButtonState
function in BuffFrameMixin
. However, the numHideableBuffs
variable is only set in the UpdatePlayerBuffs
function, which is never called when all events on the BuffFrame are unregistered.
Code Analysis
The UpdatePlayerBuffs
function is responsible for setting the numHideableBuffs
variable to 0. However, this function is never called when the events on the BuffFrame are unregistered. This is likely the cause of the issue.
Solution
To fix the issue, add the following code:
BuffFrame.numHideableBuffs = 0
This sets the numHideableBuffs
variable to 0, which should resolve the issue.
Additional Information
If you are experiencing this issue, please provide additional information, such as the language of your WoW client (if not English). This can help in identifying the root cause of the problem and providing a more effective solution.
Conclusion
The Edit Mode issue is caused by the numHideableBuffs
variable not being set when the events on the BuffFrame are unregistered. By adding the code BuffFrame.numHideableBuffs = 0
, the issue can be resolved. If you are experiencing this issue, try the solution and report back if it works for you.
Troubleshooting Tips
- Make sure you are using the latest version of the addon.
- Check if the issue is specific to a particular addon or a combination of addons.
- Try disabling other addons to see if the issue persists.
- If the issue is still not resolved, try resetting your UI or reinstalling the addon.
Related Issues
- [Addon causes UI to freeze](link to related issue)
- [Edit Mode not working](link to related issue)
Community Support
If you are experiencing this issue, please join the WoW community forums to discuss the problem and share your experiences. This can help in identifying the root cause of the issue and providing a more effective solution.
Disclaimer
The solution provided is based on the information available and may not be applicable to all situations. If you are experiencing this issue, try the solution at your own risk and report back if it works for you.
Edit Mode Broken When Addon is Enabled: Q&A
Q: What is the Edit Mode issue in World of Warcraft?
A: The Edit Mode issue is a problem that occurs when an addon is enabled, causing the Edit Mode frame to become distorted, with incorrect heights and overflowing content. Additionally, some movable placeholders (blue boxes) are missing, and an error message appears in BugSack.
Q: What are the steps to reproduce the problem?
A: To reproduce the problem, follow these steps:
- Press the Esc key to open the Game Menu.
- Click the button to enter Edit Mode.
Q: What is the error log that appears when the issue occurs?
A: The error log is as follows:
Interface/AddOns/Blizzard_BuffFrame/Mainline/BuffFrame.lua:390: attempt to compare number with nil
Q: What is the cause of the issue?
A: The issue is caused by the numHideableBuffs
variable not being set when the events on the BuffFrame are unregistered.
Q: How can I fix the issue?
A: To fix the issue, add the following code:
BuffFrame.numHideableBuffs = 0
Q: What is the solution for the issue?
A: The solution is to set the numHideableBuffs
variable to 0, which can be done by adding the code BuffFrame.numHideableBuffs = 0
.
Q: Are there any other solutions for the issue?
A: Yes, there are other solutions that can be tried, such as:
- Disabling other addons to see if the issue persists.
- Trying to reset your UI or reinstalling the addon.
- Joining the WoW community forums to discuss the problem and share your experiences.
Q: Can I prevent the issue from occurring in the future?
A: Yes, you can prevent the issue from occurring in the future by:
- Making sure you are using the latest version of the addon.
- Checking if the issue is specific to a particular addon or a combination of addons.
- Trying to avoid using multiple addons that may cause conflicts.
Q: What are some related issues that I should be aware of?
A: Some related issues that you should be aware of include:
- [Addon causes UI to freeze](link to related issue)
- [Edit Mode not working](link to related issue)
Q: Where can I find more information about the issue?
A: You can find more information about the issue by:
- Joining the WoW community forums to discuss the problem and share your experiences.
- Searching online for solutions and workarounds.
- Checking the WoW website for official patches and updates.
Q: Can I get help from the WoW community?
A: Yes, you can get help from the WoW community by:
- Joining the WoW community forums to discuss the problem and share your experiences.
- Asking for help from other players who may have experienced the same issue.
- Sharing your own experiences and solutions with the community.