Uncaught (in promise) Error: The element doesn’t exist at custombox.min.js:9
-
Hi,
I’ve been loving the simplicity of the plugin and it seems to work really well in most circumstances. However I am running into a weird issue that seems to be intermittent.
I am using the plugin to load delete confirmation messages in a user area of a site; I have one at the top of the page (built using Toolset Content Templates) which opens a popup asking what kind of content the user wants to add. This one always works without fail, but the delete ones lower down sometimes work and sometimes don’t.
It seems to be if I clear the cache and load the page fresh then it will cause this error in the JS Console:
Uncaught (in promise) Error: The element doesn't exist at custombox.min.js:9 at new Promise (<anonymous>) at e.value (custombox.min.js:9) at s.value (custombox.min.js:9) at HTMLAnchorElement.<anonymous> (popupaoc-public.js:8) at HTMLDocument.dispatch (jquery.js:3) at HTMLDocument.r.handle (jquery.js:3) (anonymous) @ custombox.min.js:9 value @ custombox.min.js:9 value @ custombox.min.js:9 (anonymous) @ popupaoc-public.js:8 dispatch @ jquery.js:3 r.handle @ jquery.js:3 Promise.catch (async) value @ custombox.min.js:9 (anonymous) @ popupaoc-public.js:8 dispatch @ jquery.js:3 r.handle @ jquery.js:3
If I go into an post edit and get redirected back to the page then the delete link will work fine. I’ve tried everything I can think of to figure out the cause, but JS is not my strong point and I really like your plugin and wouldn’t want to abandon it due to this.
Any help would be greatly appreciated.
Many thanks.
- The topic ‘Uncaught (in promise) Error: The element doesn’t exist at custombox.min.js:9’ is closed to new replies.