Grid theme not working

In this case when using theme grid we just use the browser with Enketo

The people filling up this kind of forms are using their computers directly

Hi Quentin

If that is the case then I suggest you try this on different browsers and see if the problem persist on the different browser types. Indicate which browsers seem to have the problem.

Hi all,

I don’t know what is happening, but theme-grid appearance is not working again. It was working when the problem was resolved, but it is not working now. I tried different browsers without luck.

Can somebody please confirm that the problem is not only on my side

Thanks
Sarah

Hi @Sarah_Mac,

I just tried uploading a theme-grid xlsform survey form in the HHI Server and was successful in viewing the same in Chrome, Mozilla, Microsoft Edge and Internet Explorer. A sample of the image is attached below:


The xlsform that I uploaded is here fatal_injury_survey.xlsx (9.0 KB), you could also try it from your end.

I tried chrome and Microsoft edge, not working, i tried internet explorer and its even worse because it’s not even opening in a default form, it’s just not opening…

It’s not a survey issue as i tried with a survey that already have observations, not working neither…

Thank you for feedback and sharing solutions…

Well are you in the OCHA server? It seemed it was only linked to the OCHA server…

Hi @Quentin,

You are right, I just checked with the OCHA server and see the grid-theme is not functioning as it should be. However, the HHI server is OK! Will update with the developer’s accordingly! Thank you for flagging it out!

1 Like

Hi all,

I just checked and the issue seems to be resolved, again. I re-deployed the forms and grid theme is back.

Thank you all
Sarah

1 Like

Well at least for my side in the server OCHA it is not solved…

Aha! If I refresh https://ee.humanitarianresponse.info/js/build/client-config.js repeatedly, I can see

export default {
    "googleApiKey": "AIzaSyBDSUKhd7PWfFjYNTWR288hK2QOcwnSp7E",
    "maps": [{
        "name": "streets",
        "tiles": ["https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"],
        "attribution": "© <a href=\"http://openstreetmap.org\">OpenStreetMap</a> | <a href=\"www.openstreetmap.org/copyright\">Terms</a>"
    }],
    "modernBrowsersURL": "modern-browsers",
    "supportEmail": "support@kobotoolbox.org",
    "themesSupported": ["formhub", "grid", "kobo", "plain"],
    "defaultTheme": "kobo",
    "languagesSupported": ["ar", "cs", "de", "el", "en", "es", "fa", "fi", "fr", "hi", "it", "lo", "nl", "no", "pl", "pt", "ro", "ru", "sk", "sv", "sw", "vi", "zh"],
    "timeout": 300000,
    "submissionParameter": {
        "name": ""
    },
    "basePath": "",
    "repeatOrdinals": false,
    "validateContinuously": false,
    "validatePage": true,
    "textMaxChars": 2000
};

sometimes change to

export default {
    "googleApiKey": "AIzaSyBDSUKhd7PWfFjYNTWR288hK2QOcwnSp7E",
    "maps": [{
        "name": "streets",
        "tiles": ["https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"],
        "attribution": "© <a href=\"http://openstreetmap.org\">OpenStreetMap</a> | <a href=\"www.openstreetmap.org/copyright\">Terms</a>"
    }],
    "modernBrowsersURL": "modern-browsers",
    "supportEmail": "support@kobotoolbox.org",
    "themesSupported": [],
    "defaultTheme": "kobo",
    "languagesSupported": ["ar", "cs", "de", "el", "en", "es", "fa", "fi", "fr", "hi", "it", "lo", "nl", "no", "pl", "pt", "ro", "ru", "sk", "sv", "sw", "vi", "zh"],
    "timeout": 300000,
    "submissionParameter": {
        "name": ""
    },
    "basePath": "",
    "repeatOrdinals": false,
    "validateContinuously": false,
    "validatePage": true,
    "textMaxChars": 2000
};

"themesSupported": [] certainly isn’t what we want, and without grid in that array, the grid theme unsurprisingly will not work. There are multiple (virtual) servers running behind the scenes, some of which are started and stopped automatically in response to demand; clearly, at least one of these is misbehaving.

Hey everyone, it’s finally working for me too just re-implemented one more time and that time was fine :slight_smile:

This issue is now tracked at https://github.com/enketo/enketo-express/issues/102.

1 Like

I’ve applied a workaround to OCHA / ee.humanitarianresponse.info that should prevent this problem from coming back when server capacity is automatically scaled up.

2 Likes