Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Uncaught ReferenceError: Variable ... not present in var store

Hello!

First of all, I'm sorry if this topic is already asked before as I'm afraid the solution will be different in my situation. I really am a newbie in managing Open Sesame too so I'd like to ask for your assistance.

I'm currently having an issue testing my experiment on both external browser (Chrome) and as JATOS study. For a starter, my experiment is an Implicit Association Test (for Happiness) and I used an IAT template from Michael Pinus and Yoav Bar-Anan (https://osf.io/v8yaj/) for the experiment. When I tested it on the software, it works perfectly fine. But the problem starts when I tried it on browser, as my final goal is to bring it Online through JATOS. It says on the screen: "Uncaught ReferenceError: Variable 'blocknumber' not present in var store.

The console looks like this:

And this is my file (if in case it's needed):


That is all, I think. I'm really open for any further discussion. Thank you very much in advance! :)

Comments

  • Hi Ananda,

    The IAT template that you're using is not compatible with OSWeb. An overview of functionality that is available in OSWeb, and an explanation of how to check whether your experiment is compatible, can be found here:

    If you want to run an IAT online, you're better of with this tutorial by @lvanderlinden . This is not a ready-made experiment, but it requires only functionality that is also compatible with OSWeb.

    Cheers!

    Sebastiaan

  • Hello, Sebastiaan!

    I'd like to thank you for your answer and responsiveness, I appreciate it a lot.

    So.. I've followed your instruction to take a look at the tutorial, and thus I've made new experiment with said steps. I've already checked for the functionality that is compatible with OSWeb as well. The experiment seems to work well on software, but just like before, it doesn't quite work on the browser. But there's no error notice on the screen; in fact, the first sketchpad appeared. But then, when I tried to move to the next sketchpad (with keyboard 'space' press), nothing happened. I've tried to change the duration of said sketchpad to keypress, then to zero, but I don't think that changes anything.. And for side note, I've disabled the AdBlock that I have on my Chrome as well.

    The console looks like this:

    And this is the file, just in case:


    I'd be beyond grateful if you want to look at the issue further. Thank you very much!

  • Hi Ananda,

    This is because of a known and subtle issue (ping @Daniel ) where multiple linked copies in the same sequence lead to trouble in OSWeb. The solution will be to use either unlinked keyboard_response items (which is of course not elegant), or to use a keypress duration in the sketchpad items.

    Cheers!

    Sebastiaan

  • Hello Sebastiaan, thank you so much for answering! I'm deeply sorry for I posted the same discussion twice; I'll make sure I won't make the same mistake.

    Following the current solutions, I've tried making some unlinked keyboard_response for every sequence I have, then I tried to run them on browser. It seems like the issue isn't resolved yet, as my screen still freezes on the first sketchpad (and unresponsive). I then tried to do the latter, I'm changing the duration of sketchpads into keypress, and it doesn't seem to work as well.

    Perhaps it's quite irrelevant, but for my console, as you can see in my previous comment, I have a message "failed to parse SourceMap". After I unchecked the "Enable JavaScript source maps" and "Enable CSS source maps" on the setting of Chrome, the message seems to disappear from the console, although the space keypress issue still persists. If you perhaps have any other ideas about this, I'll be forever thankful. Sorry to bother you this far, and thank you in advance!

  • It seems like the issue isn't resolved yet, as my screen still freezes on the first sketchpad (and unresponsive)

    Then there are probably still linked copies of some things. So I would first look at that, and if you cannot figure out you can attach the experiment here again.

    Perhaps it's quite irrelevant, but for my console, as you can see in my previous comment, I have a message "failed to parse SourceMap".

    I think that's harmless!

  • Hello Sebastiaan, here's the file of my experiment:

    The file name is still same as before, but I already changed the keyboard_response into unlinked copies. Thank you so much for taking this concern seriously! :)

  • Hi Ananda,

    Ok, the issue was actually something different from what I thought. (Although the linked copies are also a thing.) Apparently 'space' is not accepted as an allowed response. So clearing the allowed-responses field will resolve this issue. We'll look into this.

    Cheers!

    Sebastiaan

  • Hello Sebastian!

    I've cleared all of the allowed-responses field and that actually resolves the issue! Thank you very much. Although, in return, there's one problem that just arises.. So, I have a 7 blocks experiment, and each of them requires the participants to get the correct responses in a particular sketchpad by clicking either 'e' or 'i' button on keyboard. On the first block, the keyboard response works just fine. But when the experiment continues to second block (and the problem persists onwards), the sketchpad can not proceeds unless I double click the correct response on my keyboard. I've tried searching for the similar problem on the forum, and the responses are all the same: to change the duration of sketchpad to zero; in which, I already set before the problem arises. If perhaps you have any idea for this, I will be so grateful.

    Here's the file again just in case it's needed:

    Thank you so much!!

  • That's because of the run-if statement, which is missing in the later trial sequences, and therefore the second-chance response is always executed.

Sign In or Register to comment.