BDPluginLibrary: Plugin constructor() could not be fired.
Original Issue
For the past day or 2, I have been getting this error:
I am using the latest version of ZeresPluginLibrary on Discord Canary.
How can I fix this issue?
The full error is here:
TypeError: Cannot read properties of undefined (reading 'Provider')
at DiscordProviders (betterdiscord://plugins/0PluginLibrary.plugin.js:4674:41)
at Sa (https://canary.discord.com/assets/1a9a618b93cd3472669e.js:1779:54)
at gu (https://canary.discord.com/assets/1a9a618b93cd3472669e.js:1833:146)
at Ic (https://canary.discord.com/assets/1a9a618b93cd3472669e.js:1826:89)
at mc (https://canary.discord.com/assets/1a9a618b93cd3472669e.js:1826:17)
at hc (https://canary.discord.com/assets/1a9a618b93cd3472669e.js:1825:867)
at uc (https://canary.discord.com/assets/1a9a618b93cd3472669e.js:1822:983)
at Fi (https://canary.discord.com/assets/1a9a618b93cd3472669e.js:1762:577)
at lc (https://canary.discord.com/assets/1a9a618b93cd3472669e.js:1823:498)
at https://canary.discord.com/assets/1a9a618b93cd3472669e.js:1842:522
at el (https://canary.discord.com/assets/1a9a618b93cd3472669e.js:1842:561)
at t.render (https://canary.discord.com/assets/1a9a618b93cd3472669e.js:1846:205)
at Popouts.initialize (betterdiscord://plugins/0PluginLibrary.plugin.js:4584:18)
at new PluginLibrary (betterdiscord://plugins/0PluginLibrary.plugin.js:6238:49)
at A.initializeAddon (betterdiscord/renderer.js:4:33541)
at A.loadAddon (betterdiscord/renderer.js:4:7808)
at A.loadAddon (betterdiscord/renderer.js:4:32796)
at AsyncFunction.<anonymous> (betterdiscord/renderer.js:4:5617)
EDIT:
This Discord update has been pushed to stable build now, and with that comes the hundreds of people to don’t read existing issues and just open new ones.
However, if you are actually reading this:
To all the new people having this issue on stable build: This bug is unlikely to cause any issues at all with plugins. All plugins should function normally. Just ignore the error message. The bug should soon be fixed.
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 7
- Comments: 36 (2 by maintainers)
Good. We don’t support message loggers.
I love the display of insecurity whenever someone says “we”, referring to a vague, undefined group (as it makes the often fringe stance seem more common at the same time), instead of saying “I” in an attempt to make it sound more authoritative, essentially using peer pressure to make “wrongthinkers/doers” fall in line.
You should learn to stand behind your opinions on your own before you start threatening people with your internet big brother, ItMeSarah, though I am aware that it is often difficult for someone of your disposition, especially when the matter concerns a plugin that would forcibly expose you to concepts such as taking responsibility for your own actions, something you try to avoid as was made apparent by your message, which is both funny and ironic.
Anyhows, I can confirm this issue exists on latest version of PTB at the time of writing. Can also confirm that pearwb1235’s ghetto fix didn’t make the error go away for me at least.
Thank you so much to @Lucatir and @ImportTaste for having common sense. This whole situation with people hating on a plugin that lets you save messages is ridiculous.
The root issue has been fixed in the latest version. Any issues you have with unofficial plugins are not of a concern to me.
Yes. As I have previously said, the bug with Zeres will hopefully get fixed soon but doesn’t affect the usage of any other plugins. The code I provided above is just for an issue with MessageLoggerV2 that was unrelated to Zeres but caused by the same Discord update.
This issue is affecting PTB and Canary and will likely affect Stable soon, however, it is apparently nothing to worry about:
It’s a link to the issue reported on the BetterDiscord server, but since this link was copied using a Canary version of Discord, it has that annoying canary subdomain. The proper URL is https://discord.com/channels/86004744966914048/1110266188728119379 which I think will jump you to the channel if you paste it somewhere privately in Discord and then click on it.
latest version, still being reproduced, on discord PTB.