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