Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 65051

Uncaught (in promise) TypeError: Cannot read property ‘apply’ of undefined

$
0
0

Replies: 0

Resurrecting this thread:
https://wordpress.org/support/topic/uncaught-in-promise-typeerror-cannot-read-property-apply-of-undefined/

@joelnewcomer and @mochkal, FYI:

When editing any non-forum content (e.g., a Page or Post), Asgaros Forum triggers the javascript error detailed in the previous thread.

I have traced this to the mentioning feature. Specifically, if you remove the tinymce callback in includes/forum-mentioning.php:49, the error stops. Based on that function, one short-term option would be to disable the mentioning feature or the mentioning-suggestions feature.

@asgaros I believe it’s because js/script-mentioning.js isn’t enqueued in those contexts, so adding the 'window.asgaros.suggestions_initialize' callback is undefined. This feature probably shouldn’t be added in the backend, anyway.

Hope that helps!


Viewing all articles
Browse latest Browse all 65051

Trending Articles