Pavlovia error: undefined is not an object

Hi there, I’m new to PsychoPy and my first experiment is ready to launch and works perfectly in PsychoPy itself. However, I’m getting the following error on Pavlovia:

Unfortunately we encountered the following error:
** when setting the image of ImageStim: instruct_image*
** TypeError: undefined is not an object (evaluating ‘image.src’)*

I’m using the template with project ID 14096. In the instructs.xlsx file there were two pages for text, but I wanted to add an extra page with a table and pictures in between. Therefore I added an extra column ‘image_file’ with instruct_image.png as image. That file is in my project folder. My project ID is 462637 (public).

All in all, I don’t understand what goes wrong at the moment and what is meant by image.src. I don’t know which codes I can send for more clarification.

*OS MacBook M1 2020
PsychoPy version 2024.2.4

URL of experiment: Xannah Voortman / IAT_stereotypes · GitLab

Dear Xannah,

Looking at your experiment there is no object “instruct_image”. In your instructions you have a text component, but no image.

You kind of overwrote the need for that instruction.xlsx file, when you added the “instruc_text” component.

But I think you did all this in a way to fix your original issue :wink: . So make sure you flag it as solved!

Issac

Hi Stanley. Thanks for looking at my experiment! I eventually fixed it by deleting the original routine and making three separate routines, which is not ideal, but it works for now. I’ll mark it as solved now.