Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-76508

Syntax error block Course Overview when { is being used in the course name

XMLWordPrintable

    • 2
    • Team Hedgehog Sprint 1.2, Team Hedgehog Sprint 1.3

      I updated my 4.0.x to Moodle 4.1.x yesterday and got this syntaxError everytime I go to the  /my/courses.php and /my/

      Steps to replicate: 

      1. Create a course with in the Course Fullname start with left curly bracket "{" symbol. e.g. " { history 101"
      2. Enrol a student.
      3. Log in as student 
      4. Check if the student gets the syntax error on the /my/courses.php page when have ALL selected       

       

       in JSON at position 1
          at JSON.parse (<anonymous>)
          at Renderer.stringHelper (https://xxx/lib/requirejs.php/1669627321/core/first.js:1030:6762)
          at Renderer.<anonymous> (https://xxx/lib/requirejs.php/1669627321/core/first.js:1030:8295)
          at Writer.renderSection (https://xxx/lib/requirejs.php/1669627321/core/first.js:470:9122)
          at Writer.renderTokens (https://xxx/lib/requirejs.php/1669627321/core/first.js:470:7802)
          at Writer.renderPartial (https://xxx/lib/requirejs.php/1669627321/core/first.js:470:10400)
          at Writer.renderTokens (https://xxx/lib/requirejs.php/1669627321/core/first.js:470:7975)
          at Writer.renderBlockVariable (https://xxx/lib/requirejs.php/1669627321/core/first.js:470:11022)
          at Writer.renderTokens (https://xxxlib/requirejs.php/1669627321/core/first.js:470:8128)
          at Writer.renderPartial (https://xxx/lib/requirejs.php/1669627321/core/first.js:470:10400) undefined

        1. 2022-12-05_23-35-15.jpg
          2022-12-05_23-35-15.jpg
          153 kB
        2. 400.gif
          400.gif
          389 kB
        3. 401.gif
          401.gif
          378 kB
        4. master.gif
          master.gif
          325 kB

            meirza.arson@moodle.com Meirza
            gemguardian Gemma Lesterhuis
            Raquel Ortega Raquel Ortega
            Andrew Lyons Andrew Lyons
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 2 hours, 14 minutes
                1d 2h 14m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.