I get "ReferenceError: position is not defined" when i tried to run the experiment online, but it work locally

URL of experiment: Sebastián Corral / test · GitLab

Description of the problem: When i try to run my experiment online, i get the following error: “ReferenceError: position is not defined”, but it runs well locally. To fix it, i tried to set the position parameter to set every repeat, because it is linked with an excel file, but when i do this, i get the following error:
position

This is how my excel file looks like:

I tried to change the position to change every frame, but while it works locally, it doesnt fix the problem when i run the experiment online.

Tell us about baja?

Hi wakecarter!! Thanks for your response!

baja is one of the movie stimulus in the task:

This are the settings for that stimulus:
baja
baja2

As you can see, the position of “baja” is constant, so I think that could be the problem, but if I change it to set every repeat, I get the error listed earlier.

Do you have Baja.setPos in a Begin Experiment code component tab?

I dont have any code component :frowning_face:

In that case you definitely need to set Position to “set every repeat”

This is the error that i get when i do that:

File "C:\Users\usuario\Documents\Psychopy\test\test_lastrun.py", line 942, in <module>
    baja.setPos([invertpositionx, invertpositiony])
NameError: name 'baja' is not defined

Why is the error message showing invertpositionx? How can you set two different positions to baja without a code component?

I am sorry, I was tweaking some parameters to see if I could do something to work, so I tried changing the position to another excel column that you can see in the excel image above: “[invertpositionx, invertpositiony]”. Thats why in the image of baja you see “[positionx, positiony]” while in the error you see “[invertpositionx, invertpositiony]”, but when I change it to how it used to be, I get the same error:

File "C:\Users\usuario\Documents\Psychopy\test\test_lastrun.py", line 942, in <module>
    baja.setPos([positionx, positiony])
NameError: name 'baja' is not defined

As you can see in the excel, I stablished the coordinates separatly. That is because before this error, I got an error related to the experiment not being able to convert the entire coordinate to a position, so I write it like this.

Hi. I’ve just noticed that baja is a movie not an image and is very brief.

Does it work if you use a fixed coordinate like [0,0] ?

Does it work if you set the coordinates Each Frame?

Does it work if you set the start time to, say, 0.5?

Does it work if you set the Stop time to blank?

Does it work if you use a fixed coordinate like [0,0] ? It work offline if I use [0,0] as a coordinate, but only if I set it to constant. Sadly it does not work online, it get the “position is not defined” error.

Does it work if you set the coordinates Each Frame? The same happens. It works fine offline, but does not work online.

Does it work if you set the start time to, say, 0.5? It does not work if I set the start time to any number while the position is set every repeat.

Does it work if you set the Stop time to blank It does not work setting the Stop time like this neither.

This is the error that I get everytime I use any of this settings while using (0, 0) as position set every repeat.

  File "C:\Users\usuario\Documents\Psychopy\test\test_lastrun.py", line 942, in <module>
    baja.setPos((0,0))