Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

404 Error on OSWeb Load

Hey All,

I recently had some help setting up JATOS on my university's server, however, I'm running into a 404 error when I try to run my OpenSesame Experiment, and just get a blank screen. Every other part of JATOS runs fine; I can even run jPsych experiments without issue. I also know there isn't a problem with the OpenSesame experiment, because it runs perfectly on JATOS' test server and a local JATOS instance.

I really can't tell if this is a JATOS issue or a server issue, but if someone could point me in the right direction I'd be grateful. All I can tell is I'm missing the JATOS JavaScript (jatos.js) library for some reason. Here is what my web sources looked like. The running version appears first and the broken version is second.


I'm sorry if this discussion is irrelevant, I'm just not sure where else to look or what to do.

Regards,

Rissa

Comments

  • Hi Rissa,

    it seems like JATOS is not properly installed on your server or your server has some configuration issues. What is the output of JATOS' test page? For your server it should be similar to linguistics.arts.sfu.ca/jatos/test (for cortex it's cortex.jatos.org/jatos/test). And do you use a URL base path (http://www.jatos.org/Configure-JATOS-on-a-Server.html#url-base-path-jatos--v331)?

    Best,

    Kristian

    Buy Me A Coffee

  • Hey Kristian,

    The test server runs fine and all the tests come out okay. And yes, we do use a URL base path for my lab, it's /phono/.

    Regards,

    Rissa

  • Hi Rissa, sorry for answering so late. Have a lot to do lately.

    Since you are using a base path ('phono'). Did you configure JATOS' production.conf correctly? There should be the following line:

    play.http.context = "/phono/"
    

    And a second thing with base paths is that all paths in your JavaScript should use the base path or no path at all. So, e.g. to load circle.png, you can use either the old JATOS path style with 'study_assets':

    <img src="/phono/study_assets/your_study_name/circle.png">

    or just

    <img src="circle.png">

    . But the latter one works only with newer versions of JATOS > 3.3.1.

    Buy Me A Coffee

  • Hey Kri,

    Thanks for the reply. I just took a look through our configuration and everything seems fine. Remember, I've not programmed the experiment in Javascript, but in OpenSesame. Javascript programs run just fine.

    I suspect though, that because I used a basepath, my OSWeb experiment is facing some issues. Maybe I need to add a Javascript component as a workaround.

    I'll try that, and if you have any other ideas, please let me know.

    Regards,

    Rissa

  • Ah, I forgot that it's an OSWeb study. Anyway, you could try to replicate the issue by using a base path on your local JATOS too. Then you can better narrow it down.

    Best,

    Kristian

    Buy Me A Coffee

  • Hey Kri,

    I managed to solve the issue by diving into the index.html file in my OSWeb .zip experiment file and changing line 15 to reflect my basepath. It looks like <script src="/yourbasepath/assets/javascripts/jatos.js">. Afterwards, I imported the .zip file into JATOS, and the experiment ran perfectly.

    I might be nice in the future for OSWeb users to be able to input their basepath to solve this issue, but its a fairly easy fix for now.

    Thanks for the help!

    Regards,

    Rissa

  • Nice! You solved it.

    You could open an issue with OSWeb https://github.com/shyras/osweb.

    Best,

    Kristian

    Buy Me A Coffee

  • edited March 26

    Thank you!!! I had the same problem... I modified the imported experiment ad now is working!!

    Did you find a solution to solve for all the imported study?

  • This is a very difficult problem to solve as we never know beforehand under what subfolder your jatos installation will run. Therefore we just use the site root, which is what most people will use. An option is to make the subfolder a configurable parameter in the opensesame extension which exports the experiment to a Jatos file. @sebastiaan what do you think. Is this worth the effort?

    Buy Me A Coffee

  • @sebastiaan what do you think. Is this worth the effort?

    I think so. Would this just be a matter of adding a suffix to a limited number of relative URLs? If so, then sure, we can do that.

    Buy Me A Coffee

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games