# Blank page when uploading experiment online

**URL:** <https://discourse.psychopy.org/t/blank-page-when-uploading-experiment-online/6283>\
**Category:** Online experiments\
**Created:** [January 12, 2019, 8:40am UTC](https://discourse.psychopy.org/t/blank-page-when-uploading-experiment-online/6283 "2019-01-12T08:40:30Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmberG](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@AmberG](https://discourse.psychopy.org/u/AmberG)\
**Post date:** [January 12, 2019, 8:40am UTC](https://discourse.psychopy.org/t/blank-page-when-uploading-experiment-online/6283/1 "2019-01-12T08:40:30Z")

</div>

**OS** : Windows10  
**PsychoPy version** : 3.01

Hi there,

I am trying to upload the experiment to Pavlovia. I can successfully upload everything from the PsychoPy GUI, and the html folder is there. However, when I try to launch it online, the web page is empty. I tried to use F12 and see if there is any error info, and Chrome shows the following:

 ![error_info](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/5/2/5295b671412e07b52c67015988b5708fbd6d314e.png)  
When I put the mouse on the blue link, they all seems to indicate I am missing something in the folder ‘html/lib/’, which I dont have.

Then I tried Microsoft Edge as well, but the information is different:

 ![error_info_2](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/4/e/4eb1dfcc575fd50b53acf529d22504c4fdc27f6f.png)

One thing might be related: in the ‘html/resources/stimuli/’ folder, I found only 1 out of the 25 images is in the folder (all the others are not). I am not sure whether that is something concerning or might cause the issue?

As a side note, I didn’t use any code variables in the experiment. The name of the file and the project is also the same. I also built the whole thing in 3.01 today. So I am really not sure what is the problem. Here is the link to my experiment in case I was not clear:[exp](https://gitlab.pavlovia.org/wanjia/contindiff).

Thank you for your help in advance!!

---

<div class="post-metadata">

**Author:** ![Fouc](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/fouc/32/3612_2.png) [@Fouc](https://discourse.psychopy.org/u/Fouc)\
**Post date:** [January 12, 2019, 10:12pm UTC](https://discourse.psychopy.org/t/blank-page-when-uploading-experiment-online/6283/2 "2019-01-12T22:12:30Z")

</div>

Hi,  
Exactly the same for me!  
A blank web page and I’ve test this again with a totally new project with just one screen.  
Help please…

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [January 12, 2019, 10:25pm UTC](https://discourse.psychopy.org/t/blank-page-when-uploading-experiment-online/6283/3 "2019-01-12T22:25:32Z")

</div>

Hi both, would you please provide a link to your experiments? That would be helpful for debugging 🙂

---

<div class="post-metadata">

**Author:** ![Fouc](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/fouc/32/3612_2.png) [@Fouc](https://discourse.psychopy.org/u/Fouc)\
**Post date:** [January 12, 2019, 11:26pm UTC](https://discourse.psychopy.org/t/blank-page-when-uploading-experiment-online/6283/4 "2019-01-12T23:26:58Z")

</div>

Of course, sorry for this mistake…  
Like I said, I’ve just created a very small try which is there: [https://gitlab.pavlovia.org/Lecture/essai](https://gitlab.pavlovia.org/Lecture/essai)

Before that, I had another problem with the csv format while saving the results… If you remember ([Online experiment saved data was format misplacement](https://discourse.psychopy.org/t/online-experiment-saved-data-was-format-misplacement/5986/4))… Because I can’t save without errors, I’be tried to make another experiment with pictures instead of texts… Maybe with the new version, it will work. Anyway, the experiments with pictures don’t start either.  
[https://gitlab.pavlovia.org/Lecture/pre\_lecture\_court](https://gitlab.pavlovia.org/Lecture/pre_lecture_court)

---

<div class="post-metadata">

**Author:** ![AmberG](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@AmberG](https://discourse.psychopy.org/u/AmberG)\
**Post date:** [January 13, 2019, 9:39am UTC](https://discourse.psychopy.org/t/blank-page-when-uploading-experiment-online/6283/5 "2019-01-13T09:39:34Z")

</div>

Sure! Here is the link to the experiment! [experiment\_link](https://pavlovia.org/run/wanjia/contindiff/html/)

I also put the link to the actual code in gitlab on the original post as well, in case it is helpful.  
Also, I have to apologize in advance if you meet any permission issue. Do I need to make it public so you can view it?

By the way, as a concern, I did use participant number as a variable to access the corresponding csv file, as well as using other variables for images’s path location and images’ position on the screen. I am only wondering whether using participant number (which is stored as a Python dictionary if I remembered corrected), or any other variables (with which I concat some variables into string), will cause problem in the JS code. This is mentioned here because I also realized that none of the csv file is in the html folder.

Thanks!

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [January 13, 2019, 11:10am UTC](https://discourse.psychopy.org/t/blank-page-when-uploading-experiment-online/6283/6 "2019-01-13T11:10:24Z")

</div>

Thanks for your patience. I believe the `404 error` occurs because the the PsychoJS engine (currently 3.0.0) is in the process of being updated to the most recent release of PsychoPy (3.0.1). I believe this will be actioned tomorrow (Monday), but will check with @jon and the server team tomorrow and get back to you asap tomorrow.

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [January 13, 2019, 4:04pm UTC](https://discourse.psychopy.org/t/blank-page-when-uploading-experiment-online/6283/7 "2019-01-13T16:04:08Z")

</div>

The 404 error for the contindiff experiment is now fixed on the server. Sorry about that.

For the resources/stimuli, yes, at the moment PsychoPy isn’t correctly detecting stimulus locations when the filename is a variable (as in your case). If you could manually copy them into the html/resources/stimuli folder.

See how you get on once those are copied over

---

<div class="post-metadata">

**Author:** ![AmberG](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@AmberG](https://discourse.psychopy.org/u/AmberG)\
**Post date:** [January 13, 2019, 6:47pm UTC](https://discourse.psychopy.org/t/blank-page-when-uploading-experiment-online/6283/8 "2019-01-13T18:47:34Z")

</div>

Hi David and Jon,

Thanks for your help! I can open the psychopy on line now!! I also moved all the images in the stimuli into the html/resources/stimuli folder.

However, I am having a new problem online. After I entered the subject number, this error showed up:

 ![new_error](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/5/3/536ea231565610cba89d1062a25b3d90dbbdf3f9.png)

I have tried to move all subjects’ csv files into the html/resources/sub\_file (locally, all my subject files are also in the sub\_file folder), in case it is caused by PsychoPy not being able to detect each subject’s csv file (I guees it’s similar to the stimuli location, though not sure). but it didn’t help with this error. Any suggestions?

Thank you both so so much for your help again!

Quick Update: I don’t think the variables names are causing this problem. I just tried to build another experiment with no loop or variable, but it has the same problem.

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [January 14, 2019, 11:19am UTC](https://discourse.psychopy.org/t/blank-page-when-uploading-experiment-online/6283/9 "2019-01-14T11:19:00Z")

</div>

That error was ours but it’s fixed now on the server. I think all you need to do is fully refresh the experiment in the browser (probably shift-R will refresh the javascript a well as the html code)

---

<div class="post-metadata">

**Author:** ![AmberG](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@AmberG](https://discourse.psychopy.org/u/AmberG)\
**Post date:** [January 14, 2019, 9:39pm UTC](https://discourse.psychopy.org/t/blank-page-when-uploading-experiment-online/6283/10 "2019-01-14T21:39:55Z")

</div>

hi Jon,

Thanks for the reply! This error has disappeared now!! Sorry for this, but I have another question following up.

Initially, I have an error looks like this:

 ![error](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/8/2/82ee361175459c99de33dae7fb64749dd916facb.png)

I believe it is caused by a polygon variable (fixation cross in my case). I am currently using a fixation picture instead of the polygon, so I can work around it. However, I am wondering whether there are problems with my polygon setting or the polygon is not in place yet? I did try other shapes or sizes, or changing between parentheses and bracket, but none of them seem to work.

Setting:

 ![setting](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/9/7/978da45ea1e5a7be6643667433e688467e85ea3a.png)

Again, thank you so much for your help and time!! I am so glad everything is working now!

---

<div class="post-metadata">

**Author:** ![Fouc](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/fouc/32/3612_2.png) [@Fouc](https://discourse.psychopy.org/u/Fouc)\
**Post date:** [January 15, 2019, 1:27am UTC](https://discourse.psychopy.org/t/blank-page-when-uploading-experiment-online/6283/11 "2019-01-15T01:27:38Z")

</div>

SHi,  
Sorry, but it doesn’t work for me.

 ![36](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/b/a/bae30908aa1b91c41dfb75234d63ec2fbf0a5f2d.jpeg)

when I try to activate the project [Sign in · GitLab](https://gitlab.pavlovia.org/Lecture/cocotexte_prestest_1)

Denis

---

<div class="post-metadata">

**Author:** ![Fouc](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/fouc/32/3612_2.png) [@Fouc](https://discourse.psychopy.org/u/Fouc)\
**Post date:** [January 17, 2019, 1:06am UTC](https://discourse.psychopy.org/t/blank-page-when-uploading-experiment-online/6283/12 "2019-01-17T01:06:25Z")

</div>

Hi,  
I want to say to all the developers that all the problems that I had encountered are fixed! Thanks to all!  
I needed to start a new experiment with the new version and to synchronize it on Pavlovia.  
No more problem with the save of the CSV file!  
Encore merci…

Because I use TextStim object, I encountered some options that are not generated by PsychoPy, per ex “alignHoriz : ‘left’”, which is very useful for the presentation of texts.  
I don’t know where to put these kinds of observations…  
Thanks again!  
Denis
