Image Resource Error (grid.png not found online but works locally)

Windows 10, 2024.2.4 (Python 3.8)
Standard Standalone Installation
URL of experiment: Pavlovia
Do you want it to also run locally?: Yes

I created a visual N-back task in PsychoPy based on an existing experiment available on Pavlovia, which I slightly modified to fit my needs. It works correctly when run locally, but when I try to run it online on Pavlovia, I receive the following error message:

“when setting the image of ImageStim: grid_lines
when getting the value of resource: grid.png
unknown resource”

The experiment uses a background grid image (grid.png), which is located in the main experiment folder. The image is correctly displayed when running locally, but fails to load online
I checked that grid.png is in the correct folder and properly referenced in PsychoPy (under ImageStim).
I tried moving the image to different locations (e.g., inside html/resources/).
I deleted the html folder and re-synced the experiment with Pavlovia.
I ensured that the Output path in the Online tab of Experiment Settings is empty.
I verified that the filename is exactly grid.png and does not have any uppercase/lowercase mismatches.

After attempting the solutions above, the issue persists. The error suggests that Pavlovia is unable to locate the image file, even though it exists in the project folder and is accessible locally.

Does anyone have suggestions for resolving this issue? Could this be related to how resources are preloaded in Pavlovia?

Any help would be greatly appreciated! :blush:

Have you tried added the image to additional resources?

I made the suggested changes and now it tells me this problem

when converting an object to its numerical form
unable to convert the object to a number

Here are some threads to look at: