# Error message when running extended stroop on pavlovia - ReferenceError: msg is not defined

**URL:** https://discourse.psychopy.org/t/error-message-when-running-extended-stroop-on-pavlovia-referenceerror-msg-is-not-defined/21546
**Category:** Online experiments
**Created:** [March 20, 2021, 10:51pm UTC](https://discourse.psychopy.org/t/error-message-when-running-extended-stroop-on-pavlovia-referenceerror-msg-is-not-defined/21546 "2021-03-20T22:51:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![DevonM](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@DevonM](https://discourse.psychopy.org/u/DevonM)
#### Post date: [March 20, 2021, 10:51pm UTC](https://discourse.psychopy.org/t/error-message-when-running-extended-stroop-on-pavlovia-referenceerror-msg-is-not-defined/21546/1 "2021-03-20T22:51:09Z")

</div>

URL of experiment: [https://run.pavlovia.org/DevonMartin/strooop/html](https://run.pavlovia.org/DevonMartin/strooop/html)

Description of the problem: Hi, i am trying to run an extended stroop on Pavlovia for a dissertation project. I have got it working in PsychoPy, however after syncing to Pavlovia after the first trial an error message stating ‘ReferenceError: msg is not defined’ appears - i think this is to do with the routine feedback but not sure how to fix this. Any help would be appreciated please ask if any additional details are needed thanks.

---

<div class="post-metadata">

### Author: ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)
#### Post date: [March 20, 2021, 11:21pm UTC](https://discourse.psychopy.org/t/error-message-when-running-extended-stroop-on-pavlovia-referenceerror-msg-is-not-defined/21546/2 "2021-03-20T23:21:35Z")

</div>

Please could you show where you define and use msg?

---

<div class="post-metadata">

### Author: ![DevonM](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@DevonM](https://discourse.psychopy.org/u/DevonM)
#### Post date: [March 20, 2021, 11:51pm UTC](https://discourse.psychopy.org/t/error-message-when-running-extended-stroop-on-pavlovia-referenceerror-msg-is-not-defined/21546/3 "2021-03-20T23:51:41Z")

</div>

Hi yes of course,

 ![Screenshot 2021-03-20 at 23.48.11](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/b/1/b1d95f6483089d0837517e693c39152b74a9523b.png)

I am also unsure if something needs adding in here:

 ![Screenshot 2021-03-20 at 23.48.05](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/0/0/0030f055f822afebe2675fa851d92b35c4b4c267.png)

Thank you.

---

<div class="post-metadata">

### Author: ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)
#### Post date: [March 21, 2021, 7:15am UTC](https://discourse.psychopy.org/t/error-message-when-running-extended-stroop-on-pavlovia-referenceerror-msg-is-not-defined/21546/4 "2021-03-21T07:15:22Z")

</div>

Those code components need to be switched from Py to Auto. They aren’t yet generating any JavaScript code.

---

<div class="post-metadata">

### Author: ![DevonM](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@DevonM](https://discourse.psychopy.org/u/DevonM)
#### Post date: [March 21, 2021, 9:07am UTC](https://discourse.psychopy.org/t/error-message-when-running-extended-stroop-on-pavlovia-referenceerror-msg-is-not-defined/21546/5 "2021-03-21T09:07:27Z")

</div>

Thank you for the help that has worked!
