-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spanish KA exercise does not render #8358
Comments
tried three other exercises. all have the same behavior |
I can replicate the behavior reported. Get a 404 on this resource: /static/mathjax/2.1/MathJax.js?config=KAthJax-730d56e87e9c926b91584f6030314815.js |
@jamalex & all:
Thanks! |
I just tried and I can't reproduce on a linux server. Direct link to exercise in Kolibri 0.13.1 in an online demo server: https://kolibridemo.learningequality.org/en/learn/#/topics/c/6815f2269a9e5bbd8f2a48ee317c49d1 @tim-moody Am-I looking at the right exercise? Also can you confirm you have version 10 of the KA (Espanol) channel imported, you can see the version from the device/content page: |
Also, it occurs to me that I only have the math portion of ES KA, and I imported it rather than downloaded it if that makes any difference. Did I not get mathjax as a result? |
The link to Mathjax.js is http://rpi-devel/static/mathjax/2.1/MathJax.js?config=KAthJax-730d56e87e9c926b91584f6030314815.js but it should be http://rpi-devel/kolibri/static/mathjax/2.1/MathJax.js?config=KAthJax-730d56e87e9c926b91584f6030314815.js (the static directory is there and contains Mathjax.js) this could be an nginx config problem, so to my chagrin this could indeed be related to iiab/iiab#1646 |
actually we had the same problem with kiwix. you get to a page with the prefix (/kolibri/), but the links on the page (or via ajax) do not have the prefix in them. |
|
@tim-moody No I don't think it's an nginx or kolibri problem. The missing Katex reference looks very much like an issue in an older version of the KA channels we faced and fixes. Please navigate to the content admin page at http://rpi-devel/kolibri/en/device/#/content From where you will be able to UPDATE the channel (to pull in the latest version) (choose the Kolibri Studio option). More info here: https://kolibri.readthedocs.io/en/latest/manage/resources.html#update-channels |
By the end of this you should have v10 of the channel on your device (which has the fix for the exercise rendering issue). After that you can then do use the Export to local drive steps so you'll have a up-to-date local copy of the channel for faster imports in the future and other tests. |
How recent is v10? I only installed a couple of days ago. |
Yep ok you have v10, so it's definitely not a content issue. Sorry for the false direction. Like you said earlier, this is the problem:
let me dig a bit to look for solution --- either config settings or otherwise... |
same problem on 64 bit ubuntu19.10.1 on rpi4 if it matters |
@tim-moody I believe setting the env-var I see this config is already being set in this iiab template: can you check for If both are correclty set to /kolibri the issue could be specific to the exercise renderer and will need a fix on our side. |
sorry. not finding options.ini |
Is this what you're looking for? [Service] |
That's OK. The options.ini is another way of passing in config (an alternative to using env vars and command-line args).
Yes. It seems it's set correctly on your side and the issue is an edge case in the exercise rendered frontend code that doesn't take into account the Thanks for reporting the issue finding and helping with detailed debug info! |
sounds like we're narrowing in on it |
I've managed to reproduce the issue here: However the Kolibir exercise plugin loads certain resources using absolute path, hence the breakage. I've moved the issue to the right project (kolibri-exercise-perseus-plugin) so it can be tracked and fixed in next release. @tim-moody As a temporary workaround for this issue, you can add the following lines to your nginx config:
Instead of |
This has now been fixed in #8366 and will be released in the 0.15.0 release. |
Observed behavior
Khan Academy (Español)Matemáticas3.er gradoSumas y restasSumar números del 1 al 1000 con reagrupación
Expected behavior
Should load and run interactive app, but stays on this screen.
Errors and logs
this is in the js console:
Steps to reproduce
Without logging in navigate to page and click exercise
This exercise works in kalite
Context
Win 10 client with chrome browser
server is rpi 4
kolibri 0.13.1
The text was updated successfully, but these errors were encountered: