akirk / enable-mastodon-apps

Allow accessing your WordPress blog with Mastodon clients
https://wordpress.org/plugins/enable-mastodon-apps
GNU General Public License v2.0
36 stars 6 forks source link

Plugin is causing an error when saving Widgets (evaluating 'e.endpoints') #178

Closed lexpostma closed 1 month ago

lexpostma commented 1 month ago

I have widgets on my WordPress site and include some shortcodes for Font Awesome (not sure if this is relevant). When I update a widget and want to save it, I’m getting the following error:

There was an error. null is not an object (evaluating 'e.endpoints')

I tried several things, including WP Debug and disabling plugins one by one. Disabling “Enable Mastodon Apps” resolved the error, so I expect it might be caused by this plugin.

Hope you can resolve it. Please let me know how I can assist in finding the issue.

lexpostma commented 1 month ago

I’ve now tested this on a local WordPress install too. Getting a similar error with enabling this plugin:

There was an error. null is not an object (evaluating 'preflightResponse.endpoints’)

Again, the error is disappears when I disable “Enable Mastodon Apps”.

akirk commented 1 month ago

Sorry for the trouble, could you share a screenshot of the developer tools that show that error message so that the backtrace is visible? (a list of filenames)

lexpostma commented 1 month ago

I wish I knew how. The error shows in the WordPress UI, but not in the console. When I click the error, it just disappears. Here’s a screenshot and a screen recording.

Scherm­afbeelding 2024-10-08 om 18 57 55

After I reload, I clear the console and then click Update to trigger the error. No new messages show up in the console. This is in Safari, same happens in Firefox.

https://github.com/user-attachments/assets/b5364bc4-601b-45e3-92e1-aaf8a8bb035e

Is this what you meant? If not, please let me know what other dev tools I can pull up to assist.

akirk commented 1 month ago

I'm not sure I am familiar with that widget screen. Which theme do you use?

lexpostma commented 1 month ago

It’s my own custom theme, which is a fork from Twenty Twenty-Three. When I activate theme Twenty Twenty-Three version 1.5, the same happens. Also in Twenty Twenty-Four version 1.2.