I’m having problems with my app for about a week now. I’ve not had this kind of problem it the past 1+ year I’ve been working on it.
For example, When I click an element, a popup is supposed to show. It’s been working for well over a year. Now when I click it (in some situations), the screen darkens, but the popup does not show. When I click on the page to dismiss it, the popup flashes then returns to the page, but the page is stuck and the app unresponsive. I have to refresh the page to get it back.
While checking the Chrome Console, I found this error about document.write(). This is immediately after page load, so no user interaction at all yet. Any ideas where this might be coming from? It looks like Bubble. I get the same error when I run in safe mode with no community plugins.
The “still waiting on Promise” message results in this error message. I don’t know how to track this down, but it only started about a week ago without any major changes to my app.
I don’t know if these are related to the problem I described above, but I’d like to resolve both even if they are not related. It seems like they showed up at the same time…
Well, clearly document.write() is causing a problem. As I searched online this seems to be a general problem causing performance issues. Using it is highly discouraged.
Now since you seem to be the only one with this problem issue might be in Third Party Script or Plugin Code, Custom HTML, Embedding External Websites. You need to find out which of these is using document.write() that interferes with Bubble’s original code.
If you can’t find the answer just reach out to Bubble’s customer service. I’m sure they can assist you.
As far as workflow issue goes it is a Bubble limitation. They do not let us trigger too many custom events. Bubble thinks it’s an endless loop. Just break them into pieces in a way that you don’t trigger too many workflows.
Thank you for your reply. As I stated, even when I run my Preview with no community plugins or HTML, I still receive the document.write() error. So it must be coming from Bubble. I don’t see how else.
Does anyone else receive this error? How else to track it down? I guess I’ll contact Bubble support as you suggest.
It’s odd because I only started getting this error about a week ago.
Is it only custom events? Or does it also include other workflows triggered by elements or by watching for a condition to be true, for example.
Only time I came across the same error it was just with Custom Events. When I had an action trigger a CE with an action that triggers another CE. You can only go 3 or 4 levels deep and that’s it.
Thank you. I resolved the issue of too many events! It turns out I was changing the value of an element based on one condition (in the element’s conditions) but then changing it to something else from a workflow using Display Data. This caused an infinite loop.
Regarding the document.write() error, I have finally traced it to Bubble’s Rich Text Editor plugin. I am working with Bubble support now, but it looks like Bubble needs to update the plugin.