# \[Solution\] Pavlovia Error - Unknown resources

**URL:** <https://discourse.psychopy.org/t/solution-pavlovia-error-unknown-resources/27938>\
**Category:** Online experiments\
**Tags:** pavlovia\
**Created:** [March 11, 2022, 5:07pm UTC](https://discourse.psychopy.org/t/solution-pavlovia-error-unknown-resources/27938 "2022-03-11T17:07:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr.Zhu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/mr.zhu/32/30461_2.png) [@Mr.Zhu](https://discourse.psychopy.org/u/Mr.Zhu)\
**Post date:** [March 11, 2022, 5:07pm UTC](https://discourse.psychopy.org/t/solution-pavlovia-error-unknown-resources/27938/1 "2022-03-11T17:07:31Z")

</div>

Today, I wanted to upload my experiment files online. I am also getting the error of “unknown resource” when I ran the experiment.

Finally, I set the Output path parameter in the Setting to empty, which will work.

The reason is as follows:

```auto
        if not self.exp.htmlFolder:
            script.writeIndentedLines("resources: [\n")
            script.setIndentLevel(1, relative=True)
            code = ""
            for idx, resource in enumerate(resourceFiles):
                temp = "{{'name': '{0}', 'path': '{1}{0}'}}".format(resource, resourceFolderStr)
                code += temp
                if idx != (len(resourceFiles)-1):
                    code += ",\n" # Trailing comma
            script.writeIndentedLines(code)
            script.setIndentLevel(-1, relative=True)
            script.writeIndented("]\n")
            script.setIndentLevel(-1, relative=True)
        script.writeIndented("});\n\n")
"""
```

---

<div class="post-metadata">

**Author:** ![Becca](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/becca/32/34260_2.png) [@Becca](https://discourse.psychopy.org/u/Becca)\
**Post date:** [March 13, 2022, 9:10am UTC](https://discourse.psychopy.org/t/solution-pavlovia-error-unknown-resources/27938/2 "2022-03-13T09:10:39Z")

</div>

Hi There,

Please may you confirm that you directly edited the JS code to implement this specific issue? In general we recommend the fix to this error is to use experiment settings \> online tab \> set output path to empty and add any resources required (e.g. images) to the additional resources field.

Thanks,  
Becca

---

<div class="post-metadata">

**Author:** ![Mr.Zhu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/mr.zhu/32/30461_2.png) [@Mr.Zhu](https://discourse.psychopy.org/u/Mr.Zhu)\
**Post date:** [March 13, 2022, 12:00pm UTC](https://discourse.psychopy.org/t/solution-pavlovia-error-unknown-resources/27938/3 "2022-03-13T12:00:57Z")

</div>

Yes, I think that it is a bug. After setting output path to empty, it won’t generate ‘html’ folder, which leads to making the online experiment unavailable on the website of Pavlovia.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/2/2/22d66533249005a3b99c097277d9bcca4e37c074.png)

CAN’T TRANSFORM TO PILOTING STATE

---

<div class="post-metadata">

**Author:** ![Becca](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/becca/32/34260_2.png) [@Becca](https://discourse.psychopy.org/u/Becca)\
**Post date:** [March 13, 2022, 2:43pm UTC](https://discourse.psychopy.org/t/solution-pavlovia-error-unknown-resources/27938/4 "2022-03-13T14:43:09Z")

</div>

if you remove “html” it is intentional that the html folder is not created as it will use the resources listed in the :experiment_settings: \> Online tab \> additional resources (rather than duplicating resources by also sending them to a compiled html folder. What error message do you get if you try to change the status of the project on pavlovia?

---

<div class="post-metadata">

**Author:** ![Mr.Zhu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/mr.zhu/32/30461_2.png) [@Mr.Zhu](https://discourse.psychopy.org/u/Mr.Zhu)\
**Post date:** [March 13, 2022, 3:18pm UTC](https://discourse.psychopy.org/t/solution-pavlovia-error-unknown-resources/27938/5 "2022-03-13T15:18:47Z")

</div>

Thanks for your reply. I don’t know how to express my question about change the status of the project clearly. Can you help me take a look?

Here’s my project.

`https://gitlab.pavlovia.org/psychopy_richard/ep9`

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [March 14, 2022, 7:35pm UTC](https://discourse.psychopy.org/t/solution-pavlovia-error-unknown-resources/27938/6 "2022-03-14T19:35:36Z")

</div>

> [@Mr.Zhu](#):
>
> [No repository · Richard / ep9 · GitLab](https://gitlab.pavlovia.org/psychopy_richard/ep9)

You still have an html folder. Please try these steps.

> [@"Unknown Resource" online, but works fine offline?](https://discourse.psychopy.org/t/unknown-resource-online-but-works-fine-offline/25793/10):
>
> I have a few minutes to write a reply now. I have one experiment still using the html folder where I have set “Use PsychoPy Version” to 2020.2.3 in Experiment Settings. For another experiment what I did was: Close the experiment in Builder. Download any existing data from Pavlovia. Delete the repository from Pavlovia. Delete the local .git folder. Delete the local html folder (after removing any files than only exist in it). Delete other unnecessary local files. Open the experiment in Builde…
