psychopy.org | Reference | Downloads | Github

Stuck on initializing experiment screen

URL of experiment: Pavlovia

Description of the problem: My online experiment is stuck on the ‘initializing experiment’ screen. I believe that this is caused by a syntax error in the JavaScript, as shown in the error message.

Screenshot 2020-07-01 at 15.09.59

Would someone please be able to help me work out where the syntax error is in my code?

Thank you!

Open up the two files in your html folder (you will need to open these files in some kind of text editor–I like TextWrangler). The code will be labeled with line numbers. Look for the lines of code indexed in your error messages–it looks like you have one error on line 3191 in the file named “newcarExp2.js” and one error on line 3200 in the file named “newcarExp2-legacy-browsers.js”. From there, you can google the issue found in that line of code.

Be sure to check out this google doc, which has lots of known errors when converting psychopy files to java.

Hi hollysully!

Thank you for your reply. I downloaded a text editor that would let me view the line numbers. Line 3191 in ‘newcarExp2.js’ and line 3200 in ‘newcarExp2-legacy-browsers.js’ appear to be the last lines in each file (both lines are blank).

I’m not sure what the issue is here?

hmm, that is beyond me. I would try deleting the extra space in the code and saving it and trying again. That is all I can think of. Good luck!

I found where the missing bracket was needed. Issue solved!