just a little follow-up (apologies I know close to zero about javascript),
I tried to follow the origin of the above error msg and it tracks to an error in the produced info.php where the entry:
âexperimenterEmailâ => ,
is missing a value. By changing it to:
âexperimenterEmailâ => ââ,
it passed that error.
Then I was able to start the experiment, but it gets stuck after the instruction screen with other errors. This time the errors point to the index.html file. I corrected one (using common sense), then another but got to a point where the trial never starts, i.e. it goes straight from instructions to end. In the following the bit of code from index.html where errors where and my attempts to correct the code:
function instructionsRoutineEnd() {
//------Ending Routine âinstructionsâ-------
for (var i = 0; i < instructionsComponents.length; ++i) {
// thisComponent = trialComponents[i]; // this causes an error, trialComponents is not defined here
thisComponent = instructionsComponents[i]; // My correction
if (âsetAutoDrawâ in thisComponent) {
thisComponent.setAutoDraw(false);
}
}
// check responses
if ([ââ, [], undefined].indexOf(key_resp_2.keys) >= 0) { // No response was made
key_resp_2.keys = undefined;
}
thisExp.addData(âkey_resp_2.keysâ,key_resp_2.keys);
//if (resp.keys != undefined) { // error here: resp not defined
if (key_resp_2.keys != undefined) { // my correction
thisExp.addData(âkey_resp_2.rtâ, key_resp_2.rt)
}
tiny update:
I get the same errors when using the shipped demo stroop.psyexp (instead of my own version) and go through the same process of exporting HTML etc.
Same here. I saved a version of the stoop task, put the resources into the same folder as the html, and as far as I can get is to the participant gui. Canât go beyond that. So, I assume the launch of the online experiment is a bit premature with version 1.85?
Hello,
I run into exactly the same issue as uasolo (greyed out OK button that wonât let me proceed to the main experiment). The error msg. in the debug (Chrome browser) is also the same ("Uncaught function ⌠).
Did anyone find a solution? Would be really cool ⌠those online-experiments sound tooo promising
Best, Ralf.
Quite a few months later and Iâm encountering the exact same error with the greyed out OK button. I can manually edit it out in the debug Chrome browser and force the experiment to start, but obviously, this is not a permanent solution.
Also getting this issue! I have a large-ish online project that has been working with a lot of coaxing, but just tried to recompile and got this error. I donât know how why it came up now - have not seen this particular problem before.
Sorry - I missed this mention. I am trying to run online studies, and have now updated psychopy to 3.1.4. This is my current issue - help appreciated! Javascript variables won't persist