Hi All, I’ve encountered several Reference Error issues when trying to run the study in the browser from the Builder or from Pavlovia. Otherwise, it works on my machine.
To give an example, I’ve adapted a version of the code I found on this forum whereby participants can provide written responses by typing in text.
I initialize empty string in Begin Routine (i.e. captured_string=’’) to which all the pressed keys are added (through code I put in Each Frame). This is displayed on the screen every frame through setting “$captured_string+cursorVariable” (cursorVariable is just “|”).
When I run it online I get this error:
- ReferenceError: captured_string is not defined
To give another example, I made a list with several pictures that I have to present at random positions on the screen (I tried both Begin Experiment and Begin Routine).
options = [‘astronomy.jpg’,‘car.jpg’,‘chemistry.jpg’, …….]
Then, on the screen I display them through:
Similarly, when I run the study online, I get the same ReferenceError: options is not defined
I get the same error each time I try to set the image/text through a variable like in these examples.
This error makes it impossible for me to run my experiment online using PsychoPy which is a shame because I’ve already learned to implement the paradigm using this software.
I would be very grateful if anyone would help me out find a way to fix this error!