# Error with p5.js web editor

**URL:** <https://discourse.processing.org/t/error-with-p5-js-web-editor/22047>\
**Category:** p5.js\
**Created:** [June 22, 2020, 12:37am UTC](https://discourse.processing.org/t/error-with-p5-js-web-editor/22047 "2020-06-22T00:37:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neonix](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@Neonix](https://discourse.processing.org/u/Neonix)\
**Post date:** [June 22, 2020, 12:37am UTC](https://discourse.processing.org/t/error-with-p5-js-web-editor/22047/1 "2020-06-22T00:37:29Z")

</div>

Hello everybody.  
I was just working on a sketch when, by accident, I pressed some keys in my keyboard (don’t know if this has to do with it but it happened immediately after so I think it does) and now every time I start the sketch I receive the following error messages:

p5 had problems creating the global function “createElement”, possibly because your code is already using that name as a variable. You may want to rename your variable to something else.

You just changed the value of “hue”, which was a p5 function. This could cause problems later if you’re not careful.

When I open other sketches it bugs out and I also receive other error messages.  
Any clues? Please help me fix it because it makes the web editor practically unusable.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [June 22, 2020, 12:44am UTC](https://discourse.processing.org/t/error-with-p5-js-web-editor/22047/2 "2020-06-22T00:44:04Z")

</div>

> **[How to Clear the Cache in Google Chrome - Technipages](https://www.technipages.com/google-chrome-clear-cache)**
>
> Keep the cache cleared in your Google Chrome web browser with these steps.

  

> **[Mozilla Firefox](https://clear-my-cache.com/windows/mozilla-firefox.html)**
>
> That´s the way how to clear the cache in Firefox on your Windows PC ✓

---

<div class="post-metadata">

**Author:** ![Neonix](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@Neonix](https://discourse.processing.org/u/Neonix)\
**Post date:** [June 22, 2020, 2:10am UTC](https://discourse.processing.org/t/error-with-p5-js-web-editor/22047/3 "2020-06-22T02:10:20Z")

</div>

Sadly I just did this and it didn’t work. Any other ideas? And what does this error message mean exactly? I didn’t change any values and even then why does it affect every sketch in my account?

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [June 22, 2020, 2:12am UTC](https://discourse.processing.org/t/error-with-p5-js-web-editor/22047/4 "2020-06-22T02:12:16Z")

</div>

I simply dunno. Clearing the browser’s cache was a guess.  
Can you try out another browser and see if the errors still happen there?

---

<div class="post-metadata">

**Author:** ![Neonix](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@Neonix](https://discourse.processing.org/u/Neonix)\
**Post date:** [June 22, 2020, 2:22am UTC](https://discourse.processing.org/t/error-with-p5-js-web-editor/22047/5 "2020-06-22T02:22:28Z")

</div>

I also get that message with Firefox. And I just downloaded my sketch, opened it in the browser and it ran fine, so my code is not the problem. p5.js web editor seems to be the problem. The weird thing is that all of this happened right after I pressed a random sequence of keys.
