# What to do in case of an ELEM UNDEF error

**URL:** <https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335>\
**Category:** Announcements\
**Tags:** elem-undef\
**Created:** [November 10, 2023, 1:31pm UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335 "2023-11-10T13:31:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [November 10, 2023, 1:31pm UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/1 "2023-11-10T13:31:34Z")

</div>

Hey there 👋

You may have noticed an ELEM UNDEF error message appearing in some of your apps recently. This happens when we have a synchronisation issue, your data is still there but unreadable by the editor.

It’s something the tech team is working hard to fix. However, the fix may still be a few weeks away because the upcoming release of components is slowing down our investigations.

In the meantime, here’s a guide of what to do when it happens:

1. **do _NOT_ delete the element or its container** because that will make it impossible to recover

2. use the restoration popup to provide us with some context about when the issue happened and try restoring the element:

 ![image (1)](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/9/9f90d6c6c02594dd4fa7ffd17135ce6e6fa58eb8.png)

This will automatically create a notification on our side that we will investigate. Still we encourage you to also open a support ticket with us so you can see the progress we make

1. **[open a support ticket](https://support.weweb.io/) with ELEM UNDEF in your ticket title**, we will prioritize it and recover the element for you (as long as you have followed step 1 and made sure NOT to delete it or a parent container.

## Other things you can try

1. if you have custom code in workflows or formulas, you can **try [opening the editor in safe mode](https://docs.weweb.io/editor/debug-editor.html#_1-safe-mode)** to see if the issue is still there. if it’s not, you can either hunt down the custom code that could be creating the conflict or [open a support ticket](https://support.weweb.io/) so we can help you find the source of the error. Make sure to include ELEM UNDEF in your ticket title so we can prioritize it

2. if you have access to **[editor backups](https://docs.weweb.io/settings-billing-code-export/project-settings/backups.html)** and find a version that you are happy to work with (no work lost and no elem undef), you can rollback to that version

We know this is not ideal but rest assured we ARE working on the topic and will do our best to support you while it is being resolved.

Best,  
Joyce

_Updated: December 1st, 2023_

---

<div class="post-metadata">

**Author:** ![Zacharyb](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/zacharyb/32/3567_2.png) [@Zacharyb](https://community.weweb.io/u/Zacharyb)\
**Post date:** [November 11, 2023, 10:21pm UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/3 "2023-11-11T22:21:29Z")

</div>

Another strategy :

- Create a whole new div outside the one where une UNDEF happen
- Select the UNDEF element from the left panel, and drag n drop it into the new div
- Seection the new div and delete it  
[Loom | Free Screen & Video Recording Software | Loom](https://www.loom.com/share/c0425a8973184d39bfcafd22ee208149?sid=6a28274d-ff65-4567-a044-e376cfb0c562)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [November 14, 2023, 11:19am UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/4 "2023-11-14T11:19:24Z")

</div>

But then you lose the ELEM UNDEF, you don’t recover it. So I wouldn’t recommend that option unless you’re ok redesigning what you had there

---

<div class="post-metadata">

**Author:** ![Zacharyb](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/zacharyb/32/3567_2.png) [@Zacharyb](https://community.weweb.io/u/Zacharyb)\
**Post date:** [November 14, 2023, 3:34pm UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/5 "2023-11-14T15:34:55Z")

</div>

yes yes of course, but in case of there is many other things that are not in this UNDEF, this avoid to redesign the whole div  
In my example, the image, i didn’t needed to remake it

---

<div class="post-metadata">

**Author:** ![mahrukh\_nocode](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@mahrukh\_nocode](https://community.weweb.io/u/mahrukh_nocode)\
**Post date:** [November 20, 2023, 12:03pm UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/6 "2023-11-20T12:03:53Z")

</div>

@Joyce Any update on this bug? It’s now more than 10 days and I am still getting the error.

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [November 22, 2023, 3:36pm UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/7 "2023-11-22T15:36:30Z")

</div>

Hi @mahrukh_nocode 👋

The tech team is exploring two main theories but have to wait for the big release of libraries and components before they can test these two potential explanations further.

We can’t commit on a bug fix date because:

- we can’t know for sure we have identified the root cause of the issue yet
- we won’t be able to investigate further until we release libraries and components

> [@mahrukh\_nocode](#):
>
> It’s now more than 10 days and I am still getting the error.

Have you created bug ticket [here](https://support.weweb.io/)? If not, please do so that we can assist you further.

---

<div class="post-metadata">

**Author:** ![jptrinh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jptrinh/32/1493_2.png) [@jptrinh](https://community.weweb.io/u/jptrinh)\
**Post date:** [December 12, 2023, 9:55am UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/8 "2023-12-12T09:55:48Z")

</div>

Thanks for the tip @Zacharyb! My component was displayed fine (after recovered from ELEM UNDEF). But I couldn’t select that element anymore, so I deleted it 🙂

---

<div class="post-metadata">

**Author:** ![Zacharyb](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/zacharyb/32/3567_2.png) [@Zacharyb](https://community.weweb.io/u/Zacharyb)\
**Post date:** [December 15, 2023, 8:26pm UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/9 "2023-12-15T20:26:15Z")

</div>

Hello don’t know if it’s helps, but Webflow seemed to have the same kind of error maybe, maybe worth to investigate on how they did find this “weird” bug (their words)

> **[Empty element improvements in the designer | Webflow Features](https://webflow.com/feature/empty-element-improvements-in-the-designer)**
>
> Some of you ran into issues with empty elements in Dynamic Lists, so we pushed a change to fix that for everyone.

---

<div class="post-metadata">

**Author:** ![tillyboard](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/tillyboard/32/3317_2.png) [@tillyboard](https://community.weweb.io/u/tillyboard)\
**Post date:** [December 29, 2023, 1:44pm UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/10 "2023-12-29T13:44:46Z")

</div>

WeWeb is getting a bit buggy. I’m working on my app and have already encountered 3 ELEMENT UNDF errors. I was able to recover one of them using the Recover Tool, but it didn’t work for the other two elements. I’m starting to get worried about continuing to work on my app in case I lose more elements. I’ve also already created support tickets that have not been addressed yet. I also don’t have two editors open simultaneously to reduce the problem. I hope WeWeb can quickly get this under control or provide a workaround to prevent these errors at least.

---

<div class="post-metadata">

**Author:** ![tillyboard](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/tillyboard/32/3317_2.png) [@tillyboard](https://community.weweb.io/u/tillyboard)\
**Post date:** [December 29, 2023, 1:58pm UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/11 "2023-12-29T13:58:17Z")

</div>

I have found a workaround that at least speeds up the recovery process a bit.

1. The element is displayed as “ELEMNT UNDF” - Then you can try using the Recover Tool to retrieve the element.
2. If step 1 doesn’t work, you add a DIV to the section (otherwise, WeWeb says “You can’t paste something here…”).
3. Then you go to the your Backup and copy the functioning DIV, then return to the Main Editor and paste the “functioning” element onto the newly added DIV.
4. The editor will recognize the element then and can read it again. There will be two identical DIVs in the section, but you can delete one of them.
5. This has worked really well for me now…

\*after going through this entire process, when there are two DIVs present, it appears as if you have two identical elements. However, it’s important to closely examine the structure of these DIVs. One of the DIVs is fully visible in the preview, but in the layout (on the left), it’s empty. When workflows reference this DIV, make sure to verify that you are deleting the correct DIV and then fill it back in with the missing elements.

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [December 29, 2023, 2:06pm UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/12 "2023-12-29T14:06:05Z")

</div>

Hi @tillyboard 👋

Yeah, I definitely understand your concerns. It’s top of our list to solve this issue. The tech team has already identified (and fixed) a few situations where ELEM UNDEF errors appeared but there’s still work to be done because we haven’t yet been able to identify / reproduce every situation where it can happen.

That’s why we ask you to create a support ticket with as much information as possible whenever it happens to you. We’re not always able to reply right away but it helps us a lot to identify potential causes, reproduce that specific ELEM UNDEF, and fix it.

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [December 29, 2023, 2:06pm UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/13 "2023-12-29T14:06:59Z")

</div>

Thanks so much for taking the time to share this, Fynn! REALLY appreciate it 🙏

---

<div class="post-metadata">

**Author:** ![Himanshu](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/himanshu/32/16305_2.png) [@Himanshu](https://community.weweb.io/u/Himanshu)\
**Post date:** [January 2, 2024, 3:11pm UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/14 "2024-01-02T15:11:00Z")

</div>

@Joyce This bug is causing issues.

I cannot recover the element because it is not clickable. I had to rebuild the part from scratch as it was the side menu, and the app couldn’t work without a side menu. Unfortunately, just two days after rebuilding it, we will now need to build it again.

I have submitted a bug report with videos and screenshots, but I’m unsure if another report will help.

Is there any expected timeline on when this will be resolved?

---

<div class="post-metadata">

**Author:** ![Zacharyb](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/zacharyb/32/3567_2.png) [@Zacharyb](https://community.weweb.io/u/Zacharyb)\
**Post date:** [January 14, 2024, 12:04am UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/15 "2024-01-14T00:04:22Z")

</div>

Hello !  
I suggest to try this [What to do in case of an ELEM UNDEF error - #3 by Zacharyb](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/3)

with this you don’t have to rebuild everything

---

<div class="post-metadata">

**Author:** ![ben](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/ben/32/5605_2.png) [@ben](https://community.weweb.io/u/ben)\
**Post date:** [January 24, 2024, 3:41am UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/16 "2024-01-24T03:41:06Z")

</div>

Hi @Joyce - is there an update on this issue? Thanks.

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [January 24, 2024, 9:36am UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/17 "2024-01-24T09:36:40Z")

</div>

Hi @ben, @Himanshu 👋

This matter has been partially resolved but there’s no expected timeline on when this will be resolved entirely.

The reason for this is that undefined elements can be caused by different things and are very hard to reproduce without specific information about a project. We have fixed all identified causes.

With that in mind, @Himanshu, don’t hesitate to create several reports! We’ll look at each one separately and it will help us identify and fix other potential causes.

We recommend you [create a new bug ticket](https://support.weweb.io/) every time you see this happen with as much information as possible about when/how it happened. The more undefined elements we can reproduce, the quicker we can resolve this matter completely.

---

<div class="post-metadata">

**Author:** ![Himanshu](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/himanshu/32/16305_2.png) [@Himanshu](https://community.weweb.io/u/Himanshu)\
**Post date:** [January 24, 2024, 2:25pm UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/18 "2024-01-24T14:25:28Z")

</div>

Hey @Joyce thanks for responding.

The occurrences have reduced drastically for us. In the last three weeks, it probably happened only once.

We’ve since converted everything inside of the sidebar (the element in question) to a component, and when it occurred, we didn’t lose our work, and the component could be used.

@Zacharyb thanks for the tip. Will try it next time it occurs (hopefully not soon)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [January 24, 2024, 2:33pm UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/19 "2024-01-24T14:33:46Z")

</div>

> [@Himanshu](#):
>
> The occurrences have reduced drastically for us. In the last three weeks, it probably happened only once.
> 
> We’ve since converted everything inside of the sidebar (the element in question) to a component, and when it occurred, we didn’t lose our work, and the component could be used.

Ah that’s great to read! Thanks for lettings us know 🙂 Glad you didn’t lose any work!!

---

<div class="post-metadata">

**Author:** ![Zacharyb](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/zacharyb/32/3567_2.png) [@Zacharyb](https://community.weweb.io/u/Zacharyb)\
**Post date:** [January 24, 2024, 2:46pm UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/20 "2024-01-24T14:46:46Z")

</div>

One thing, careful if your only item in a section that has this bug, has only 1 component (and within subcomponent), in this case it doesn’t work !

---

<div class="post-metadata">

**Author:** ![Dorian](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorian/32/13183_2.png) [@Dorian](https://community.weweb.io/u/Dorian)\
**Post date:** [April 26, 2024, 7:01pm UTC](https://community.weweb.io/t/what-to-do-in-case-of-an-elem-undef-error/5335/21 "2024-04-26T19:01:54Z")

</div>

@Joyce I just hit one of these for the first time. Restore did not work. Support ticket submitted. Help! 🙏

CC @caffeinatedwes
