Code Monkey home page Code Monkey logo

Comments (6)

SergioComeron avatar SergioComeron commented on August 30, 2024

Hi @hrenard
I can't reproduce the problem. Can you give me the steps to reproduce it?

from moodle-mod_jitsi.

niconicoDT avatar niconicoDT commented on August 30, 2024

Hi @SergioComeron,

On our moodle 3.11 in French, with the Fordson theme, when I want to access a jitsi activity in a course, I get a white screen.
This is the error message I find in the firefox console :

Uncaught SyntaxError: unexpected token: identifier session.php:737:608

And this is what I see in the debugger :

document.getElementById('state').innerHTML = '<div class="alert alert-primary" role="alert"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-exclamation-triangle-fill flex-shrink-0 me-2" viewBox="0 0 16 16" role="img" aria-label="Warning:"><path d="M0 5a2 2 0 0 1 2-2h7.5a2 2 0 0 1 1.983 1.738l3.11-1.382A1 1 0 0 1 16 4.269v7.462a1 1 0 0 1-1.406.913l-3.111-1.382A2 2 0 0 1 9.5 13H2a2 2 0 0 1-2-2V5zm11.5 5.175 3.5 1.556V4.269l-3.5 1.556v4.35zM2 4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h7.5a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H2z"/></svg> La session est en cours d'enregistrement</div>'; } else if (event['on'] == false){

It seems that l’enregistrement breaks the code because of the character

But as soon as I switch to english jitsi works.

In other word, for the same jitsi activity this url works :

https://moodle.platform/mod/jitsi/view.php?id=XYZ&lang=en

but not this one :

https://moodle.platform/mod/jitsi/view.php?id=XYZ&lang=fr

Hope it can help

from moodle-mod_jitsi.

SergioComeron avatar SergioComeron commented on August 30, 2024

It is possible that the problem is due to the Fordson theme. I've been testing with boost and I didn't see any errors. I'm going to download Fordson to test it and I'll tell you.
Thanks!

from moodle-mod_jitsi.

JacquesLG avatar JacquesLG commented on August 30, 2024

Hi @SergioComeron

I am having the same issue with this on the Boost theme.

from moodle-mod_jitsi.

JacquesLG avatar JacquesLG commented on August 30, 2024

Hello again,

I applied a fix for this with #116

I tested it on my server with boost template and french language and it works fine 👍

from moodle-mod_jitsi.

SergioComeron avatar SergioComeron commented on August 30, 2024

Thank you all, when I was doing my tests I was forgetting to change the moodle language to French. And so it couldn't reproduce the error.
The patch contributed by @JacquesLG fixes it. It will be in the next version.

from moodle-mod_jitsi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.