| Reference | Downloads | Github

TrialHandler problem: error is not an Object

URL of experiment:

Description of the problem: I’m getting the following error when running my experiment:

I suspect this has something to do with the experiment being unable to load my conditions csv file, but I’m not sure how to fix this as the csv file is already contained inside the HTML folder of the experiment. Does anybody know what’s causing this? Thanks!

The path for your csv file includes a series of …/…/… indicating that it lives outside the project folder. Is that true? On your local machine that works OK but on the web the file won’t be accessible. Could you move it inside the project and then go back and point to the file again from inside your loop?

Thanks for your reply! I have tried this, but now it’s giving me the following error:

  • ReferenceError: Can’t find variable: Height

I think this means it’s somehow unable to read the variables from the .csv file, as Height of the stimulus is contained in it for each trial.